From: patchwork-bot+netdevbpf@kernel.org
To: Jakub Kicinski <kuba@kernel.org>
Cc: davem@davemloft.net, netdev@vger.kernel.org, edumazet@google.com,
pabeni@redhat.com, andrew+netdev@lunn.ch, horms@kernel.org,
leitao@debian.org
Subject: Re: [PATCH net] netconsole: avoid OOB reads, msg is not nul-terminated
Date: Tue, 24 Feb 2026 09:50:04 +0000 [thread overview]
Message-ID: <177192660480.3419710.2459154595902794412.git-patchwork-notify@kernel.org> (raw)
In-Reply-To: <20260219195021.2099699-1-kuba@kernel.org>
Hello:
This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@redhat.com>:
On Thu, 19 Feb 2026 11:50:21 -0800 you wrote:
> msg passed to netconsole from the console subsystem is not guaranteed
> to be nul-terminated. Before recent
> commit 7eab73b18630 ("netconsole: convert to NBCON console infrastructure")
> the message would be placed in printk_shared_pbufs, a static global
> buffer, so KASAN had harder time catching OOB accesses. Now we see:
>
> printk: console [netcon_ext0] enabled
> BUG: KASAN: slab-out-of-bounds in string+0x1f7/0x240
> Read of size 1 at addr ffff88813b6d4c00 by task pr/netcon_ext0/594
>
> [...]
Here is the summary with links:
- [net] netconsole: avoid OOB reads, msg is not nul-terminated
https://git.kernel.org/netdev/net/c/82aec772fca2
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
prev parent reply other threads:[~2026-02-24 9:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-19 19:50 [PATCH net] netconsole: avoid OOB reads, msg is not nul-terminated Jakub Kicinski
2026-02-22 16:13 ` Simon Horman
2026-03-02 9:47 ` Breno Leitao
2026-02-24 9:50 ` patchwork-bot+netdevbpf [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=177192660480.3419710.2459154595902794412.git-patchwork-notify@kernel.org \
--to=patchwork-bot+netdevbpf@kernel.org \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=leitao@debian.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox