2026-10-16 22:47 UTC+0300 ~ Maxim Skokov <[email protected]> > Socket storage can't be iterated from user space. Create a > BPF_MAP_TYPE_SK_STORAGE map, attach storage to a socket, pin it, and > check that "bpftool map dump" fails with nothing but an error: a JSON > error object with -j, no elements on stdout in plain mode, and the > reason on stderr. > > Socket storage always has BTF, so its plain dump goes through the BTF > writer and never prints an element count. Check that path with a queue > map created without BTF that holds one element: its plain dump must > fail without a "Found" line, which bpftool printed as "Found 0 > elements" before, and give the reason on stderr. > > Assisted-by: LLM > Signed-off-by: Maxim Skokov <[email protected]>
Acked-by: Quentin Monnet <[email protected]>
