<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="/rss.xsl.xml"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Changes in vsock.c</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>e6ab4500 - vsock/virtio: add SIOCOUTQ support for all virtio based transports</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/drivers/vhost/vsock.c#e6ab4500</link>
        <description>vsock/virtio: add SIOCOUTQ support for all virtio based transportsIntroduce support for virtio_transport_unsent_bytesioctl for virtio_transport, vhost_vsock and vsock_loopback.For all transports the unsent bytes counter is incrementedin virtio_transport_get_credit.In virtio_transport (G2H) and in vhost-vsock (H2G) the counteris decremented when the skbuff is consumed. In vsock_loopback thesame skbuff is passed from the transmitter to the receiver, sothe counter is decremented before queuing the skbuff to thereceiver.Signed-off-by: Luigi Leonardi &lt;luigi.leonardi@outlook.com&gt;Reviewed-by: Stefano Garzarella &lt;sgarzare@redhat.com&gt;Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;

            List of files:
            /linux-6.15/drivers/vhost/vsock.c</description>
        <pubDate>Tue, 30 Jul 2024 19:43:07 +0000</pubDate>
        <dc:creator>Luigi Leonardi &lt;luigi.leonardi@outlook.com&gt;</dc:creator>
    </item>
<item>
        <title>1e1fdcbd - vhost/vsock: always initialize seqpacket_allow</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/drivers/vhost/vsock.c#1e1fdcbd</link>
        <description>vhost/vsock: always initialize seqpacket_allowThere are two issues around seqpacket_allow:1. seqpacket_allow is not initialized when socket is   created. Thus if features are never set, it will be   read uninitialized.2. if VIRTIO_VSOCK_F_SEQPACKET is set and then cleared,   then seqpacket_allow will not be cleared appropriately   (existing apps I know about don&apos;t usually do this but    it&apos;s legal and there&apos;s no way to be sure no one relies    on this).To fix:	- initialize seqpacket_allow after allocation	- set it unconditionally in set_featuresReported-by: syzbot+6c21aeb59d0e82eb2782@syzkaller.appspotmail.comReported-by: Jeongjun Park &lt;aha310510@gmail.com&gt;Fixes: ced7b713711f (&quot;vhost/vsock: support SEQPACKET for transport&quot;).Tested-by: Arseny Krasnov &lt;arseny.krasnov@kaspersky.com&gt;Cc: David S. Miller &lt;davem@davemloft.net&gt;Cc: Stefan Hajnoczi &lt;stefanha@redhat.com&gt;Message-ID: &lt;20240422100010-mutt-send-email-mst@kernel.org&gt;Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;Acked-by: Jason Wang &lt;jasowang@redhat.com&gt;Reviewed-by: Stefano Garzarella &lt;sgarzare@redhat.com&gt;Reviewed-by: Eugenio P&#233;rez &lt;eperezma@redhat.com&gt;Acked-by: Jakub Kicinski &lt;kuba@kernel.org&gt;

            List of files:
            /linux-6.15/drivers/vhost/vsock.c</description>
        <pubDate>Mon, 22 Apr 2024 14:03:13 +0000</pubDate>
        <dc:creator>Michael S. Tsirkin &lt;mst@redhat.com&gt;</dc:creator>
    </item>
