bpf: Fix bpf_seq_read docs for increased buffer size
Subsystems (2)
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
@@ -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
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 fromPAGE_SIZEtoPAGE_SIZE<< 3, but the docs for the function didn't get updated at the same time. Update them.Fixes af65320948b8 ("bpf: Bump iter seq size to support BTF representation of large data structures")
I think we don't need the "Fixes" tag for the document fix? Therefore, it's better to go to the "bpf-next" tree with the corresponding tag:
[PATCH bpf-next]
Thanks!
Menglong Dong
Quoted 19 lines
Signed-off-by T.J. Mercier <[email protected]>--- kernel/bpf/bpf_iter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)kernel/bpf/bpf_iter.c +1
-1@@ -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 */
Quoted 9 lines · Menglong Dong
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 fromPAGE_SIZEtoPAGE_SIZE<< 3, but the docs for the function didn't get updated at the same time. Update them.Fixes af65320948b8 ("bpf: Bump iter seq size to support BTF representation of large data structures")
Quoted 7 lines
I think we don't need the "Fixes" tag for the document fix? Therefore, it's better to go to the "bpf-next" tree with the corresponding tag:
[PATCH bpf-next]Thanks!
Menglong Dong
SGTM, resent to bpf-next at:
https://lore.kernel.org/bpf/[email protected]/T/#u
Thanks!
-T.J.
Quoted 23 lines
Quoted 19 lines
Signed-off-by T.J. Mercier <[email protected]>--- kernel/bpf/bpf_iter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)kernel/bpf/bpf_iter.c +1
-1@@ -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 */