diff options
| author | Kumar Kartikeya Dwivedi <memxor@gmail.com> | 2026-08-23 20:43:28 +0200 |
|---|---|---|
| committer | Kumar Kartikeya Dwivedi <memxor@gmail.com> | 2026-08-23 21:19:11 +0200 |
| commit | a284ed47ec1fd4aa63d2318d87f457cc421a93b5 (patch) | |
| tree | 077f34b6eb3da1aedb1aa733b0ece4e181daf30c /scripts | |
| parent | 669e4fa766000ae4137bb02eb22ce75ba78ad32d (diff) | |
| parent | 0cf194ccf78852377458b10c8c2e308678b10efa (diff) | |
| download | linux-next-a284ed47ec1fd4aa63d2318d87f457cc421a93b5.tar.gz linux-next-a284ed47ec1fd4aa63d2318d87f457cc421a93b5.zip | |
Merge branch 'bpf-fix-stream-capacity-read-and-oversize-handling'
Jianlin Shi says:
====================
v3 addressed Kartikeya's review on v2 and the related Sashiko findings.
v4 fixes the stream_oversize selftest to verify capacity rollback on the
same BPF program stream, since streams live on prog->aux and are not
shared across programs.
Tested locally:
stream_oversize and stream_partial_read (equivalent to
./test_progs -t stream_oversize,stream_partial_read).
Changelog:
v3 -> v4:
- In stream_oversize, perform the oversized bpf_stream_printk() and a
subsequent successful "foo" push in the same program; read that
program's stream in userspace instead of switching to stream_syscall.
- Drop a redundant vscnprintf() comment in bpf_stream_stage_printk().
v2 -> v3:
- Refactor bpf_stream_release_capacity() to take a length.
- Fix staging-path capacity leak; use vscnprintf().
- Return partial bpf_stream_read() progress on copy_to_user() fault.
- Reject truncated bpf_stream_vprintk() output with -E2BIG.
- Add selftests for oversize and straddling-buffer partial read.
v1 -> v2:
- Retarget to bpf-next as suggested by Pu Lehui.
Links:
v3: https://lore.kernel.org/bpf/?q=%22PATCH+bpf-next+v3+0%2F5%22+fix+stream+capacity
v2: https://lore.kernel.org/bpf/tencent_C919BB32458A4DAD645A68F441345B971E05@qq.com/
v1: https://lore.kernel.org/bpf/tencent_E69EAE29327E25B3548A9AF3F4FA289A6806@qq.com/
====================
Link: https://lore.kernel.org/r/cover.1787492521.git.shijianlin11@foxmail.com
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
