Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp4391306rwb; Mon, 31 Jul 2023 06:18:55 -0700 (PDT) X-Google-Smtp-Source: APBJJlHfmrGBmOSbZb3Rg4ysP1KNvmSJOlG9HwsEqEKSwezQDF+sAtb+/IuOQ0RgULb3wtp53NS2 X-Received: by 2002:a05:6a21:3806:b0:13d:315f:26b7 with SMTP id yi6-20020a056a21380600b0013d315f26b7mr4816596pzb.1.1690809535536; Mon, 31 Jul 2023 06:18:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690809535; cv=none; d=google.com; s=arc-20160816; b=RB5Frh8bbtW8qiQjsCA11mbbwhwRtOzpbWMJ7MFBFpuKsSdwPUz/aWG74o4G1Jv14B aNGcdgNh/pp5Js3nsBaRqM34d/l9KEry4D+6LlqyXnkqNelWgXGE/J2kDH3ng9sqWspV bGA0KXd2JdK2yCk/IUyPTcA5M5AnYnUPgozeDnokxW46YD9goFRiNt0xYDpbIPLaNjQZ aSHwTr7nkzMvxdl9thsC4bjwSZ2ePZe5wTp90wzbf0LeP49p8UVzjzTVuLgyDBkQYtuC eTzx8TXGXkwkfI+vqSLpAMc/UHpMrgIy42XmneoowPwIRoTz7KzzlW5ghwPZYPNeGw2A K4wg== 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=tr51d5perBgSuiTMSi+TPULGxYHNvpHIIPLmHDJHlfw=; fh=T9ouaDjMZWbtplh/4cGRzrhsF3dKy3ty1nibMBbVUr0=; b=CRDjPD2FiI8x++1GUrDWd84JqSc/MTnd7aL67hd6P6uEONCIc4v48WXWSOd1+58fDQ D5tol85IrAX4Psa5dNW92rGyYtcS5uycirA4NqbOcBxYh9z4s9vCD6vmQjAIzu9uhfyL 8DIVunypsySFiOfwGMNzJR1dEW9G6OKy24f+kTYSEGM6eXjwpvl4GMfQDxbeXD/KI+cz fP7HlMir9KUUR0rbW5pkw5CWjJA70TZePFUiyG3Zs7A8rHXZG4EILzWypZs26oBRHJCo IoCc9N7JB0oV3n9WkpG00u7O0WAlmxqmwuYPBt+yU6ITgwOxuMsWg26CPZCLkq/1XZ6J z3Xg== 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 j24-20020a635518000000b005633d4ca6dcsi7159104pgb.849.2023.07.31.06.18.41; Mon, 31 Jul 2023 06:18:55 -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 S232721AbjGaMdV (ORCPT + 99 others); Mon, 31 Jul 2023 08:33:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232316AbjGaMdR (ORCPT ); Mon, 31 Jul 2023 08:33:17 -0400 Received: from zg8tndyumtaxlji0oc4xnzya.icoremail.net (zg8tndyumtaxlji0oc4xnzya.icoremail.net [46.101.248.176]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A207EE53; Mon, 31 Jul 2023 05:33:14 -0700 (PDT) Received: from linma$zju.edu.cn ( [42.120.103.60] ) by ajax-webmail-mail-app2 (Coremail) ; Mon, 31 Jul 2023 20:33:02 +0800 (GMT+08:00) X-Originating-IP: [42.120.103.60] Date: Mon, 31 Jul 2023 20:33:02 +0800 (GMT+08:00) X-CM-HeaderCharset: UTF-8 From: "Lin Ma" To: "Leon Romanovsky" Cc: "Jakub Kicinski" , jgg@ziepe.ca, markzhang@nvidia.com, michaelgur@nvidia.com, ohartoov@nvidia.com, chenzhongjin@huawei.com, yuancan@huawei.com, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1] RDMA/nldev: Add length check for IFLA_BOND_ARP_IP_TARGET 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: <20230725183924.GS11388@unreal> References: <20230723074504.3706691-1-linma@zju.edu.cn> <20230724174707.GB11388@unreal> <3c0760b5.e264b.1898a6368f8.Coremail.linma@zju.edu.cn> <20230725052557.GI11388@unreal> <20230725101405.4cd51059@kernel.org> <20230725183924.GS11388@unreal> Content-Transfer-Encoding: base64 Content-Type: text/plain; charset=UTF-8 MIME-Version: 1.0 Message-ID: <7a2e7314.ee8a2.189abf00b34.Coremail.linma@zju.edu.cn> X-Coremail-Locale: zh_CN X-CM-TRANSID: by_KCgCnzn3_qcdkiTnaCg--.46655W X-CM-SenderInfo: qtrwiiyqvtljo62m3hxhgxhubq/1tbiAwIIEmTAePoLZABKsY X-Coremail-Antispam: 1Ur529EdanIXcx71UUUUU7IcSsGvfJ3iIAIbVAYjsxI4VWxJw CS07vEb4IE77IF4wCS07vE1I0E4x80FVAKz4kxMIAIbVAFxVCaYxvI4VCIwcAKzIAtYxBI daVFxhVjvjDU= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL,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-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