答复: [PATCH,v2] arm64: fix the illegal address access in some cases

Will Deacon will at kernel.org
Thu Jul 30 12:03:04 EDT 2020


On Thu, Jul 30, 2020 at 10:56:49AM +0100, Robin Murphy wrote:
> Subject: [PATCH] arm64: csum: Fix handling of bad packets
> 
> Although iph is expected to point to at least 20 bytes of valid memory,
> ihl may be bogus, for example on reception of a corrupt packet. If it
> happens to be less than 5, we really don't want to run away and
> dereference 16GB worth of memory until it wraps back to exactly zero...
> 
> Fixes: 0e455d8e80aa ("arm64: Implement optimised IP checksum helpers")
> Reported-by: guodeqing <geffrey.guo at huawei.com>
> Signed-off-by: Robin Murphy <robin.murphy at arm.com>
> ---
>  arch/arm64/include/asm/checksum.h | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)

Cheers, Robin, I'll queue this one shortly (b4 can't cope with this thread
at all, so treat this as the automated email :)

Will



More information about the linux-arm-kernel mailing list