Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp3794580rwo; Mon, 24 Jul 2023 17:21:47 -0700 (PDT) X-Google-Smtp-Source: APBJJlF2Nh3k/4Rd6SDRzMYl+8dTKI3eZSOfCcCX/VvaUaIddGXdKM7DJGznvKLxkzb3HqMq23UU X-Received: by 2002:a17:906:74d4:b0:997:decf:11e7 with SMTP id z20-20020a17090674d400b00997decf11e7mr10827155ejl.12.1690244507427; Mon, 24 Jul 2023 17:21:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690244507; cv=none; d=google.com; s=arc-20160816; b=Ls2LXNlMKGotwTQZEWhiOrmGYLTg+MN99ccZvQliVxORecxbYFiRZgafbScZSPLorA YcWg7yhW1wOmrocvWFuNlyyNMrD93jYbCG3KAOpBGko5xCQ3QbbjG751oc7cBtV3CJ2P h+CcyU0RV5bg+6QHI1tsmIBalcMX3f2CcA1tu3hDFvgeLWdTWS5Z0QDA7BKQm4q01I2u 8HhUpg2bnPIeWPLgopv2h2jSN800v1zrOpEsbP4Cnd8nS4WY/iRo5oPCRRh3TJsRPeOZ K3yAu5i61bP5D/TfSgeCFK8+h0rozPHPIXXOT0rG82PTu3wiT0CBinYa3AAXqhu/v7ED u0aQ== 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=w1Al1x9ml91q55li2BaSE/pBw8BH2wkEUuuiIhcmzTY=; fh=3ukTDbIfcdY2/HtXFHRFITsqXE2fSxejEw6Xw/slD6c=; b=gLusY2+vmsXqU5WABr8aCKXInuM1/NiMD8Vtui1T0J4p9x5mkO4aAZF/kuvo6Cke6I qx9s/JZsZKHmGC10ot/0ifUL9fgas3//tCMPR6yy9rArZG9XFrhDyFqYM1XSZsFy0xsT n3H6mo1K+weECJrHzNMuchZ55dIy6noyUiFvDIwL9mnRibQyYeXNtlbUiUEF/2f+/Bc3 UIyf2CMp9YHPgJBrRX0fjPyfw8fsPBjQO7pvtIma52wFRFKug/H2QLmD9TNi+GTfaDbN srvr2Vx4fmSqeWk24iNEdWMT29qVn7Gk+QX01ag555zoJnWj5pqL+lxmYNmuoupplPCP AraQ== 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 va6-20020a17090711c600b00965a1d85cf1si6717167ejb.890.2023.07.24.17.21.22; Mon, 24 Jul 2023 17:21:47 -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 S229799AbjGYAB0 (ORCPT + 99 others); Mon, 24 Jul 2023 20:01:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229452AbjGYABZ (ORCPT ); Mon, 24 Jul 2023 20:01:25 -0400 X-Greylist: delayed 144961 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 24 Jul 2023 17:01:17 PDT Received: from azure-sdnproxy.icoremail.net (azure-sdnproxy.icoremail.net [52.237.72.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B8AF3173D; Mon, 24 Jul 2023 17:01:17 -0700 (PDT) Received: from linma$zju.edu.cn ( [10.162.208.50] ) by ajax-webmail-mail-app2 (Coremail) ; Tue, 25 Jul 2023 08:00:48 +0800 (GMT+08:00) X-Originating-IP: [10.162.208.50] Date: Tue, 25 Jul 2023 08:00:48 +0800 (GMT+08:00) X-CM-HeaderCharset: UTF-8 From: "Lin Ma" To: "Jakub Kicinski" Cc: "Leon Romanovsky" , jesse.brandeburg@intel.com, anthony.l.nguyen@intel.com, davem@davemloft.net, edumazet@google.com, pabeni@redhat.com, richardcochran@gmail.com, ast@kernel.org, daniel@iogearbox.net, hawk@kernel.org, john.fastabend@gmail.com, intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1] i40e: Add length check for IFLA_AF_SPEC parsing 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: <20230724142155.13c83625@kernel.org> References: <20230723075042.3709043-1-linma@zju.edu.cn> <20230724174435.GA11388@unreal> <20230724142155.13c83625@kernel.org> Content-Transfer-Encoding: base64 Content-Type: text/plain; charset=UTF-8 MIME-Version: 1.0 Message-ID: <2c84a81c.e2620.1898a5930be.Coremail.linma@zju.edu.cn> X-Coremail-Locale: zh_CN X-CM-TRANSID: by_KCgDn74uwEL9k+TCACg--.39599W X-CM-SenderInfo: qtrwiiyqvtljo62m3hxhgxhubq/1tbiAwIGEmS91fkARAARs1 X-Coremail-Antispam: 1Ur529EdanIXcx71UUUUU7IcSsGvfJ3iIAIbVAYjsxI4VWxJw CS07vEb4IE77IF4wCS07vE1I0E4x80FVAKz4kxMIAIbVAFxVCaYxvI4VCIwcAKzIAtYxBI daVFxhVjvjDU= X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, 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 Preced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