Skip to content

bpf: net: Fixes in sk_user_data of reuseport_array

Martin KaFai Lau bpf netdev 2 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 6 repliesApplied
  2. v12 patches 1 replySuperseded

Changes in v2 from the cover letter

- Avoid ~3UL (Andrii)

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2bpf: net: Avoid copying sk_user_data of reuseport_array during sk_clonekernel/bpf/reuseport_array.c+9 -43 replies
2/2bpf: net: Avoid incorrect bpf_sk_reuseport_detach callinclude/net/sock.h kernel/bpf/reuseport_array.c+5 -32 replies

Reviews trailers per patch

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

PatchJames ChapmanJakub Sitnicki
1/2R-b
2/2A-b T-b

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

Read the v2 thread

Cover letter [PATCH v2 bpf 0/2] bpf: net: Fixes in sk_user_data of reuseport_array

This set fixes two issues on sk_user_data when a sk is added to a reuseport_array.

The first patch is to avoid the sk_user_data being copied
to a cloned sk. The second patch avoids doing bpf_sk_reuseport_detach() on sk_user_data that is not managed by reuseport_array.

Since the changes are mostly related to bpf reuseport_array, so it is currently tagged as bpf fixes.

v2:
- Avoid ~3UL (Andrii)

Martin KaFai Lau (2):
bpf: net: Avoid copying sk_user_data of reuseport_array during
sk_clone
bpf: net: Avoid incorrect bpf_sk_reuseport_detach call

 include/net/sock.h           |  3 ++-
 kernel/bpf/reuseport_array.c | 14 ++++++++++----
 2 files changed, 12 insertions(+), 5 deletions(-)
Signature · 1 line
2.24.1