Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1495920rwi; Thu, 20 Oct 2022 13:16:55 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5vu1FcN5tSy5q31OjKqakO6Cz72+rxMOHA+4fqL1KvcAWgGHhklK4dG4fSbOb5Kxzu+rMY X-Received: by 2002:a63:d24b:0:b0:454:defd:db65 with SMTP id t11-20020a63d24b000000b00454defddb65mr13068070pgi.203.1666297015525; Thu, 20 Oct 2022 13:16:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666297015; cv=none; d=google.com; s=arc-20160816; b=I5GiBZZoYWJ/3X4QOinI9bNMOdV6xMwg6b3x9Y2y/Em/6Lu5FT1WYxaHz2dvg0E7eO 6btmB7OwIIrQZIsrwYR2YqjvctJDL0Bx40o+PKAKGZPmDunfDwy213fnus6S/7H7gti8 3f7u1RCNnUlK1lCp7V+C5sulS8iNdaMt9g/nF1H2XfgEccluj0HUpXfbbybRmVC3/xf/ RPvrkwP2VyZIsgaoN74CUa+gdBqzpxoc5dSaGBv8HobCT9Rmfvdof4cvOrGFjWn0RN1f Zan9k2SYuL1zUbHds3p2FwTW5YtQlS/YGeR5J7Tk+ugMcMh0IJZ04AL79M2foDpq/xpd j8sA== 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:subject :from:references:to:content-language:cc:user-agent:mime-version:date :message-id; bh=X883FudFD2+2etojZghYgxCClmW0Ht+DN0XgSPl9OYY=; b=UIFjKlgRGZpZymQiEyT/PnRatuc1fjnHhCjfBVljy2Dxzig0X2CGRKLxY364Ernhhv WQgFhxSZO5KJe+/j/rWwy6NN2+kUI1DDoLhlahltlSZJAlHQ5nPWxqpXWe9SYB1kWt9e zW722nNUGDxQNHXabQoX828YaOtX7UHIMhS/+ohlJFAAH2aLHcVTyeW/HFGM4xRj1958 Z+J8t939AOiEjzZ2m1R+TCRXs4ogrJPcVlCqm/yXP325VmF/d3h6TmzS0xxMPxC1lYAJ XKZr5p/g/M89eC5CSQ2nA7JfV3mqqmG0r37bZvvwBDoKQG541G7WkqfMVK+OiYahSwUi mDbg== 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 r5-20020a63ce45000000b0045a3e1d1a77si21133726pgi.111.2022.10.20.13.16.42; Thu, 20 Oct 2022 13:16: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 S230005AbiJTSkU (ORCPT + 99 others); Thu, 20 Oct 2022 14:40:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230126AbiJTSkQ (ORCPT ); Thu, 20 Oct 2022 14:40:16 -0400 Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E48441988; Thu, 20 Oct 2022 11:40:13 -0700 (PDT) Received: (Authenticated sender: i.maximets@ovn.org) by mail.gandi.net (Postfix) with ESMTPSA id 7290820004; Thu, 20 Oct 2022 18:40:08 +0000 (UTC) Message-ID: Date: Thu, 20 Oct 2022 20:40:07 +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 Content-Language: en-US To: Aaron Conole , netdev@vger.kernel.org References: <20221019183054.105815-1-aconole@redhat.com> <20221019183054.105815-2-aconole@redhat.com> From: Ilya Maximets Subject: Re: [PATCH net 1/2] openvswitch: switch from WARN to pr_warn In-Reply-To: <20221019183054.105815-2-aconole@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NEUTRAL 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/19/22 20:30, 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; > } > Works fine. Thanks! Acked-by: Ilya Maximets