Thread (3 messages) 3 messages, 3 authors, 2021-04-22

Re: [PATCH] net: qrtr: Avoid potential use after free in MHI send

From: patchwork-bot+netdevbpf@kernel.org
Date: 2021-04-21 18:10:12
Also in: linux-arm-msm, lkml

Hello:

This patch was applied to netdev/net.git (refs/heads/master):

On Wed, 21 Apr 2021 10:40:07 -0700 you wrote:
It is possible that the MHI ul_callback will be invoked immediately
following the queueing of the skb for transmission, leading to the
callback decrementing the refcount of the associated sk and freeing the
skb.

As such the dereference of skb and the increment of the sk refcount must
happen before the skb is queued, to avoid the skb to be used after free
and potentially the sk to drop its last refcount..

[...]
Here is the summary with links:
  - net: qrtr: Avoid potential use after free in MHI send
    https://git.kernel.org/netdev/net/c/47a017f33943

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

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help