Re: [PATCH] net: page_pool: Fix NULL pointer dereference in page_pool_unlist()

From: Jakub Kicinski
Date: Fri Dec 01 2023 - 02:08:44 EST


On Thu, 30 Nov 2023 20:25:42 +0100 Bert Karwatzki wrote:
> When the the hlist_node pool->user.list is in an in an unhashed state,
> calling hlist_del() leads to a NULL pointer dereference. This happens
> e. g. when rmmod'ing the mt7921e (mediatek wifi driver) kernel module.
> An additional check fixes the issue.
>
> Fixes: 083772c9f972dc ("net: page_pool: record pools per netdev")
>
> Signed-off-by: Bert Karwatzki <spasswolf@xxxxxx>

Thanks for the patch, we got a couple of similar submissions,
and merged the first one to be posted.. should be fixed in net-next now.
--
pw-bot: na