bpf, skmsg: some fixes for skmsg
Status from this message: This series was applied to bpf/bpf-next.git (master)
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest6 patches 3 repliesApplied 6/6
- v37 patches 8 repliesSuperseded
- v27 patches 12 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 4 patches | 2 replies | Superseded |
Patches in v4 All 6 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | bpf, sockmap: reject overflowing copy + len in bpf_msg_push_data()net/ | +3 | 1 reply | Applied |
| 2/6 | bpf, sockmap: Fix wrong rsge offset in bpf_msg_push_data()net/ | +1 | 1 reply | Applied |
| 3/6 | bpf, sockmap: keep sk_msg copy state in syncnet/ | +83 | 0 replies | Applied |
| 4/6 | sockmap: Fix use-after-free in udp_bpf_recvmsg()net/ | +9 | 0 replies | Applied |
| 5/6 | bpf, sockmap: fix integer overflow in bpf_msg_pop_data() bounds checknet/ | +2 | 1 reply | Applied |
| 6/6 | selftests/bpf: add test for bpf_msg_pop_data() overflowtools/ tools/ | +75 | 0 replies | Applied |
Reviews trailers per patch
All 6 patches have a Reviewed-by or Acked-by.
| Patch | Xiang Mei | Xinyu Ma | Jiayuan Chen | Emil Tsalapatis | Kuniyuki Iwashima | John Fastabend | Jakub Sitnicki |
|---|---|---|---|---|---|---|---|
| 1/6 | T-b | T-b | R-b | R-b | R-b | R-b | |
| 2/6 | R-b | R-b | R-b | R-b | |||
| 3/6 | R-b | R-b | R-b | ||||
| 4/6 | R-b | R-b | R-b | ||||
| 5/6 | R-b | R-b | R-b | R-b | |||
| 6/6 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 7 reviewers.
Cover letter [PATCH bpf-next v4 0/6] bpf, skmsg: some fixes for skmsg
All fixes are from previous patches sent by Weiming Shi, Zhang Cen, Kuniyuki and Sechang Lim, which have already been reviewed by me and John and Jakub.
https://lore.kernel.org/bpf/[email protected]/
https://lore.kernel.org/bpf/[email protected]/
https://lore.kernel.org/bpf/[email protected]/
https://lore.kernel.org/bpf/[email protected]/
https://lore.kernel.org/bpf/[email protected]/
The automated reviewer (sashiko) may still flag a few other potential issues on top of this series. After looking into them, they are either already covered by the patches here, are the BPF program's own responsibility (e.g. initializing the payload it pushes) and intentionally left out, or only reachable under very narrow conditions that require a specially crafted BPF program and an unusual sk_msg ring state, so they are not practical to trigger and are left out of this series. I'm collecting these fixes together because the same
problems have been re-sent many times in slightly different forms, and I hope this series can be prioritized for merging so the duplicates can finally settle. With so many AI-generated patches floating around for these spots, leaving them unmerged just keeps wasting maintainer review cycles on the same issues.
v3->v4: Carry Kuniyuki Iwashima's reviewed-by tag.
Drop the __GFP_ZERO patch; initializing the pushed payload is the BPF program's responsibility, not the kernel's (per maintainer feedback).
https://lore.kernel.org/bpf/[email protected]/v2->v3: Target to bpf-next and carry Emil's reviewed-by tag.
Reverse xmas tree style is used suggested by Cong. (not all code match reverse xmas tree due to variable dependency)v1->v2: fix problem when fix the conflict.
Kuniyuki Iwashima (1):
sockmap: Fix use-after-free in udp_bpf_recvmsg()
Sechang Lim (2):
bpf, sockmap: fix integer overflow in bpf_msg_pop_data() bounds check selftests/bpf: add test for bpf_msg_pop_data() overflow
Weiming Shi (2):
bpf, sockmap: reject overflowing copy + len in bpf_msg_push_data() bpf, sockmap: Fix wrong rsge offset in bpf_msg_push_data()
Zhang Cen (1):
bpf, sockmap: keep sk_msg copy state in sync
net/core/filter.c | 97 +++++++++++++++++-- net/ipv4/udp_bpf.c | 9 ++ .../selftests/bpf/prog_tests/sockmap_basic.c | 48 +++++++++ .../bpf/progs/test_sockmap_msg_pop_data.c | 27 ++++++ 4 files changed, 173 insertions(+), 8 deletions(-) create mode 100644 tools/testing/selftests/bpf/progs/test_sockmap_msg_pop_data.c
Signature · 1 line
2.43.0