Thread (11 messages) flat view 11 messages, 6 authors, 8d ago

Re: [PATCH v3] vsock: ignore empty child namespace mode writes

From: patchwork-bot+netdevbpf@kernel.org
Date: 2026-09-18 02:11:10
Also in: lkml, stable, virtualization

Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski [off-list ref]:

On Tue, 15 Sep 2026 14:30:50 -0300 you wrote:
__vsock_net_mode_string() returns success without updating new_mode when
the transfer length is zero. Its caller then reads the uninitialized enum
and may permanently store a stack-derived value in the write-once child
mode.

Return before calling __vsock_net_mode_string() when *lenp is zero so
that the helper is never invoked with nothing to parse and new_mode is
never read uninitialized. This also prevents an empty write from
locking the current mode.

[...]
Here is the summary with links:
  - [v3] vsock: ignore empty child namespace mode writes
    https://git.kernel.org/netdev/net/c/2ec28c09b320

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