From: Michal Luczaj <mhal@rbox.co>
To: Bobby Eshleman <bobbyeshleman@meta.com>
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 20:06:19 +0100 [thread overview]
Message-ID: <a9af3137-008b-4f84-ac77-776b03bc38ba@rbox.co> (raw)
In-Reply-To: <axLn6cRuGGSMBisR@devvm29614.prn0.facebook.com>
On 12/4/26 17:18, Bobby Eshleman wrote:
> 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
>
> Thanks for following up on this. All LGTM. Sorry for letting it slip
> through the cracks in my series.
Great, I'll wait for your series to land and adapt this accordingly.
Michal
prev parent reply other threads:[~2026-12-04 19:06 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 ` [PATCH net-next RFC 0/5] vsock: constify transports Bobby Eshleman
2026-12-04 19:06 ` Michal Luczaj [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=a9af3137-008b-4f84-ac77-776b03bc38ba@rbox.co \
--to=mhal@rbox.co \
--cc=bcm-kernel-feedback-list@broadcom.com \
--cc=bobbyeshleman@meta.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=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