Linux-HyperV List
 help / color / mirror / Atom feed
From: Bobby Eshleman <bobbyeshleman@meta.com>
To: Michal Luczaj <mhal@rbox.co>
Cc: "Stefan Hajnoczi" <stefanha@redhat.com>,
	"Stefano Garzarella" <sgarzare@redhat.com>,
	"Michael S. Tsirkin" <mst@redhat.com>,
	"Jason Wang" <jasowangio@gmail.com>,
	"Eugenio Pérez" <eperezma@redhat.com>,
	"Xuan Zhuo" <xuanzhuo@linux.alibaba.com>,
	"David S. Miller" <davem@davemloft.net>,
	"Eric Dumazet" <edumazet@kernel.org>,
	"Jakub Kicinski" <kuba@kernel.org>,
	"Paolo Abeni" <pabeni@redhat.com>,
	"Willem de Bruijn" <willemb@google.com>,
	"Simon Horman" <horms@kernel.org>,
	"Bryan Tan" <bryan-bt.tan@broadcom.com>,
	"Vishnu Dasa" <vishnu.dasa@broadcom.com>,
	"Broadcom internal kernel review list"
	<bcm-kernel-feedback-list@broadcom.com>,
	"Haiyang Zhang" <haiyangz@microsoft.com>,
	"Wei Liu" <wei.liu@kernel.org>,
	"Dexuan Cui" <decui@microsoft.com>,
	virtualization@lists.linux.dev, kvm@vger.kernel.org,
	netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-hyperv@vger.kernel.org
Subject: Re: [PATCH net-next RFC 0/5] vsock: constify transports
Date: Fri, 4 Dec 2026 08:18:49 -0800	[thread overview]
Message-ID: <axLn6cRuGGSMBisR@devvm29614.prn0.facebook.com> (raw)
In-Reply-To: <20261203-vsock-constify-transports-v1-0-ed0c08ca9e0c@rbox.co>

On Thu, Dec 03, 2026 at 05:32:16PM +0100, Michal Luczaj wrote:
> Hardening in the spirit of commit 56130915bbe3 ("VSOCK: constify
> vsock_transport structure"), which constified the only vsock transport of
> its time, but then effectively got reverted in commit c0cfa2d8a788 ("vsock:
> add multi-transports support").
> 
> virtio_transport structs are immutable, move them to RO memory. No
> functional change. Value added: less .data, fewer options to take over
> function pointers [1].
> 
> File sizes are essentially unchanged (deltas -8 to +64 bytes, <= +0.01%).
> Sizes of .text and .bss are unchanged, only movement being few hundred
> bytes of the transport structs relocating from .data to .rodata:
> 
>                                       .rodata  .data
> vsock.ko                              0        0
> vsock_loopback.ko                     +384     -384
> vmw_vsock_virtio_transport.ko         +384     -384
> vmw_vsock_virtio_transport_common.ko  0        0
> vmw_vsock_vmci_transport.ko           +352     -352
> hv_sock.ko                            +352     -352
> vhost_vsock.ko                        +384     -384
> 
> [1] https://www.kernel.org/doc/html/v7.4-rc5/security/self-protection.html#function-pointers-and-sensitive-variables-must-not-be-writable
> 

[...]

> 
> Best regards,
> --  
> Michal Luczaj <mhal@rbox.co>
> 

Thanks for following up on this. All LGTM. Sorry for letting it slip
through the cracks in my series.

Best,
Bobby

  parent reply	other threads:[~2026-12-04 16:19 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-03 16:32 [PATCH net-next RFC 0/5] vsock: constify transports Michal Luczaj
2026-12-03 16:32 ` [PATCH net-next RFC 1/5] vsock/virtio: constify loopback_transport Michal Luczaj
2026-12-03 16:32 ` [PATCH net-next RFC 2/5] vsock/virtio: constify virtio_transport Michal Luczaj
2026-12-03 16:32 ` [PATCH net-next RFC 3/5] vsock/virtio: constify vhost_transport Michal Luczaj
2026-12-03 16:32 ` [PATCH net-next RFC 4/5] vsock/vmci: constify vmci_transport Michal Luczaj
2026-12-03 16:32 ` [PATCH net-next RFC 5/5] vsock/hyperv: constify hvs_transport Michal Luczaj
2026-12-03 20:14   ` Hamza Mahfooz
2026-12-04 16:18 ` Bobby Eshleman [this message]
2026-12-04 19:06   ` [PATCH net-next RFC 0/5] vsock: constify transports Michal Luczaj

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=axLn6cRuGGSMBisR@devvm29614.prn0.facebook.com \
    --to=bobbyeshleman@meta.com \
    --cc=bcm-kernel-feedback-list@broadcom.com \
    --cc=bryan-bt.tan@broadcom.com \
    --cc=davem@davemloft.net \
    --cc=decui@microsoft.com \
    --cc=edumazet@kernel.org \
    --cc=eperezma@redhat.com \
    --cc=haiyangz@microsoft.com \
    --cc=horms@kernel.org \
    --cc=jasowangio@gmail.com \
    --cc=kuba@kernel.org \
    --cc=kvm@vger.kernel.org \
    --cc=linux-hyperv@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mhal@rbox.co \
    --cc=mst@redhat.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=sgarzare@redhat.com \
    --cc=stefanha@redhat.com \
    --cc=virtualization@lists.linux.dev \
    --cc=vishnu.dasa@broadcom.com \
    --cc=wei.liu@kernel.org \
    --cc=willemb@google.com \
    --cc=xuanzhuo@linux.alibaba.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