diff options
| author | 2021-11-14 20:40:06 -0800 | |
|---|---|---|
| committer | 2021-11-16 13:18:23 +0100 | |
| commit | 099f896f498a2b26d84f4ddae039b2c542c18b48 (patch) | |
| tree | 0b9515284b4d457b6d265a367752a7f1ab309ce2 /include/linux/mfd/git:/ssh:/git@git.zx2c4.com | |
| parent | bpf: Fix toctou on read-only map's constant scalar tracking (diff) | |
| download | linux-dev-099f896f498a2b26d84f4ddae039b2c542c18b48.tar.xz linux-dev-099f896f498a2b26d84f4ddae039b2c542c18b48.zip | |
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 <daniel@iogearbox.net>
Signed-off-by: Cong Wang <cong.wang@bytedance.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/bpf/20211115044006.26068-1-xiyou.wangcong@gmail.com
Diffstat (limited to 'include/linux/mfd/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