<item>
        <title>0fe17989 - virtio/vsock: send credit update during setting SO_RCVLOWAT</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/drivers/vhost/vsock.c#0fe17989</link>
        <description>virtio/vsock: send credit update during setting SO_RCVLOWATSend credit update message when SO_RCVLOWAT is updated and it is biggerthan number of bytes in rx queue. It is needed, because &apos;poll()&apos; willwait until number of bytes in rx queue will be not smaller thanO_RCVLOWAT, so kick sender to send more data. Otherwise mutual hungupfor tx/rx is possible: sender waits for free space and receiver iswaiting data in &apos;poll()&apos;.Rename &apos;set_rcvlowat&apos; callback to &apos;notify_set_rcvlowat&apos; and set&apos;sk-&gt;sk_rcvlowat&apos; only in one place (i.e. &apos;vsock_set_rcvlowat&apos;), so thetransport doesn&apos;t need to do it.Fixes: b89d882dc9fc (&quot;vsock/virtio: reduce credit update messages&quot;)Signed-off-by: Arseniy Krasnov &lt;avkrasnov@salutedevices.com&gt;Reviewed-by: Stefano Garzarella &lt;sgarzare@redhat.com&gt;Acked-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;

            List of files:
            /linux-6.15/drivers/vhost/vsock.c</description>
        <pubDate>Thu, 14 Dec 2023 12:52:29 +0000</pubDate>
        <dc:creator>Arseniy Krasnov &lt;avkrasnov@salutedevices.com&gt;</dc:creator>
    </item>
<item>
        <title>3719c48d - vhost/vsock: support MSG_ZEROCOPY for transport</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/drivers/vhost/vsock.c#3719c48d</link>
        <description>vhost/vsock: support MSG_ZEROCOPY for transportAdd &apos;msgzerocopy_allow()&apos; callback for vhost transport.Signed-off-by: Arseniy Krasnov &lt;avkrasnov@salutedevices.com&gt;Reviewed-by: Stefano Garzarella &lt;sgarzare@redhat.com&gt;Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;

            List of files:
            /linux-6.15/drivers/vhost/vsock.c</description>
        <pubDate>Tue, 10 Oct 2023 19:15:17 +0000</pubDate>
        <dc:creator>Arseniy Krasnov &lt;avkrasnov@salutedevices.com&gt;</dc:creator>
    </item>
<item>
        <title>0df7cd3c - vsock/virtio/vhost: read data from non-linear skb</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/drivers/vhost/vsock.c#0df7cd3c</link>
        <description>vsock/virtio/vhost: read data from non-linear skbThis is preparation patch for MSG_ZEROCOPY support. It adds handling ofnon-linear skbs by replacing direct calls of &apos;memcpy_to_msg()&apos; with&apos;skb_copy_datagram_iter()&apos;. Main advantage of the second one is that itcan handle paged part of the skb by using &apos;kmap()&apos; on each page, but ifthere are no pages in the skb, it behaves like simple copying to ioviterator. This patch also adds new field to the control block of skb -this value shows current offset in the skb to read next portion of data(it doesn&apos;t matter linear it or not). Idea behind this field is that&apos;skb_copy_datagram_iter()&apos; handles both types of skb internally - itjust needs an offset from which to copy data from the given skb. Thisoffset is incremented on each read from skb. This approach allows tosimplify handling of both linear and non-linear skbs, because forlinear skb we need to call &apos;skb_pull()&apos; after reading data from it,while in non-linear case we need to update &apos;data_len&apos;.Signed-off-by: Arseniy Krasnov &lt;avkrasnov@salutedevices.com&gt;Reviewed-by: Stefano Garzarella &lt;sgarzare@redhat.com&gt;Acked-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;Signed-off-by: Paolo Abeni &lt;pabeni@redhat.com&gt;

            List of files:
            /linux-6.15/drivers/vhost/vsock.c</description>
        <pubDate>Sat, 16 Sep 2023 13:09:15 +0000</pubDate>
        <dc:creator>Arseniy Krasnov &lt;avkrasnov@salutedevices.com&gt;</dc:creator>
    </item>
<item>
        <title>9e09d0ec - vhost_sock: convert to vhost_vq_work_queue</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/drivers/vhost/vsock.c#9e09d0ec</link>
        <description>vhost_sock: convert to vhost_vq_work_queueConvert from vhost_work_queue to vhost_vq_work_queue, so we can dropvhost_work_queue.Signed-off-by: Mike Christie &lt;michael.christie@oracle.com&gt;Message-Id: &lt;20230626232307.97930-9-michael.christie@oracle.com&gt;Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;

            List of files:
            /linux-6.15/drivers/vhost/vsock.c</description>
        <pubDate>Mon, 26 Jun 2023 23:22:58 +0000</pubDate>
        <dc:creator>Mike Christie &lt;michael.christie@oracle.com&gt;</dc:creator>
    </item>
