diff options
author | Cong Wang <[email protected]> | 2021-11-14 20:40:06 -0800 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2021-11-16 13:18:23 +0100 |
commit | 099f896f498a2b26d84f4ddae039b2c542c18b48 (patch) | |
tree | 0b9515284b4d457b6d265a367752a7f1ab309ce2 /scripts/clang-tools/gen_compile_commands.py | |
parent | 353050be4c19e102178ccc05988101887c25ae53 (diff) |
udp: Validate checksum in udp_read_sock()
It turns out the skb's in sock receive queue could have bad checksums, as
both ->poll() and ->recvmsg() validate checksums. We have to do the same
for ->read_sock() path too before they are redirected in sockmap.
Fixes: d7f571188ecf ("udp: Implement ->read_sock() for sockmap")
Reported-by: Daniel Borkmann <[email protected]>
Signed-off-by: Cong Wang <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: John Fastabend <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'scripts/clang-tools/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions