Files
linux/arch/arm64/include/asm
Robin Murphy 5a35dac2c2 arm64: csum: Fix handling of bad packets
[ Upstream commit 05fb3dbda1 ]

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: 0e455d8e80 ("arm64: Implement optimised IP checksum helpers")
Reported-by: guodeqing <geffrey.guo@huawei.com>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-16 08:44:26 +09:00
..
2014-04-18 11:40:33 +02:00
2012-09-17 13:42:21 +01:00
2023-05-12 16:30:53 +09:00
2016-09-09 11:41:13 +01:00
2014-11-05 09:03:25 +01:00
2012-09-17 13:42:04 +01:00
2016-03-04 18:19:17 +00:00
2016-06-27 16:31:25 +01:00
2012-09-17 13:41:56 +01:00
2018-06-06 18:34:12 +02:00
2014-11-28 10:24:59 +00:00
2015-10-12 17:46:36 +01:00
2014-07-10 11:06:00 +01:00
2012-09-17 13:42:09 +01:00
2016-09-09 11:42:27 +01:00