<item>
        <title>634f1a71 - vsock: support sockmap</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/drivers/vhost/vsock.c#634f1a71</link>
        <description>vsock: support sockmapThis patch adds sockmap support for vsock sockets. It is intended to beusable by all transports, but only the virtio and loopback transportsare implemented.SOCK_STREAM, SOCK_DGRAM, and SOCK_SEQPACKET are all supported.Signed-off-by: Bobby Eshleman &lt;bobby.eshleman@bytedance.com&gt;Acked-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;Reviewed-by: Stefano Garzarella &lt;sgarzare@redhat.com&gt;Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;

            List of files:
            /linux-6.15/drivers/vhost/vsock.c</description>
        <pubDate>Mon, 27 Mar 2023 19:11:51 +0000</pubDate>
        <dc:creator>Bobby Eshleman &lt;bobby.eshleman@bytedance.com&gt;</dc:creator>
    </item>
<item>
        <title>759aba1e - vhost: remove unused paramete</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/drivers/vhost/vsock.c#759aba1e</link>
        <description>vhost: remove unused paramete&quot;enabled&quot; is defined in vhost_init_device_iotlb,but it is never used. Let&apos;s remove it.Signed-off-by: Liming Wu &lt;liming.wu@jaguarmicro.com&gt;Message-Id: &lt;20230110024445.303-1-liming.wu@jaguarmicro.com&gt;Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;Reviewed-by: Stefano Garzarella &lt;sgarzare@redhat.com&gt;Reviewed-by: Eugenio P&#233;rez &lt;eperezma@redhat.com&gt;

            List of files:
            /linux-6.15/drivers/vhost/vsock.c</description>
        <pubDate>Tue, 10 Jan 2023 02:44:45 +0000</pubDate>
        <dc:creator>Liming Wu &lt;liming.wu@jaguarmicro.com&gt;</dc:creator>
    </item>
<item>
        <title>71dc9ec9 - virtio/vsock: replace virtio_vsock_pkt with sk_buff</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/drivers/vhost/vsock.c#71dc9ec9</link>
        <description>virtio/vsock: replace virtio_vsock_pkt with sk_buffThis commit changes virtio/vsock to use sk_buff instead ofvirtio_vsock_pkt. Beyond better conforming to other net code, usingsk_buff allows vsock to use sk_buff-dependent features in the future(such as sockmap) and improves throughput.This patch introduces the following performance changes:Tool: UperfEnv: Phys Host + L1 GuestPayload: 64kThreads: 16Test Runs: 10Type: SOCK_STREAMBefore: commit b7bfaa761d760 (&quot;Linux 6.2-rc3&quot;)Before------g2h: 16.77Gb/sh2g: 10.56Gb/sAfter-----g2h: 21.04Gb/sh2g: 10.76Gb/sSigned-off-by: Bobby Eshleman &lt;bobby.eshleman@bytedance.com&gt;Reviewed-by: Stefano Garzarella &lt;sgarzare@redhat.com&gt;Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;

            List of files:
            /linux-6.15/drivers/vhost/vsock.c</description>
        <pubDate>Fri, 13 Jan 2023 22:21:37 +0000</pubDate>
        <dc:creator>Bobby Eshleman &lt;bobby.eshleman@bytedance.com&gt;</dc:creator>
    </item>
