Re: [PATCH v3] vsock: ignore empty child namespace mode writes
From: patchwork-bot+netdevbpf
Date: Thu Sep 17 2026 - 22:25:41 EST
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
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