Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp644005rwi; Mon, 31 Oct 2022 06:03:25 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5PGk4ETsvbUMQxB6BhHIeGZi43BpttEcrGMbJDHxbu7HM397JlQIe0+eu0OzamnS0iAXsk X-Received: by 2002:a17:907:a4a:b0:77b:c1b2:479a with SMTP id be10-20020a1709070a4a00b0077bc1b2479amr13510467ejc.109.1667221405491; Mon, 31 Oct 2022 06:03:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667221405; cv=none; d=google.com; s=arc-20160816; b=kKt6Dju1RbTvxn4oXvdYMK/L/IWXarSc1zrsufMd/BaZNa2gZ6wfrPqs3SdwBKd3t3 tWYHrHvgqiQfo6c3DwhzKzFJdwGSaVaUZpfQn/L2krRNMWeSGccL5OxaoxjYz/9qgw98 noly/oUbddm+fxHS4LZLR5YF6h2QoQ3lSDsMqFutDo6zaFKyR/wSpm2dRx7/yX2Yy9D3 IVUTT220OhrQ0V/ijONbmJ+YPNreOT5+F7/ZiZqDs/OmNhIkcRJSwGhlwjt6D2PTZOTX rOBswOANnqLXx1scekeq1Ez/qvSVEdPtB29BeJll69nApjOpArwgfABbvI3fBO2QO5Qu G7Aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=BGiAeAbP4URCcH1u5C5/OePY76WeSxuW6GiU6zBJZA0=; b=CjVUjhpYcnOFF123/HjlVUTEB0sORaYgpr96MVWEAxuqbBc3TH1JFbnt7Z84goRuaL shaI/dY4oaR2WpNmlwDnAp2IzmFCc5xrPk6KrWLevxusDhM6Y8OUgt0mWu91ezZWSRdD U+7UqHPsHr5xpDLp2KztOnqFAbkgutQknNlCShXrO8l9kXKw5aDTDLwShAat1W1nPWaI gPTjVxDkYWj+nEOzboeC0la4yoG7PKZ2SejDKPo60rEsNikVqw/PEWpDpfgMUYKHJq1h vpvtoJNJOcBvvdGkCEdIxB1rH7VYlOFPb9xGDXVaXBafZ2rHWLFmOdbsVzl1XaavQXLa IpMg== 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l14-20020a056402254e00b00459060fce1bsi8529238edb.574.2022.10.31.06.02.29; Mon, 31 Oct 2022 06:03:25 -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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231363AbiJaM1w (ORCPT + 99 others); Mon, 31 Oct 2022 08:27:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231207AbiJaM1r (ORCPT ); Mon, 31 Oct 2022 08:27:47 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1151FCE5; Mon, 31 Oct 2022 05:27:06 -0700 (PDT) Received: from canpemm500006.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4N1C7q1jhwzHvRP; Mon, 31 Oct 2022 20:26:47 +0800 (CST) Received: from [10.174.179.200] (10.174.179.200) by canpemm500006.china.huawei.com (7.192.105.130) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 31 Oct 2022 20:27:04 +0800 Subject: Re: [ovs-dev] [PATCH net] openvswitch: add missing resv_start_op initialization for dp_vport_genl_family To: Ilya Maximets , , , , , , , CC: References: <20221031081210.2852708-1-william.xuanziyang@huawei.com> <7f118c0f-c79a-7f26-aefc-afae00483233@ovn.org> From: "Ziyang Xuan (William)" Message-ID: <9b86ae1c-4700-f41f-29ab-4372ec9e7b22@huawei.com> Date: Mon, 31 Oct 2022 20:27:03 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <7f118c0f-c79a-7f26-aefc-afae00483233@ovn.org> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.179.200] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To canpemm500006.china.huawei.com (7.192.105.130) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS 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 > On 10/31/22 09:12, Ziyang Xuan via dev wrote: >> I got a warning using the latest mainline codes to start vms as following: >> >> =================================================== >> WARNING: CPU: 1 PID: 1 at net/netlink/genetlink.c:383 genl_register_family+0x6c/0x76c >> CPU: 1 PID: 1 Comm: swapper/0 Not tainted 6.1.0-rc2-00886-g882ad2a2a8ff #43 >> ... >> Call trace: >> genl_register_family+0x6c/0x76c >> dp_init+0xa8/0x124 >> do_one_initcall+0x84/0x450 >> >> It is because that commit 9c5d03d36251 ("genetlink: start to validate >> reserved header bytes") has missed the resv_start_op initialization >> for dp_vport_genl_family, and commit ce48ebdd5651 ("genetlink: limit >> the use of validation workarounds to old ops") add checking warning. >> >> Add resv_start_op initialization for dp_vport_genl_family to fix it. >> >> Fixes: 9c5d03d36251 ("genetlink: start to validate reserved header bytes") >> Signed-off-by: Ziyang Xuan >> --- > > Hi, Ziyang Xuan. Thanks for the patch! > > But it looks like Jakub already fixed that issue a couple of days ago: > https://git.kernel.org/netdev/net/c/e4ba4554209f > That's fine. Ignore this. Thank you. > Best regards, Ilya Maximets. > > . >