summaryrefslogtreecommitdiff
path: root/lib/Kconfig.debug
diff options
context:
space:
mode:
authorJoe Stringer <joe@wand.net.nz>2020-04-07 20:35:40 -0700
committerDaniel Borkmann <daniel@iogearbox.net>2020-04-09 01:02:14 +0200
commit8e368dc72e86ad1e1a612416f32d5ad22dca88bc (patch)
tree654cd7e341b07cb25b2a1b224d7c900f26ebce91 /lib/Kconfig.debug
parenteb203f4b89c1a1a779d9781e49b568d2a712abc6 (diff)
bpf: Fix use of sk->sk_reuseport from sk_assign
In testing, we found that for request sockets the sk->sk_reuseport field may yet be uninitialized, which caused bpf_sk_assign() to randomly succeed or return -ESOCKTNOSUPPORT when handling the forward ACK in a three-way handshake. Fix it by only applying the reuseport check for full sockets. Fixes: cf7fbe660f2d ("bpf: Add socket assign support") Signed-off-by: Joe Stringer <joe@wand.net.nz> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Martin KaFai Lau <kafai@fb.com> Link: https://lore.kernel.org/bpf/20200408033540.10339-1-joe@wand.net.nz
Diffstat (limited to 'lib/Kconfig.debug')
0 files changed, 0 insertions, 0 deletions