From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.1 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5C78AC11F69 for ; Fri, 2 Jul 2021 02:49:31 +0000 (UTC) Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EA7C5613FB for ; Fri, 2 Jul 2021 02:49:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EA7C5613FB Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=virtualization-bounces@lists.linux-foundation.org Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 9C5E583D67; Fri, 2 Jul 2021 02:49:30 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JbgnqkeyAL5J; Fri, 2 Jul 2021 02:49:29 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp1.osuosl.org (Postfix) with ESMTPS id 2CE6283CBF; Fri, 2 Jul 2021 02:49:29 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id F2841C0010; Fri, 2 Jul 2021 02:49:28 +0000 (UTC) Received: from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137]) by lists.linuxfoundation.org (Postfix) with ESMTP id 2E4FAC000E for ; Fri, 2 Jul 2021 02:49:28 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 12174405C7 for ; Fri, 2 Jul 2021 02:49:28 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp4.osuosl.org (amavisd-new); dkim=pass (1024-bit key) header.d=redhat.com Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uf_38P4I59yZ for ; Fri, 2 Jul 2021 02:49:26 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by smtp4.osuosl.org (Postfix) with ESMTPS id EDB3240599 for ; Fri, 2 Jul 2021 02:49:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1625194164; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=m5z3d4RwQ1oxkBNEm0vInMTPKMfejVnKxB2uO9Gpumg=; b=S+zTxp0zKJ/WzOaookKyQP0o/qgJmbJhOln6W2Z5VV013xssZaXlXbNgzW8MRAYI/N/RYF HHkMM0rrqlcI2bvv+UQeuP0E0x30UE5INuAVKH2HSmS6J/8S/90Jot5EoiqxL5xwhnPF3Q 2lU2YOCHfj+YGbBUuYAuH/ZGjmnTAMk= Received: from mail-pj1-f70.google.com (mail-pj1-f70.google.com [209.85.216.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-536-KS1aOZSHNH6aUZ8E7ZtBxA-1; Thu, 01 Jul 2021 22:49:23 -0400 X-MC-Unique: KS1aOZSHNH6aUZ8E7ZtBxA-1 Received: by mail-pj1-f70.google.com with SMTP id om5-20020a17090b3a85b029016eb0b21f1dso4355228pjb.4 for ; Thu, 01 Jul 2021 19:49:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=m5z3d4RwQ1oxkBNEm0vInMTPKMfejVnKxB2uO9Gpumg=; b=bwu+ofFWfV2U7+m1OGyDLV92RjXt+cIsZgbVHQKD2AYkYnNjgDEYWZt1YMVzm+DyE6 p5xT03nQPUrdRBFxfhLblDHpn57AyfE7BSZaDHgXHimalaNNFrI4ODmLH2FjelVuStKc F4uyXkUdvmeHzkSzDaXQU+CtXsEabLzAgrf8LqVMuSO27VzEYYgdO7Mr555CzhyP0QGp AnNNoULdTyDeATNQf40nEzb551/nrrA+tzcbaEdA/9vEwPkQ3U/qg5L0bKXKMmQo+na5 v/6buQqe4THicyXK2KKMgi0DB5Lmyc/J/4wejPJ1P9NTf5FbRDnu0Hkk+025aW8lrMvR t0aA== X-Gm-Message-State: AOAM532mG8quskZqOA1z8HTaAn1yzwq//mH5J1cibOmEqh9CFavOxx0p 6y33EuZ+ym6ZSRY9uzMpQUFB9S+gHSY6nog5zrLxyhQDwOsmhwInpswPJnouCi8lr0ss7f/P49b 81NhBzFzi7gp6Z82xB33Ojv6wfTpd8DLq/o5wPcbVBA== X-Received: by 2002:a17:902:cec8:b029:129:3394:b8ab with SMTP id d8-20020a170902cec8b02901293394b8abmr2393512plg.42.1625194162442; Thu, 01 Jul 2021 19:49:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJziiXCaB2hANUotxmVfz4U3eOo1f66xxuMUB/caj7bntZbEAFOOUgOd2Od56ZkHdILH50CNcw== X-Received: by 2002:a17:902:cec8:b029:129:3394:b8ab with SMTP id d8-20020a170902cec8b02901293394b8abmr2393496plg.42.1625194162264; Thu, 01 Jul 2021 19:49:22 -0700 (PDT) Received: from wangxiaodeMacBook-Air.local ([209.132.188.80]) by smtp.gmail.com with ESMTPSA id w14sm1452484pgo.75.2021.07.01.19.49.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 01 Jul 2021 19:49:21 -0700 (PDT) Subject: Re: [PATCH] virtio_vdpa: reject invalid vq indices To: Vincent Whitchurch , "Michael S. Tsirkin" References: <20210701114652.21956-1-vincent.whitchurch@axis.com> From: Jason Wang Message-ID: <8e6a6793-39a3-0478-c574-5d3d641f2310@redhat.com> Date: Fri, 2 Jul 2021 10:49:18 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210701114652.21956-1-vincent.whitchurch@axis.com> Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=jasowang@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Cc: kernel@axis.com, linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org X-BeenThere: virtualization@lists.linux-foundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Linux virtualization List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: base64 Content-Type: text/plain; charset="gbk"; Format="flowed" Errors-To: virtualization-bounces@lists.linux-foundation.org Sender: "Virtualization" CtTaIDIwMjEvNy8xIM/Czuc3OjQ2LCBWaW5jZW50IFdoaXRjaHVyY2gg0LS1wDoKPiBEbyBub3Qg Y2FsbCB2RFBBIGRyaXZlcnMnIGNhbGxiYWNrcyB3aXRoIHZxIGluZGljaWVzIGxhcm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