]> www.infradead.org Git - users/dwmw2/linux.git/commit
bpf: sockmap: Don't attach programs to UDP sockets
authorLorenz Bauer <lmb@cloudflare.com>
Thu, 11 Jun 2020 17:25:20 +0000 (18:25 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jun 2020 15:49:11 +0000 (17:49 +0200)
commit032f8eb4b9cec71a6e2ec47a846b293401bbea74
tree3130f4d00608ed5ed6c8edcb113fdb7d2bb87856
parent511db12b4dca2b1954004999d4ea328e9b6ea6f6
bpf: sockmap: Don't attach programs to UDP sockets

[ Upstream commit f6fede8569689dd31e7b0ed15024b25e5ce2e2e5 ]

The stream parser infrastructure isn't set up to deal with UDP
sockets, so we mustn't try to attach programs to them.

I remember making this change at some point, but I must have lost
it while rebasing or something similar.

Fixes: 7b98cd42b049 ("bpf: sockmap: Add UDP support")
Signed-off-by: Lorenz Bauer <lmb@cloudflare.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Jakub Sitnicki <jakub@cloudflare.com>
Link: https://lore.kernel.org/bpf/20200611172520.327602-1-lmb@cloudflare.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/core/sock_map.c