Skip to content

BPF sockmap and ulp fixes

Daniel Borkmann netdev 1 version Applied

Status from this message: Applied to bpf tree, Thanks everyone

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 6 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/5tcp, ulp: add alias for all ulp modulesinclude/net/tcp.h net/ipv4/tcp_ulp.c net/tls/tls_main.c+6 -11 reply
2/5tcp, ulp: fix leftover icsk_ulp_ops preventing sock from reattachnet/ipv4/tcp_ulp.c+2 -01 reply
3/5bpf, sockmap: fix leakage of smap_psock_map_entrykernel/bpf/sockmap.c+7 -21 reply
4/5bpf, sockmap: fix map elem deletion race with smap_stop_sockkernel/bpf/sockmap.c+4 -11 reply
5/5bpf, sockmap: fix sock_map_ctx_update_elem race with exist/noexistkernel/bpf/sockmap.c+57 -491 reply

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchJohn FastabendSong Liu
1/5A-b A-b
2/5A-b A-b
3/5A-b A-b
4/5A-b A-b
5/5A-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH bpf 0/5] BPF sockmap and ulp fixes

Batch of various fixes related to BPF sockmap and ULP, including adding module alias to restrict module requests, races and memory leaks in sockmap code. For details please refer to the individual patches. Thanks!

Daniel Borkmann (5):
tcp, ulp: add alias for all ulp modules
tcp, ulp: fix leftover icsk_ulp_ops preventing sock from reattach bpf, sockmap: fix leakage of smap_psock_map_entry
bpf, sockmap: fix map elem deletion race with smap_stop_sock bpf, sockmap: fix sock_map_ctx_update_elem race with exist/noexist

 include/net/tcp.h    |   4 ++
 kernel/bpf/sockmap.c | 120 +++++++++++++++++++++++++++++----------------------
 net/ipv4/tcp_ulp.c   |   4 +-
 net/tls/tls_main.c   |   1 +
 4 files changed, 76 insertions(+), 53 deletions(-)
Signature · 1 line
2.9.5