Re: [PATCH net] hsr: Prevent use after free in prp_create_tagged_frame()
From: patchwork-bot+netdevbpf@kernel.org
Date: 2023-11-02 05:51:27
Also in:
kernel-janitors
From: patchwork-bot+netdevbpf@kernel.org
Date: 2023-11-02 05:51:27
Also in:
kernel-janitors
Hello: This patch was applied to netdev/net.git (main) by Jakub Kicinski [off-list ref]: On Fri, 27 Oct 2023 15:19:01 +0300 you wrote:
The prp_fill_rct() function can fail. In that situation, it frees the
skb and returns NULL. Meanwhile on the success path, it returns the
original skb. So it's straight forward to fix bug by using the returned
value.
Fixes: 451d8123f897 ("net: prp: add packet handling support")
Signed-off-by: Dan Carpenter <redacted>
[...]
Here is the summary with links:
- [net] hsr: Prevent use after free in prp_create_tagged_frame()
https://git.kernel.org/netdev/net/c/876f8ab52363
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html