]> git.baikalelectronics.ru Git - kernel.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)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 12 Jun 2020 22:13:43 +0000 (15:13 -0700)
commit1d79e18424e790e9e5501e73450981d8918447c3
tree05dd70a403a2cb4187a111008b6050126fda0acb
parent5713425586f1a72ee0281c1efa7a501b0e462ff4
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: f6c57080e322 ("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