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

Will Deacon will at kernel.org
Tue Jul 28 09:03:22 EDT 2020


On Sat, 25 Jul 2020 10:08:06 +0800, guodeqing wrote:
> The ihl value of ip header is smaller than 5 in some cases, if the
> ihl value is smaller than 5, then the next code will access the illegal
> address, and the system will panic. ip_fast_csum() must be able to handle
> any value that could fit in the ihl field of the ip protocol header.
> 
> Here I add the check of the ihl value to solve this problem.

Applied to arm64 (for-next/fixes), thanks!

[1/1] arm64: csum: Reject IP headers with 'ihl' field smaller than five
      https://git.kernel.org/arm64/c/09aaef1c5f50

Cheers,
-- 
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev



More information about the linux-arm-kernel mailing list