]> git.itanic.dy.fi Git - linux-stable/commit
openvswitch: switch from WARN to pr_warn
authorAaron Conole <aconole@redhat.com>
Tue, 25 Oct 2022 10:50:17 +0000 (06:50 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Nov 2022 14:52:33 +0000 (23:52 +0900)
commit9f9f051ddf8acf7ef4bd901ff182406a53641df0
tree3e4003c160b806d1641ea8a1b505adf3de41ffc6
parent96e4b1fe3e334a7815716b21f74d55e4602b4d9d
openvswitch: switch from WARN to pr_warn

[ 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 <tgraf@suug.ch>
Signed-off-by: Aaron Conole <aconole@redhat.com>
Acked-by: Ilya Maximets <i.maximets@ovn.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/openvswitch/datapath.c