Re: [PATCH net v2] net/sched: cls_api: Initialize miss_cookie_node when action miss is not used

From: patchwork-bot+netdevbpf
Date: Fri Apr 21 2023 - 23:40:29 EST


Hello:

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

On Thu, 20 Apr 2023 20:36:33 +0200 you wrote:
> Function tcf_exts_init_ex() sets exts->miss_cookie_node ptr only
> when use_action_miss is true so it assumes in other case that
> the field is set to NULL by the caller. If not then the field
> contains garbage and subsequent tcf_exts_destroy() call results
> in a crash.
> Ensure that the field .miss_cookie_node pointer is NULL when
> use_action_miss parameter is false to avoid this potential scenario.
>
> [...]

Here is the summary with links:
- [net,v2] net/sched: cls_api: Initialize miss_cookie_node when action miss is not used
https://git.kernel.org/netdev/net/c/2cc8a008d62f

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