On Mon, 14 Sep 2026 08:02:23 -0400 Daniel Zahka wrote: > As an aside, this got me looking at psp_nl_fill_assoc_dev_list() again. > The PSP_A_ASSOC_DEV_INFO_NSID handling there looks a bit buggy. Caller > sees -1 when the assoc dev is in their namespace, unless they are in the > psp_dev's main_netdev's netns. In that case, a self referential nsid is > allocated with peernet2id_alloc(). It probably would have made more > sense to just only include PSP_A_ASSOC_DEV_INFO_NSID if !net_eq(cur_net, > dev_net_ns). I don't suppose it makes any real bugs reachable.
Ack, I looked at the netns id situation briefly but deferred. I think we need a split between the "netns went away" and ENOMEM cases, and then have the dump act accordingly. This is a problem all over the uAPI tho, so felt quite orthogonal.
