]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
bpf: sockmap, only create entry if ulp is not already enabled
authorJohn Fastabend <john.fastabend@gmail.com>
Fri, 19 Jul 2019 17:29:21 +0000 (10:29 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 22 Jul 2019 14:04:17 +0000 (16:04 +0200)
commit0e858739c2d2eedeeac1d35bfa0ec3cc2a7190d8
tree3bcae744b57de4368adcdd6fdef261e82cea9d0d
parent2bb90e5cc90e1d09f631aeab041a9cf913a5bbe5
bpf: sockmap, only create entry if ulp is not already enabled

Sockmap does not currently support adding sockets after TLS has been
enabled. There never was a real use case for this so it was never
added. But, we lost the test for ULP at some point so add it here
and fail the socket insert if TLS is enabled. Future work could
make sockmap support this use case but fixup the bug here.

Fixes: 604326b41a6fb ("bpf, sockmap: convert to generic sk_msg interface")
Signed-off-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
net/core/sock_map.c