Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp8446857rwi; Tue, 25 Oct 2022 06:53:10 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4BGY4HVRfA5+zQ5YXN1G2M26vp8mhZ/girc8t6NZJ7LQw1YD+qypm/Xe0Gjcp9KAKvodXF X-Received: by 2002:a17:906:4fca:b0:78d:b042:eeca with SMTP id i10-20020a1709064fca00b0078db042eecamr31470492ejw.685.1666705989807; Tue, 25 Oct 2022 06:53:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666705989; cv=none; d=google.com; s=arc-20160816; b=qOFdkVDDCdX3laV7Jh4HaDbNiZOvB6e8c7dEn97DAbradpMn+2E74HxSvoWOrL7lfv 3KwU7dzBGJeNxIIvHft6bL6Em80o6cLjSIkvms4Zk7/CsLfdjkXx/jgmlFhVkmcdDVVd O/xyIZ7xVM+y4ltWc3TYrio6g/qZA3R2BT2G8A4lOd59GtIo4X0jtG5aJDrF4sHIcJY4 ecRDgILVS8f7MyHTI4iIvVXWHwM6JhE80esdQ+XEzkOkFbgkeR688itxCW1gPxlXXdRM VkOAnpA5j3RbWU8CTZ8UkaO8cAXoNCDYOyCI9w9SzEaI4Ke8jZR/e6IMZkxIbLQC/Tyr NmsQ== 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=uybZHG/CSWHnDItt3g/yqJ+HGl9MdeTapxUCh1fXalI=; b=WmAkXftAzJrdZi/chXRl1bGclicznkip/xas7uw5R/X+guImaw+LD4hBRixYwdmk6e RvYgO+hVEUfw8pEWG8vRgNvYDGvdrUDowI0wAZlCZnFVqkVVCD6Bko5xfjrLxeJ9Djz0 LzywF5v7o/YEmKB6h/qjpx37dmZZVU28fO7S4VRGBTnXw9AHWFWgPSjxGFHtNZnKU7+V YiG+JTErMz3rpl4qaIL88+tjmg+bCiyejjSZDuzDumahH/v23CbjBwqw/32485iADtoV DVYCSN2o7ElefJgWQu6GBO7v2VYVxpLMYXK2I6QwRNv/57F/WElsQudtaxNS0qCM6zbf vV0Q== 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 g17-20020aa7c851000000b00457e9f88b90si2501648edt.246.2022.10.25.06.52.44; Tue, 25 Oct 2022 06:53:09 -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 S232815AbiJYNZ3 (ORCPT + 99 others); Tue, 25 Oct 2022 09:25:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232348AbiJYNZ1 (ORCPT ); Tue, 25 Oct 2022 09:25:27 -0400 Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A8275AC57; Tue, 25 Oct 2022 06:25:24 -0700 (PDT) Received: (Authenticated sender: i.maximets@ovn.org) by mail.gandi.net (Postfix) with ESMTPSA id 53C0760011; Tue, 25 Oct 2022 13:25:18 +0000 (UTC) Message-ID: <580ec147-d295-eab4-baeb-35551f27746e@ovn.org> Date: Tue, 25 Oct 2022 15:25:18 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 Cc: i.maximets@ovn.org, Pravin B Shelar , Jakub Kicinski , "David S. Miller" , Paolo Abeni , Eric Dumazet , Thomas Graf , Kevin Sprague , dev@openvswitch.org, Eelco Chaudron , Shuah Khan , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH v2 net 1/2] openvswitch: switch from WARN to pr_warn Content-Language: en-US To: Aaron Conole , netdev@vger.kernel.org References: <20221025105018.466157-1-aconole@redhat.com> <20221025105018.466157-2-aconole@redhat.com> From: Ilya Maximets In-Reply-To: <20221025105018.466157-2-aconole@redhat.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_H3,RCVD_IN_MSPIKE_WL,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/25/22 12:50, Aaron Conole wrote: > As noted by Paolo Abeni, pr_warn doesn't generate any splat and can still > preserve the warning to the user that feature downgrade occurred. We > likely cannot introduce other kinds of checks / enforcement here because > syzbot can generate different genl versions to the datapath. > > Reported-by: syzbot+31cde0bef4bbf8ba2d86@syzkaller.appspotmail.com > Fixes: 44da5ae5fbea ("openvswitch: Drop user features if old user space attempted to create datapath") > Cc: Thomas Graf > Signed-off-by: Aaron Conole > --- > net/openvswitch/datapath.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/net/openvswitch/datapath.c b/net/openvswitch/datapath.c > index c8a9075ddd0a..155263e73512 100644 > --- a/net/openvswitch/datapath.c > +++ b/net/openvswitch/datapath.c > @@ -1616,7 +1616,8 @@ static void ovs_dp_reset_user_features(struct sk_buff *skb, > if (IS_ERR(dp)) > return; > > - WARN(dp->user_features, "Dropping previously announced user features\n"); > + pr_warn("%s: Dropping previously announced user features\n", > + ovs_dp_name(dp)); > dp->user_features = 0; > } > Nothing changed here since v1, so Acked-by: Ilya Maximets