Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: 0e455d8 ("arm64: Implement optimised IP checksum helpers") Reported-by: guodeqing <[email protected]> Signed-off-by: Robin Murphy <[email protected]> Signed-off-by: Will Deacon <[email protected]>
- Loading branch information