]> 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)
commita6981762b83c223389fcf113f99353820d7c3a57
tree05dd70a403a2cb4187a111008b6050126fda0acb
parent489f814aad767078242984d01b5cd62f08131ead
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: a8afc0b927f1 ("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