Skip to contentSkip to conversation

bpf: Fix bpf_seq_read docs for increased buffer size

PATCH Applied T.J. Mercier 3 participants 4 messages Dec 7, 2025 – Dec 14, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bpf: Fix bpf_seq_read docs for increased buffer size

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.

---
 kernel/bpf/bpf_iter.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/bpf/bpf_iter.c +1 -1
index eec60b57bd3d..4b58d56ecab1 100644
@@ -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
  */
Signature · 1 line
2.52.0.223.gf5cc29aaa4-goog
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 6 lines · T.J. Mercier

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.

#2 lore raw
Quoted 4 lines · Yonghong Song

On 12/7/25 1:10 AM, T.J. Mercier wrote:

Quoted 8 lines
Quoted 6 lines

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.

Thanks!

#3 lore raw
In reply to T.J. Mercier
This patch was applied to bpf/bpf-next.git (master) by Alexei Starovoitov <[email protected]>:

Hello:

This patch was applied to bpf/bpf-next.git (master) by Alexei Starovoitov <[email protected]>:

Quoted 8 lines · On Sun, 7 Dec 2025 01:10:04 -0800 you wrote:

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.

[...]

Here is the summary with links:
- [bpf-next] bpf: Fix bpf_seq_read docs for increased buffer size

    https://git.kernel.org/bpf/bpf-next/c/6f0b824a61f2

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html