[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id:
<175270800628.1359575.17421649701122534916.git-patchwork-notify@kernel.org>
Date: Wed, 16 Jul 2025 23:20:06 +0000
From: patchwork-bot+netdevbpf@...nel.org
To: ALOK TIWARI <alok.a.tiwari@...cle.com>
Cc: sayantan.nandy@...oha.com, lorenzo@...nel.org, andrew+netdev@...n.ch,
davem@...emloft.net, edumazet@...gle.com, kuba@...nel.org, pabeni@...hat.com,
horms@...nel.org, netdev@...r.kernel.org, linux-mediatek@...ts.infradead.org,
linux-arm-kernel@...ts.infradead.org
Subject: Re: [PATCH net v2] net: airoha: fix potential use-after-free in
airoha_npu_get()
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@...nel.org>:
On Tue, 15 Jul 2025 07:30:58 -0700 you wrote:
> np->name was being used after calling of_node_put(np), which
> releases the node and can lead to a use-after-free bug.
> Previously, of_node_put(np) was called unconditionally after
> of_find_device_by_node(np), which could result in a use-after-free if
> pdev is NULL.
>
> This patch moves of_node_put(np) after the error check to ensure
> the node is only released after both the error and success cases
> are handled appropriately, preventing potential resource issues.
>
> [...]
Here is the summary with links:
- [net,v2] net: airoha: fix potential use-after-free in airoha_npu_get()
https://git.kernel.org/netdev/net/c/3cd582e7d078
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Powered by blists - more mailing lists