From: Aaron Conole Date: Tue, 25 Oct 2022 10:50:17 +0000 (-0400) Subject: openvswitch: switch from WARN to pr_warn X-Git-Tag: v6.1-rc5~96^2~26^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fd954cc1919e35cb92f78671cab6e42d661945a3;p=platform%2Fkernel%2Flinux-starfive.git openvswitch: switch from WARN to pr_warn 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 --- diff --git a/net/openvswitch/datapath.c b/net/openvswitch/datapath.c index c8a9075..155263e 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; }