Re: [PATCH net] virtio/vsock: Fix uninit-value in virtio_transport_recv_pkt()
From: Shigeru Yoshida <hidden>
Date: 2023-11-02 13:31:06
Also in:
kvm, lkml
From: Shigeru Yoshida <hidden>
Date: 2023-11-02 13:31:06
Also in:
kvm, lkml
On Wed, 1 Nov 2023 22:20:45 -0700, Jakub Kicinski wrote:
On Fri, 27 Oct 2023 00:01:54 +0900 Shigeru Yoshida wrote:quoted
This issue occurs because the `buf_alloc` and `fwd_cnt` fields of the `struct virtio_vsock_hdr` are not initialized when a new skb is allocated in `virtio_transport_alloc_skb()`. This patch resolves the issue by initializing these fields during allocation.We didn't manage to apply this before the merge window, and now the trees have converged. Patch no longer applies cleanly to net. Please rebase & repost.
I got it. I'll rebase the patch to the latest net tree and resend it. Thanks, Shigeru