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