Skip to content

Two BPF sockmap fixes

Daniel Borkmann netdev 1 version Applied

Status from this message: Applied, Thanks

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2bpf, sockmap: fix potential use after free in bpf_tcp_closekernel/bpf/sockmap.c+1 -11 reply
2/2bpf, sockmap: fix psock refcount leak in bpf_tcp_recvmsgkernel/bpf/sockmap.c+2 -31 reply

Reviews trailers per patch

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

PatchJohn Fastabend
1/2A-b
2/2A-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/2] Two BPF sockmap fixes

This series contains two fixes found while working with the BPF sockmap code. One refcount leakage and one case for a small window of use after free. See patches for more info. Thanks!

Daniel Borkmann (2):
bpf, sockmap: fix potential use after free in bpf_tcp_close bpf, sockmap: fix psock refcount leak in bpf_tcp_recvmsg

 kernel/bpf/sockmap.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
Signature · 1 line
2.9.5