]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
bpf: Fix bpf_seq_read docs for increased buffer size
authorT.J. Mercier <tjmercier@google.com>
Sun, 7 Dec 2025 09:10:04 +0000 (01:10 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Sun, 14 Dec 2025 02:57:53 +0000 (18:57 -0800)
Commit af65320948b8 ("bpf: Bump iter seq size to support BTF
representation of large data structures") increased the fixed buffer
size from PAGE_SIZE to PAGE_SIZE << 3, but the docs for the function
didn't get updated at the same time. Update them.

Signed-off-by: T.J. Mercier <tjmercier@google.com>
Acked-by: Yonghong Song <yonghong.song@linux.dev>
Link: https://lore.kernel.org/r/20251207091005.2829703-1-tjmercier@google.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/bpf_iter.c

index eec60b57bd3da793e11b8db5d93c3c9651c64455..4b58d56ecab10c3839ab04f3841a73d6f10ba1a6 100644 (file)
@@ -86,7 +86,7 @@ static bool bpf_iter_support_resched(struct seq_file *seq)
 
 /* bpf_seq_read, a customized and simpler version for bpf iterator.
  * The following are differences from seq_read():
- *  . fixed buffer size (PAGE_SIZE)
+ *  . fixed buffer size (PAGE_SIZE << 3)
  *  . assuming NULL ->llseek()
  *  . stop() may call bpf program, handling potential overflow there
  */