From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5E6E9633 for ; Wed, 2 Nov 2022 03:43:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0C267C433C1; Wed, 2 Nov 2022 03:43:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1667360618; bh=WA6paHZOI8+WiypjmJm7UxsfIvG2OegMbcDCjawvcsU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=o0pTLzq55y+UbPVmJ5VNa4CBkk/FVAexcFq5Q6xTeFDRYw3iK+NYzh0yjDeINFcxz g0nSW/+L8X30EvekQYCjoKeEDNMe4WVF48ktzHNvd+HVAa0JYoe7lYmF5mYsehdqG2 WtMzxnkGbGdqngHbeiZXIe6ArAsj+Uoct4ShBFM8= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, syzbot+31cde0bef4bbf8ba2d86@syzkaller.appspotmail.com, Thomas Graf , Aaron Conole , Ilya Maximets , Paolo Abeni , Sasha Levin Subject: [PATCH 4.14 58/60] openvswitch: switch from WARN to pr_warn Date: Wed, 2 Nov 2022 03:35:19 +0100 Message-Id: <20221102022052.996016503@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221102022051.081761052@linuxfoundation.org> References: <20221102022051.081761052@linuxfoundation.org> User-Agent: quilt/0.67 Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Aaron Conole [ Upstream commit fd954cc1919e35cb92f78671cab6e42d661945a3 ] 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 Acked-by: Ilya Maximets Signed-off-by: Paolo Abeni Signed-off-by: Sasha Levin --- 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 8319628ab428..a57a3755611d 100644 --- a/net/openvswitch/datapath.c +++ b/net/openvswitch/datapath.c @@ -1578,7 +1578,8 @@ static void ovs_dp_reset_user_features(struct sk_buff *skb, struct genl_info *in 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; } -- 2.35.1