diff options
author | Cong Wang <cong.wang@bytedance.com> | 2021-11-14 20:40:06 -0800 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2021-11-16 13:18:23 +0100 |
commit | 099f896f498a2b26d84f4ddae039b2c542c18b48 (patch) | |
tree | 0b9515284b4d457b6d265a367752a7f1ab309ce2 /net/wireless/nl80211.c | |
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 <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 'net/wireless/nl80211.c')
0 files changed, 0 insertions, 0 deletions