Subject: Re: [PATCH net] net: genl: fix error path memory leak in policy dumping

From: Jakub Kicinski <[email-masked]>
Date: Mon, 15 Aug 2022 18:23:29 -0700

On Mon, 15 Aug 2022 11:20:21 -0700 Jakub Kicinski wrote:
> If construction of the array of policies fails when recording
> non-first policy we need to unwind.
> 
> Reported-by: [email-masked]
> Fixes: 50a896cf2d6f ("genetlink: properly support per-op policy dumping")
> Signed-off-by: Jakub Kicinski <[email-masked]>

syzbot says still pooped, indeed there's more leaks in
netlink_policy_dump_add_policy() itself. v2 coming...