<item>
        <title>7a4efe18 - vhost/vsock: Fix error handling in vhost_vsock_init()</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/drivers/vhost/vsock.c#7a4efe18</link>
        <description>vhost/vsock: Fix error handling in vhost_vsock_init()A problem about modprobe vhost_vsock failed is triggered with thefollowing log given:modprobe: ERROR: could not insert &apos;vhost_vsock&apos;: Device or resource busyThe reason is that vhost_vsock_init() returns misc_register() directlywithout checking its return value, if misc_register() failed, it returnswithout calling vsock_core_unregister() on vhost_transport, resulting thevhost_vsock can never be installed later.A simple call graph is shown as below: vhost_vsock_init()   vsock_core_register() # register vhost_transport   misc_register()     device_create_with_groups()       device_create_groups_vargs()         dev = kzalloc(...) # OOM happened   # return without unregister vhost_transportFix by calling vsock_core_unregister() when misc_register() returns error.Fixes: 433fc58e6bf2 (&quot;VSOCK: Introduce vhost_vsock.ko&quot;)Signed-off-by: Yuan Can &lt;yuancan@huawei.com&gt;Message-Id: &lt;20221108101705.45981-1-yuancan@huawei.com&gt;Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;Reviewed-by: Stefano Garzarella &lt;sgarzare@redhat.com&gt;Acked-by: Jason Wang &lt;jasowang@redhat.com&gt;

            List of files:
            /linux-6.15/drivers/vhost/vsock.c</description>
        <pubDate>Tue, 08 Nov 2022 10:17:05 +0000</pubDate>
        <dc:creator>Yuan Can &lt;yuancan@huawei.com&gt;</dc:creator>
    </item>
<item>
        <title>de4eda9d - use less confusing names for iov_iter direction initializers</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/drivers/vhost/vsock.c#de4eda9d</link>
        <description>use less confusing names for iov_iter direction initializersREAD/WRITE proved to be actively confusing - the meanings are&quot;data destination, as used with read(2)&quot; and &quot;data source, asused with write(2)&quot;, but people keep interpreting those as&quot;we read data from it&quot; and &quot;we write data to it&quot;, i.e. exactlythe wrong way.Call them ITER_DEST and ITER_SOURCE - at least that is harderto misinterpret...Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;

            List of files:
            /linux-6.15/drivers/vhost/vsock.c</description>
        <pubDate>Fri, 16 Sep 2022 00:25:47 +0000</pubDate>
        <dc:creator>Al Viro &lt;viro@zeniv.linux.org.uk&gt;</dc:creator>
    </item>
<item>
        <title>0e3f7293 - vhost/vsock: Use kvmalloc/kvfree for larger packets.</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/drivers/vhost/vsock.c#0e3f7293</link>
        <description>vhost/vsock: Use kvmalloc/kvfree for larger packets.When copying a large file over sftp over vsock, data size is usually 32kB,and kmalloc seems to fail to try to allocate 32 32kB regions. vhost-5837: page allocation failure: order:4, mode:0x24040c0 Call Trace:  [&lt;ffffffffb6a0df64&gt;] dump_stack+0x97/0xdb  [&lt;ffffffffb68d6aed&gt;] warn_alloc_failed+0x10f/0x138  [&lt;ffffffffb68d868a&gt;] ? __alloc_pages_direct_compact+0x38/0xc8  [&lt;ffffffffb664619f&gt;] __alloc_pages_nodemask+0x84c/0x90d  [&lt;ffffffffb6646e56&gt;] alloc_kmem_pages+0x17/0x19  [&lt;ffffffffb6653a26&gt;] kmalloc_order_trace+0x2b/0xdb  [&lt;ffffffffb66682f3&gt;] __kmalloc+0x177/0x1f7  [&lt;ffffffffb66e0d94&gt;] ? copy_from_iter+0x8d/0x31d  [&lt;ffffffffc0689ab7&gt;] vhost_vsock_handle_tx_kick+0x1fa/0x301 [vhost_vsock]  [&lt;ffffffffc06828d9&gt;] vhost_worker+0xf7/0x157 [vhost]  [&lt;ffffffffb683ddce&gt;] kthread+0xfd/0x105  [&lt;ffffffffc06827e2&gt;] ? vhost_dev_set_owner+0x22e/0x22e [vhost]  [&lt;ffffffffb683dcd1&gt;] ? flush_kthread_worker+0xf3/0xf3  [&lt;ffffffffb6eb332e&gt;] ret_from_fork+0x4e/0x80  [&lt;ffffffffb683dcd1&gt;] ? flush_kthread_worker+0xf3/0xf3Work around by doing kvmalloc instead.Fixes: 433fc58e6bf2 (&quot;VSOCK: Introduce vhost_vsock.ko&quot;)Signed-off-by: Junichi Uekawa &lt;uekawa@chromium.org&gt;Reviewed-by: Stefano Garzarella &lt;sgarzare@redhat.com&gt;Acked-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;Link: https://lore.kernel.org/r/20220928064538.667678-1-uekawa@chromium.orgSigned-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;

            List of files:
            /linux-6.15/drivers/vhost/vsock.c</description>
        <pubDate>Wed, 28 Sep 2022 06:45:38 +0000</pubDate>
        <dc:creator>Junichi Uekawa &lt;uekawa@chromium.org&gt;</dc:creator>
    </item>
