Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp1889613rwo; Sun, 23 Jul 2023 03:05:52 -0700 (PDT) X-Google-Smtp-Source: APBJJlFOvcg6mMZhMXBWE9er0EfKVqvErKwjQaLAITQ0CWb7I88t1ynMtBxy+++NtaYiK9bWGLIV X-Received: by 2002:aa7:c990:0:b0:51e:ca0:8a2e with SMTP id c16-20020aa7c990000000b0051e0ca08a2emr6519585edt.36.1690106752387; Sun, 23 Jul 2023 03:05:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690106752; cv=none; d=google.com; s=arc-20160816; b=nCYCCrJ0NnT63oPRcOjI5+Ck5FmCgFQmndXxqD1KfCVZphGnSQHQepNLU6c9MWF+Eg OX6BN4Ovw337/b4fyrBlaoxxku2cs+MSyml5e2LI385391wPRtbZbL455QQp7ABrfKa4 /tKyXj+0LP+l22M0EUKPHVD3Zcn2D5Qbx6tU9hUgFpgekdis2fhtkMT5JussXC5s1Aoc SMe8bgI6l+7s0QZl3J3egXc+F95u8IOsBTe7eyPKTN0xysK5UFBV5QlOjxTq8v06hBUE TwX8B/P/mRDy888rjZGha/2DmouKK+ayz/qODQtlesv+lUR5s5ydtVF8s91Dcc1oZavH YVAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:mime-version :content-transfer-encoding:references:in-reply-to:subject:cc:to:from :date; bh=ey/BBJrkFElrP/igV3KLb3hKnu9Es8mg6TGKejPJ2rY=; fh=GYPMIWi7aCFhk8hKSYQoFj9M9gAHXoemCtfC3nDXccY=; b=0biNIvB+2/yDjDqqESNAWgqDPVoEb4LzfCxiHIIan1EBsKT8T2zmSEWsqX2oRd2JU9 y3CNBoJPPOBk5JqXLJNDqoo9KD5UaepyUR2BlHm9WglKndhzqcdIqbeHrJ49QzsJ+UmV /yDSqdz+lflokpNyoWuBpZ2TQK58CX9g0s8GQU/a4An3BUmrg9ZMSo2IP9s5qnpWnypK L+2deqMxzv5AtLhMZgj46d44kSVPkvxrgjkOXaNYSK3ye12mPikYH4qCxniwxZLtBqqz l74aT0WpnLlxDOTBkQQUm6tC0HhJrZl04n6yvjIn/13M8WuNFz1fi6HiyIRHZpX4TxtE 8AeQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e7-20020a50ec87000000b0051e2340fabcsi4921222edr.322.2023.07.23.03.05.28; Sun, 23 Jul 2023 03:05:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229823AbjGWJeH (ORCPT + 99 others); Sun, 23 Jul 2023 05:34:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229749AbjGWJeE (ORCPT ); Sun, 23 Jul 2023 05:34:04 -0400 Received: from zg8tmtyylji0my4xnjqumte4.icoremail.net (zg8tmtyylji0my4xnjqumte4.icoremail.net [162.243.164.118]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0A458E5E for ; Sun, 23 Jul 2023 02:33:59 -0700 (PDT) Received: from linma$zju.edu.cn ( [42.120.103.59] ) by ajax-webmail-mail-app3 (Coremail) ; Sun, 23 Jul 2023 17:33:54 +0800 (GMT+08:00) X-Originating-IP: [42.120.103.59] Date: Sun, 23 Jul 2023 17:33:54 +0800 (GMT+08:00) X-CM-HeaderCharset: UTF-8 From: "Lin Ma" To: "Michael S. Tsirkin" Cc: jasowang@redhat.com, xuanzhuo@linux.alibaba.com, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1] vdpa: Complement vdpa_nl_policy for nlattr length check X-Priority: 3 X-Mailer: Coremail Webmail Server Version XT5.0.14 build 20220622(41e5976f) Copyright (c) 2002-2023 www.mailtech.cn mispb-4df6dc2c-e274-4d1c-b502-72c5c3dfa9ce-zj.edu.cn In-Reply-To: <20230723050656-mutt-send-email-mst@kernel.org> References: <20230723080507.3716924-1-linma@zju.edu.cn> <20230723050656-mutt-send-email-mst@kernel.org> Content-Transfer-Encoding: base64 Content-Type: text/plain; charset=UTF-8 MIME-Version: 1.0 Message-ID: <729f5c17.e4079.18982192866.Coremail.linma@zju.edu.cn> X-Coremail-Locale: zh_CN X-CM-TRANSID: cC_KCgCn4gED9LxkLvqACw--.43663W X-CM-SenderInfo: qtrwiiyqvtljo62m3hxhgxhubq/1tbiAwIFEmS8hHkFjgABs5 X-Coremail-Antispam: 1Ur529EdanIXcx71UUUUU7IcSsGvfJ3iIAIbVAYjsxI4VW3Jw CS07vEb4IE77IF4wCS07vE1I0E4x80FVAKz4kxMIAIbVAFxVCaYxvI4VCIwcAKzIAtYxBI daVFxhVjvjDU= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGVsbG8gTWljaGFlbCwKCj4gPgo+ID4gVGhlIHZkcGFfbmxfcG9saWN5IHN0cnVjdHVyZSBpcyB1 c2VkIHRvIHZhbGlkYXRlIHRoZSBubGF0dHIgd2hlbiBwYXJzaW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