2026-10-16 22:47 UTC+0300 ~ Maxim Skokov <[email protected]>
> Some BPF commands return ENOTSUPP (524) to user space: iterating local
> storage maps, element operations on ringbuf maps, creating an LRU hash
> map without preallocation, freezing a struct_ops map, or running a
> program type that has no test_run. ENOTSUPP is kernel internal, so
> strerror() only gives "Unknown error 524":
> 
>   # bpftool map getnext pinned /sys/fs/bpf/sk_storage
>   Error: can't get next key: Unknown error 524
> 
> Add a small helper that knows ENOTSUPP and use it where bpftool prints
> the error of map create, map element operations, map freeze and prog
> run.
> 
> Suggested-by: Daniel Borkmann <[email protected]>
> Assisted-by: LLM
> Signed-off-by: Maxim Skokov <[email protected]>

Acked-by: Quentin Monnet <[email protected]>

Thank you

Reply via email to