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)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 12 Jun 2020 22:13:43 +0000 (15:13 -0700)
commitf6fede8569689dd31e7b0ed15024b25e5ce2e2e5
tree05dd70a403a2cb4187a111008b6050126fda0acb
parent2c7269b231194aae23fb90ab65842573a91acbc9
bpf: sockmap: Don't attach programs to UDP sockets

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
net/core/sock_map.c