From patchwork Sun Nov 28 17:58:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Michael S. Tsirkin" X-Patchwork-Id: 12643017 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AEC48C433EF for ; Sun, 28 Nov 2021 18:00:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345427AbhK1SD2 (ORCPT ); Sun, 28 Nov 2021 13:03:28 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:59457 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1359176AbhK1SB2 (ORCPT ); Sun, 28 Nov 2021 13:01:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1638122291; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type; bh=aw8bghuFT1gVRspF1SIwJ9nxGGoDXPynCf2IvVb5wz8=; b=VU6zYd1Zm0uNnlP8aK2oBhKy13kekURFCPNzJPM4vWgJRLWOpNZRvglM/0CMhBL5qkZZCL robaFoIwZAE+5LyaA1Z1sAqdLe1BJhxBEwbdyNo6BzIrDeOtHzQjs90+DwxXCzZjERyAi+ PS8dyk1yXhtwAvDzeksLBWHTVJrm3MI= Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-249-azYkzD8OOju3Ozy-Vu3sOQ-1; Sun, 28 Nov 2021 12:58:10 -0500 X-MC-Unique: azYkzD8OOju3Ozy-Vu3sOQ-1 Received: by mail-ed1-f69.google.com with SMTP id 30-20020a508e5e000000b003f02e458b17so4989598edx.17 for ; Sun, 28 Nov 2021 09:58:10 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=aw8bghuFT1gVRspF1SIwJ9nxGGoDXPynCf2IvVb5wz8=; b=xs0JA7B/p/qR0sC3eh9ZLuPaBdr8AEq4ldU/KOHD5Gg/jFccf3bdjm+aDMGd8cmZCA G+kya54/4CVOso+vucO3OLw5xHv+jPXSsd9CxVn5+bmXVHhDSJwdDBbkC3/zKH/L7/uk Mim3EIMGhCSY3A/JpRzTLp+BJ0ZfDCNj7KD5HgXP+u4Jy65HAI/dQ/XyScM/+Kq4GuHe C1FWtAxw9LILlL9GnYQ0zqKclcp5qM1LZDBjZNRQEZfnJ/WZDnmA+HO09lUlDZcuKLKk xOpcG5DnZGb1JiHZIRen8AGUxB+8r5l4syNPI92mN56Yxsbjh/U7YLsNLMQVop6XgqY8 AjNA== X-Gm-Message-State: AOAM533oAmtmUvvcYVHlkZECyKIFR6Kizcbz3QdH7JVRcC+RQe1LqvhH 6kcLri3XVKnXgERsmSWBPKKJgDhTfp1JVaOIS1k23FX1hMV+jRp7uZQL/fpfzNaBVFkZJx5SC2Z AsNiSlYGtn5iUqpKH X-Received: by 2002:a05:6402:35c2:: with SMTP id z2mr67408184edc.92.1638122289280; Sun, 28 Nov 2021 09:58:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJwmcTF6gn5TCzS+/rpoMf1mqbfbhiRbIxVsZL7CgEHFdEJ4mkHhQm2BnrUXrbOR/h6u/h/cxQ== X-Received: by 2002:a05:6402:35c2:: with SMTP id z2mr67408154edc.92.1638122289105; Sun, 28 Nov 2021 09:58:09 -0800 (PST) Received: from redhat.com ([2a03:c5c0:107d:bc0b:b6a8:e3e8:8431:4d58]) by smtp.gmail.com with ESMTPSA id oz31sm6090037ejc.35.2021.11.28.09.58.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Nov 2021 09:58:08 -0800 (PST) Date: Sun, 28 Nov 2021 12:58:03 -0500 From: "Michael S. Tsirkin" To: Linus Torvalds Cc: kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, jasowang@redhat.com, longpeng2@huawei.com, mst@redhat.com, pasic@linux.ibm.com, sgarzare@redhat.com, stable@vger.kernel.org, wuzongyong@linux.alibaba.com, ye.guojin@zte.com.cn, zealci@zte.com.cn Subject: [GIT PULL] vhost,virtio,vdpa: bugfixes Message-ID: <20211128125803-mutt-send-email-mst@kernel.org> MIME-Version: 1.0 Content-Disposition: inline X-Mutt-Fcc: =sent Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org The following changes since commit 136057256686de39cc3a07c2e39ef6bc43003ff6: Linux 5.16-rc2 (2021-11-21 13:47:39 -0800) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git tags/for_linus for you to fetch changes up to bb93ce4b150dde79f58e34103cbd1fe829796649: vdpa_sim: avoid putting an uninitialized iova_domain (2021-11-24 19:00:29 -0500) ---------------------------------------------------------------- vhost,virtio,vdpa: bugfixes Misc fixes all over the place. Revert of virtio used length validation series: the approach taken does not seem to work, breaking too many guests in the process. We'll need to do length validation using some other approach. Signed-off-by: Michael S. Tsirkin ---------------------------------------------------------------- Longpeng (1): vdpa_sim: avoid putting an uninitialized iova_domain Michael S. Tsirkin (4): Revert "virtio-scsi: don't let virtio core to validate used buffer length" Revert "virtio-blk: don't let virtio core to validate used length" Revert "virtio-net: don't let virtio core to validate used length" Revert "virtio_ring: validate used buffer length" Stefano Garzarella (2): vhost/vsock: fix incorrect used length reported to the guest vhost/vsock: cleanup removing `len` variable Wu Zongyong (1): vhost-vdpa: clean irqs before reseting vdpa device Ye Guojin (1): virtio-blk: modify the value type of num in virtio_queue_rq() drivers/block/virtio_blk.c | 3 +- drivers/net/virtio_net.c | 1 - drivers/scsi/virtio_scsi.c | 1 - drivers/vdpa/vdpa_sim/vdpa_sim.c | 7 +++-- drivers/vhost/vdpa.c | 2 +- drivers/vhost/vsock.c | 8 ++---- drivers/virtio/virtio_ring.c | 60 ---------------------------------------- include/linux/virtio.h | 2 -- 8 files changed, 9 insertions(+), 75 deletions(-)