Re: [PATCH net] vsock/vmci: Clear the vmci transport packet properly when initializing it

From: Stefano Garzarella
Date: Thu Jul 03 2025 - 06:50:47 EST


On Tue, Jul 01, 2025 at 02:56:14PM +0200, Greg Kroah-Hartman wrote:
On Tue, Jul 01, 2025 at 02:42:10PM +0200, Stefano Garzarella wrote:
On Tue, Jul 01, 2025 at 02:22:54PM +0200, Greg Kroah-Hartman wrote:
> From: HarshaVardhana S A <harshavardhana.sa@xxxxxxxxxxxx>
>
> In vmci_transport_packet_init memset the vmci_transport_packet before
> populating the fields to avoid any uninitialised data being left in the
> structure.

Usually I would suggest inserting a Fixes tag, but if you didn't put it,
there's probably a reason :-)

If we are going to add it, I think it should be:

Fixes: d021c344051a ("VSOCK: Introduce VM Sockets")

Yeah, I didn't think it was needed as this is obviously a "ever since
this file has been there" type of thing, so it will be backported
everywhere once it hits Linus's tree.

I see, thanks!
Stefano