Thread (41 messages) 41 messages, 6 authors, 2026-01-15

Re: [PATCH bpf-next v9 05/11] bpf: support fsession for bpf_session_cookie

From: Menglong Dong <hidden>
Date: 2026-01-14 02:39:00
Also in: bpf, lkml

On 2026/1/14 10:33 Alexei Starovoitov [off-list ref] write:
On Tue, Jan 13, 2026 at 5:24 PM Andrii Nakryiko
[off-list ref] wrote:
quoted
On Sat, Jan 10, 2026 at 6:12 AM Menglong Dong [off-list ref] wrote:
quoted
Implement session cookie for fsession. In order to limit the stack usage,
we make 4 as the maximum of the cookie count.
This 4 is so random, tbh. Do we need to artificially limit it? Even if
all BPF_MAX_TRAMP_LINKS = 38 where using session cookies, it would be
304 bytes. Not insignificant, but also not world-ending and IMO so
unlikely that I wouldn't add extra limits at all.
I forgot that we already have BPF_MAX_TRAMP_LINKS limit for the total
number of progs. I guess extra 8 bytes per fsession prog isn't that bad.
Ah, so it's OK to not limit the session cookie. I'll remove such limitation
in the next version.

Thanks!
Menglong Dong


Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help