Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp595952rwi; Mon, 31 Oct 2022 05:29:48 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4LkZtbTWAzlJIoBIN4NuHwOUbzAuawVNirPCXC2GTBs710MVn6bHmWYO9i4BktV7IKEw5G X-Received: by 2002:a17:902:b218:b0:184:710c:8c52 with SMTP id t24-20020a170902b21800b00184710c8c52mr14132951plr.95.1667219388424; Mon, 31 Oct 2022 05:29:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667219388; cv=none; d=google.com; s=arc-20160816; b=EUZpjYZchzQXpon40+z+2cE1mzqEaB/ASj8+lEnL53bazbSgF9EllTeVpcXzRSKmPQ Cdp7Bt9S2J3tE6Q7hfCeBklEcQ70G8a54cp1UXoTcuNY/aonXvJfCmtQ7gceo3srF6et PuthRXUV5XQ08tHrw/MAFb2fPRqs95/qq+t/pgDkIGuszyd82xceYPZMLrKyZmEObr/P UFir+j/CjgP1Mez3Py/uxRSf4ZOtb9M2umUob9fFDa1l50Oz83GjlZyPPBHmXmvbU8/C dAJYkKICkv6dDMp6RK+86kPhv2dEeRni3vNzWOpRjdMP0k+pRh6sd2gmLGWZ0bPhPf2d yp2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:cc:user-agent:mime-version :date:message-id; bh=WQlrYgkimOEY6MQg7befrFQGqwcqG0fe0qTkdugLFSY=; b=EBA1diqI7XYZgQFXqOWB5EXSEbXmbtzmNXTukvA9w2iszHBQrLuRvY01t/RGTmHExp pF7X+iU9aFVP3xHmMmNwHx0EVdEY15SFtjy9F7EOSVsTCqeqCsJkgiA1WnSXP7cRRsAI A0tyONSo+mDnWFC0CifWf1t9pv8qFdagIslJFg3/PChKl8ba3kASJ92L6Oocu53QD1uL 9+n1bhmsQJ7MZUBQaryLDj9yp+KUEldj2FWHBQbG2E3SfaQE96eUDk2rXGeH4a67lwys 329j+Fnm0eJsL9plKGkpELzb+ruJh8F6Z9BvYiugE/sjHpL8IVuN5/8qWYa61NNXMF4F jmJw== 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 nu7-20020a17090b1b0700b00213a9e1fa86si10463159pjb.73.2022.10.31.05.29.34; Mon, 31 Oct 2022 05:29:48 -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 S230343AbiJaLjU (ORCPT + 98 others); Mon, 31 Oct 2022 07:39:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229482AbiJaLjS (ORCPT ); Mon, 31 Oct 2022 07:39:18 -0400 Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75C3BDFD4; Mon, 31 Oct 2022 04:39:17 -0700 (PDT) Received: (Authenticated sender: i.maximets@ovn.org) by mail.gandi.net (Postfix) with ESMTPSA id A8326FF803; Mon, 31 Oct 2022 11:39:09 +0000 (UTC) Message-ID: <7f118c0f-c79a-7f26-aefc-afae00483233@ovn.org> Date: Mon, 31 Oct 2022 12:39:08 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.0 Cc: linux-kernel@vger.kernel.org, i.maximets@ovn.org Subject: Re: [ovs-dev] [PATCH net] openvswitch: add missing resv_start_op initialization for dp_vport_genl_family Content-Language: en-US To: Ziyang Xuan , pshelar@ovn.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, dev@openvswitch.org References: <20221031081210.2852708-1-william.xuanziyang@huawei.com> From: Ilya Maximets In-Reply-To: <20221031081210.2852708-1-william.xuanziyang@huawei.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2,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 Best regards, Ilya Maximets.