Re: [PATCH] team: Fix use-after-free when an option instance allocation fails

From: patchwork-bot+netdevbpf
Date: Fri Dec 08 2023 - 13:50:28 EST


Hello:

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

On Wed, 6 Dec 2023 13:37:18 +0100 you wrote:
> In __team_options_register, team_options are allocated and appended to
> the team's option_list.
> If one option instance allocation fails, the "inst_rollback" cleanup
> path frees the previously allocated options but doesn't remove them from
> the team's option_list.
> This leaves dangling pointers that can be dereferenced later by other
> parts of the team driver that iterate over options.
>
> [...]

Here is the summary with links:
- team: Fix use-after-free when an option instance allocation fails
https://git.kernel.org/netdev/net/c/c12296bbecc4

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