<item>
        <title>b2ffa407 - vhost: rename vhost_work_dev_flush</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/drivers/vhost/vsock.c#b2ffa407</link>
        <description>vhost: rename vhost_work_dev_flushThis patch renames vhost_work_dev_flush to just vhost_dev_flush torelfect that it flushes everything on the device and that driversdon&apos;t know/care that polls are based on vhost_works. Drivers justflush the entire device and polls, and works for vhost-scsimanagement TMFs and IO net virtqueues, etc all are flushed.Signed-off-by: Mike Christie &lt;michael.christie@oracle.com&gt;Acked-by: Jason Wang &lt;jasowang@redhat.com&gt;Reviewed-by: Stefano Garzarella &lt;sgarzare@redhat.com&gt;Message-Id: &lt;20220517180850.198915-9-michael.christie@oracle.com&gt;Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;

            List of files:
            /linux-6.15/drivers/vhost/vsock.c</description>
        <pubDate>Tue, 17 May 2022 18:08:50 +0000</pubDate>
        <dc:creator>Mike Christie &lt;michael.christie@oracle.com&gt;</dc:creator>
    </item>
<item>
        <title>15538ba5 - vhost_vsock: simplify vhost_vsock_flush()</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/drivers/vhost/vsock.c#15538ba5</link>
        <description>vhost_vsock: simplify vhost_vsock_flush()vhost_vsock_flush() calls vhost_work_dev_flush(vsock-&gt;vqs[i].poll.dev)before vhost_work_dev_flush(&amp;vsock-&gt;dev). This seems pointlessas vsock-&gt;vqs[i].poll.dev is the same as &amp;vsock-&gt;dev and several flushesin a row doesn&apos;t do anything useful, one is just enough.Signed-off-by: Andrey Ryabinin &lt;arbn@yandex-team.com&gt;Reviewed-by: Stefano Garzarella &lt;sgarzare@redhat.com&gt;Signed-off-by: Mike Christie &lt;michael.christie@oracle.com&gt;Acked-by: Jason Wang &lt;jasowang@redhat.com&gt;Message-Id: &lt;20220517180850.198915-6-michael.christie@oracle.com&gt;Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;

            List of files:
            /linux-6.15/drivers/vhost/vsock.c</description>
        <pubDate>Tue, 17 May 2022 18:08:47 +0000</pubDate>
        <dc:creator>Andrey Ryabinin &lt;arbn@yandex-team.com&gt;</dc:creator>
    </item>
