From: Michal Luczaj <mhal@rbox.co> mainline inclusion from mainline-v7.4-rc4 commit c8d1abec647223131a8a81c60445a628c1676e26 category: bugfix bugzilla: https://atomgit.com/src-openeuler/kernel/issues/22249 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=... -------------------------------- Commit dfcd17659112 ("bpf: Reject sleepable programs for task_vma iterator") introduced BPF_ITER_NOSLEEP, but did not update the docs. Mention the flag in bpf_iterators.rst. Signed-off-by: Michal Luczaj <mhal@rbox.co> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://patch.msgid.link/20261107-sockmap-update-limit-iter-v3-4-7c0bad1ad03... Signed-off-by: Chen Yuxi <chenyuxi19@huawei.com> --- Documentation/bpf/bpf_iterators.rst | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Documentation/bpf/bpf_iterators.rst b/Documentation/bpf/bpf_iterators.rst index 7f514cb6b052..45377f149a41 100644 --- a/Documentation/bpf/bpf_iterators.rst +++ b/Documentation/bpf/bpf_iterators.rst @@ -234,9 +234,15 @@ The following is the breakdown for each field in struct ``bpf_iter_reg``. the bpf iterator. * - feature - Specifies certain action requests in the kernel BPF iterator - infrastructure. Currently, only BPF_ITER_RESCHED is supported. This means - that the kernel function cond_resched() is called to avoid other kernel - subsystem (e.g., rcu) misbehaving. + infrastructure. + + BPF_ITER_RESCHED + the kernel function cond_resched() is called to avoid other kernel + subsystem (e.g., rcu) misbehaving + + BPF_ITER_NOSLEEP + ``seq_operations::show()`` cannot run sleepable programs + * - seq_info - Specifies the set of seq operations for the BPF iterator and helpers to initialize/free the private data for the corresponding ``seq_file``. -- 2.34.1