Messages in this thread | | | From | Jeongjun Park <> | Subject | Re: [PATCH virt] virt: fix uninit-value in vhost_vsock_dev_open | Date | Sun, 21 Apr 2024 12:06:06 +0900 |
| |
static bool vhost_transport_seqpacket_allow(u32 remote_cid) { ... vsock = vhost_vsock_get(remote_cid);
if (vsock) seqpacket_allow = vsock->seqpacket_allow; ... }
I think this is due to reading a previously created uninitialized vsock->seqpacket_allow inside vhost_transport_seqpacket_allow(), which is executed by the function pointer present in the if statement.
Thanks
| |