Skip to content

sockmap fix for test_map failure

John Fastabend bpf netdev 1 version Applied

Status from this message: This series was applied to bpf/bpf.git (master)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2bpf, sockmap: Attach map progs to psock early for feature probesnet/core/sock_map.c+6 -40 repliesApplied
2/2bpf, sockmap: Re-evaluate proto ops when psock is removed from sockmapnet/core/skmsg.c net/core/sock_map.c+9 -10 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH bpf 0/2] sockmap fix for test_map failure

CI test_map runs started failing because of a regression in the sockmap tests. The case, caught by test_maps is that progs attached to sockets are not detatched currently when sockets are removed from a map. We resolve this in two patches. The first patch fixes a subtle issue found from code review and the second patch addresses the reported CI issue. This was recently introduced by a race fix, see patches for details.

Sorry for the hassle here, seems we missed ./test_maps run before pushing the offending patch or maybe we just got lucky on the run we did locally. Either way should be resolved now.

Thanks,
John

John Fastabend (2):
bpf, sockmap: Attach map progs to psock early for feature probes bpf, sockmap: Re-evaluate proto ops when psock is removed from sockmap

 net/core/skmsg.c    |  5 +++++
 net/core/sock_map.c | 15 ++++++++++-----
 2 files changed, 15 insertions(+), 5 deletions(-)
Signature · 1 line
2.33.0