<item>
        <title>6fcf224c - vhost: get rid of vhost_poll_flush() wrapper</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/drivers/vhost/vsock.c#6fcf224c</link>
        <description>vhost: get rid of vhost_poll_flush() wrappervhost_poll_flush() is a simple wrapper around vhost_work_dev_flush().It gives wrong impression that we are doing some work over vhost_poll,while in fact it flushes vhost_poll-&gt;dev.It only complicate understanding of the code and leads to mistakeslike flushing the same vhost_dev several times in a row.Just remove vhost_poll_flush() and call vhost_work_dev_flush() directly.Signed-off-by: Andrey Ryabinin &lt;arbn@yandex-team.com&gt;[merge vhost_poll_flush removal from Stefano Garzarella]Signed-off-by: Mike Christie &lt;michael.christie@oracle.com&gt;Reviewed-by: Chaitanya Kulkarni &lt;kch@nvidia.com&gt;Acked-by: Jason Wang &lt;jasowang@redhat.com&gt;Reviewed-by: Stefano Garzarella &lt;sgarzare@redhat.com&gt;Message-Id: &lt;20220517180850.198915-2-michael.christie@oracle.com&gt;Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;

            List of files:
            /linux-6.15/drivers/vhost/vsock.c</description>
        <pubDate>Tue, 17 May 2022 18:08:43 +0000</pubDate>
        <dc:creator>Andrey Ryabinin &lt;arbn@yandex-team.com&gt;</dc:creator>
    </item>
<item>
        <title>8e6ed963 - vsock: each transport cycles only on its own sockets</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/drivers/vhost/vsock.c#8e6ed963</link>
        <description>vsock: each transport cycles only on its own socketsWhen iterating over sockets using vsock_for_each_connected_socket, makesure that a transport filters out sockets that don&apos;t belong to thetransport.There actually was an issue caused by this; in a nested VMconfiguration, destroying the nested VM (which often involves theclosing of /dev/vhost-vsock if there was h2g connections to the nestedVM) kills not only the h2g connections, but also all existing g2hconnections to the (outmost) host which are totally unrelated.Tested: Executed the following steps on Cuttlefish (Android running on aVM) [1]: (1) Enter into an `adb shell` session - to have a g2hconnection inside the VM, (2) open and then close /dev/vhost-vsock by`exec 3&lt; /dev/vhost-vsock &amp;&amp; exec 3&lt;&amp;-`, (3) observe that the adbsession is not reset.[1] https://android.googlesource.com/device/google/cuttlefish/Fixes: c0cfa2d8a788 (&quot;vsock: add multi-transports support&quot;)Reviewed-by: Stefano Garzarella &lt;sgarzare@redhat.com&gt;Acked-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;Signed-off-by: Jiyong Park &lt;jiyong@google.com&gt;Link: https://lore.kernel.org/r/20220311020017.1509316-1-jiyong@google.comSigned-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;

            List of files:
            /linux-6.15/drivers/vhost/vsock.c</description>
        <pubDate>Fri, 11 Mar 2022 02:00:16 +0000</pubDate>
        <dc:creator>Jiyong Park &lt;jiyong@google.com&gt;</dc:creator>
    </item>
<item>
        <title>a58da53f - vhost/vsock: don&apos;t check owner in vhost_vsock_stop() while releasing</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/drivers/vhost/vsock.c#a58da53f</link>
        <description>vhost/vsock: don&apos;t check owner in vhost_vsock_stop() while releasingvhost_vsock_stop() calls vhost_dev_check_owner() to check the deviceownership. It expects current-&gt;mm to be valid.vhost_vsock_stop() is also called by vhost_vsock_dev_release() whenthe user has not done close(), so when we are in do_exit(). In thiscase current-&gt;mm is invalid and we&apos;re releasing the device, so weshould clean it anyway.Let&apos;s check the owner only when vhost_vsock_stop() is calledby an ioctl.When invoked from release we can not fail so we don&apos;t check returncode of vhost_vsock_stop(). We need to stop vsock even if it&apos;s notthe owner.Fixes: 433fc58e6bf2 (&quot;VSOCK: Introduce vhost_vsock.ko&quot;)Cc: stable@vger.kernel.orgReported-by: syzbot+1e3ea63db39f2b4440e0@syzkaller.appspotmail.comReported-and-tested-by: syzbot+3140b17cb44a7b174008@syzkaller.appspotmail.comSigned-off-by: Stefano Garzarella &lt;sgarzare@redhat.com&gt;Acked-by: Jason Wang &lt;jasowang@redhat.com&gt;Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;

            List of files:
            /linux-6.15/drivers/vhost/vsock.c</description>
        <pubDate>Tue, 22 Feb 2022 09:47:42 +0000</pubDate>
        <dc:creator>Stefano Garzarella &lt;sgarzare@redhat.com&gt;</dc:creator>
    </item>
