Re: 答复: [PATCH,v2] arm64: fix the illegal address access in some cases
From: Will Deacon <will@kernel.org>
Date: 2020-07-30 16:04:52
From: Will Deacon <will@kernel.org>
Date: 2020-07-30 16:04:52
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 <redacted>
Signed-off-by: Robin Murphy <robin.murphy@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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel