diff options
| author | Hui Peng <benquike@gmail.com> | 2026-09-19 11:25:23 +0000 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2026-09-21 10:50:04 -0600 |
| commit | 50b617ba788e5c27dfc6efc90556cdcc9509028d (patch) | |
| tree | 922864c0778ebc2eebea476173cb513b324f4944 /tools/perf/scripts/python | |
| parent | 47ccc3f1c615a46c25cbf7f3ae60df30b40eb2e6 (diff) | |
| download | linux-next-50b617ba788e5c27dfc6efc90556cdcc9509028d.tar.gz linux-next-50b617ba788e5c27dfc6efc90556cdcc9509028d.zip | |
io_uring/bpf_filter: mark source as COW when cloning filters
io_bpf_filter_clone() shares the filter table between source and
destination and marks the destination as needing a copy before it can be
modified, but leaves the source as is. Registering another filter on the
source then modifies the shared table in place, and the change shows up
in everything that cloned it.
Mark the source as COW as well.
Fixes: ed82f35b926b ("io_uring: allow registration of per-task restrictions")
Assisted-by: LLM
Signed-off-by: Hui Peng <benquike@gmail.com>
Link: https://patch.msgid.link/20260919112523.3872581-1-benquike@gmail.com
[axboe: edited patch and commit message]
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
