From: Mykyta Yatsenko Inline values are not linked to the map, so the iterator would miss them. Signed-off-by: Mykyta Yatsenko --- net/core/bpf_sk_storage.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/net/core/bpf_sk_storage.c b/net/core/bpf_sk_storage.c index 409213755feb..d0eaf4de8090 100644 --- a/net/core/bpf_sk_storage.c +++ b/net/core/bpf_sk_storage.c @@ -938,6 +938,12 @@ static int bpf_iter_attach_map(struct bpf_prog *prog, if (map->map_type != BPF_MAP_TYPE_SK_STORAGE) goto put_map; + /* The iterator walks the selems of the map: it cannot see inline values */ + if (map->map_flags & BPF_F_INLINE_VALUE) { + err = -EOPNOTSUPP; + goto put_map; + } + aux->map = map; err = bpf_iter_map_check_prog(prog, aux); if (err) -- 2.53.1-Meta