Skip to content

vsock: fix child netns mode initialization and restriction

Stefano Garzarella lkml netdev virtualization 1 version Applied

Status from this message: This series was applied to netdev/net.git (main)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2vsock: fix child netns mode initializationnet/vmw_vsock/af_vsock.c+3 -21 replyApplied
2/2vsock: prevent child netns mode switch from local to globalnet/vmw_vsock/af_vsock.c+12 -31 replyApplied

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchBobby Eshleman
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net 0/2] vsock: fix child netns mode initialization and restriction

This series fixes two issues in the vsock network namespace support recently introduced by commit eafb64f40ca4 ("vsock: add netns to vsock core").

Patch 1 fixes child_ns_mode being always hardcoded to "global" for new namespaces, breaking propagation of the "local" mode through nested namespaces.

Patch 2 prevents a "local" namespace from switching child_ns_mode to "global", which would allow nested namespaces to escape vsock isolation and access global CIDs.

Stefano Garzarella (2):
vsock: fix child netns mode initialization
vsock: prevent child netns mode switch from local to global

 net/vmw_vsock/af_vsock.c | 20 +++++++++++++++-----
 1 file changed, 15 insertions(+), 5 deletions(-)
Signature · 1 line
2.53.0