<item>
        <title>11708ff9 - vhost/vsock: cleanup removing `len` variable</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/drivers/vhost/vsock.c#11708ff9</link>
        <description>vhost/vsock: cleanup removing `len` variableWe can increment `total_len` directly and remove `len` since itis no longer used for vhost_add_used().Signed-off-by: Stefano Garzarella &lt;sgarzare@redhat.com&gt;Link: https://lore.kernel.org/r/20211122163525.294024-3-sgarzare@redhat.comSigned-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;Reviewed-by: Stefan Hajnoczi &lt;stefanha@redhat.com&gt;

            List of files:
            /linux-6.15/drivers/vhost/vsock.c</description>
        <pubDate>Mon, 22 Nov 2021 16:35:25 +0000</pubDate>
        <dc:creator>Stefano Garzarella &lt;sgarzare@redhat.com&gt;</dc:creator>
    </item>
<item>
        <title>49d8c5ff - vhost/vsock: fix incorrect used length reported to the guest</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/drivers/vhost/vsock.c#49d8c5ff</link>
        <description>vhost/vsock: fix incorrect used length reported to the guestThe &quot;used length&quot; reported by calling vhost_add_used() must be thenumber of bytes written by the device (using &quot;in&quot; buffers).In vhost_vsock_handle_tx_kick() the device only reads the guestbuffers (they are all &quot;out&quot; buffers), without writing anything,so we must pass 0 as &quot;used length&quot; to comply virtio spec.Fixes: 433fc58e6bf2 (&quot;VSOCK: Introduce vhost_vsock.ko&quot;)Cc: stable@vger.kernel.orgReported-by: Halil Pasic &lt;pasic@linux.ibm.com&gt;Suggested-by: Jason Wang &lt;jasowang@redhat.com&gt;Signed-off-by: Stefano Garzarella &lt;sgarzare@redhat.com&gt;Link: https://lore.kernel.org/r/20211122163525.294024-2-sgarzare@redhat.comSigned-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;Reviewed-by: Stefan Hajnoczi &lt;stefanha@redhat.com&gt;Reviewed-by: Halil Pasic &lt;pasic@linux.ibm.com&gt;

            List of files:
            /linux-6.15/drivers/vhost/vsock.c</description>
        <pubDate>Mon, 22 Nov 2021 16:35:24 +0000</pubDate>
        <dc:creator>Stefano Garzarella &lt;sgarzare@redhat.com&gt;</dc:creator>
    </item>
<item>
        <title>1af7e555 - vhost/vsock: support MSG_EOR bit processing</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/drivers/vhost/vsock.c#1af7e555</link>
        <description>vhost/vsock: support MSG_EOR bit processing&apos;MSG_EOR&apos; handling has similar logic as &apos;MSG_EOM&apos; - if bit presentin packet&apos;s header, reset it to 0. Then restore it back if packetprocessing wasn&apos;t completed. Instead of bool variable for eachflag, bit mask variable was added: it has logical OR of &apos;MSG_EOR&apos;and &apos;MSG_EOM&apos; if needed, to restore flags, this variable is ORedwith flags field of packet.Signed-off-by: Arseny Krasnov &lt;arseny.krasnov@kaspersky.com&gt;Link: https://lore.kernel.org/r/20210903123238.3273526-1-arseny.krasnov@kaspersky.comSigned-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;Reviewed-by: Stefano Garzarella &lt;sgarzare@redhat.com&gt;

            List of files:
            /linux-6.15/drivers/vhost/vsock.c</description>
        <pubDate>Fri, 03 Sep 2021 12:32:35 +0000</pubDate>
        <dc:creator>Arseny Krasnov &lt;arseny.krasnov@kaspersky.com&gt;</dc:creator>
    </item>
</channel>
</rss>
