Subject: Re: [PATCH net ver.2] genetlink: fix possible use-after-free and null-ptr-deref in genl_dumpit()

From: Jakub Kicinski <[email-masked]>
Date: Wed, 21 Feb 2024 17:23:09 -0800

On Tue, 20 Feb 2024 13:25:12 +0300 [email-masked] wrote:
> From: Vasiliy Kovalev <[email-masked]>
> 
> The pernet operations structure for the subsystem must be registered
> before registering the generic netlink family.

I think this one is incorrect, genetlink is what other families
register _with_. It's special. Until it opens the socket in
genl_pernet_init() nothing can reach it from user space.

We should probably add a comment saying that it's special, I get
the feeling other families ended up doing a copy & paste of genetlink..
-- 
pw-bot: cr