[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <165727861336.31785.10791410995734457119.git-patchwork-notify@kernel.org>
Date: Fri, 08 Jul 2022 11:10:13 +0000
From: patchwork-bot+netdevbpf@...nel.org
To: Steven Rostedt <rostedt@...dmis.org>
Cc: linux-kernel@...r.kernel.org, nhorman@...driver.com,
davem@...emloft.net, netdev@...r.kernel.org, edumazet@...gle.com,
kuniyu@...zon.com
Subject: Re: [PATCH] net: sock: tracing: Fix sock_exceed_buf_limit not to
dereference stale pointer
Hello:
This patch was applied to netdev/net.git (master)
by David S. Miller <davem@...emloft.net>:
On Wed, 6 Jul 2022 10:50:40 -0400 you wrote:
> From: "Steven Rostedt (Google)" <rostedt@...dmis.org>
>
> The trace event sock_exceed_buf_limit saves the prot->sysctl_mem pointer
> and then dereferences it in the TP_printk() portion. This is unsafe as the
> TP_printk() portion is executed at the time the buffer is read. That is,
> it can be seconds, minutes, days, months, even years later. If the proto
> is freed, then this dereference will can also lead to a kernel crash.
>
> [...]
Here is the summary with links:
- net: sock: tracing: Fix sock_exceed_buf_limit not to dereference stale pointer
https://git.kernel.org/netdev/net/c/820b8963adae
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