lkml.org 
[lkml]   [2024]   [Apr]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH virt] virt: fix uninit-value in vhost_vsock_dev_open
Date
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

\
 
 \ /
  Last update: 2024-04-21 05:06    [W:0.083 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site