Re: [PATCH] net: bnxt: fix a potential use-after-free in bnxt_init_tc

From: patchwork-bot+netdevbpf
Date: Tue Dec 05 2023 - 22:50:28 EST


Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:

On Mon, 4 Dec 2023 10:40:04 +0800 you wrote:
> When flow_indr_dev_register() fails, bnxt_init_tc will free
> bp->tc_info through kfree(). However, the caller function
> bnxt_init_one() will ignore this failure and call
> bnxt_shutdown_tc() on failure of bnxt_dl_register(), where
> a use-after-free happens. Fix this issue by setting
> bp->tc_info to NULL after kfree().
>
> [...]

Here is the summary with links:
- net: bnxt: fix a potential use-after-free in bnxt_init_tc
https://git.kernel.org/netdev/net/c/d007caaaf052

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html