]> git.baikalelectronics.ru Git - kernel.git/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:56:56 +0000 (23:56 +0900)
commit3e2ac0c2c831dfd78fd89d34d96c9b585d7921d9
tree5997c3ecaf410b9a77298150b294732c9326cc62
parent4172afac74a54e15192699c14507e9ffc897ff3e
openvswitch: switch from WARN to pr_warn

[ Upstream commit cc4063c94296f5b8bc1019dcdbb42f37bffadb1c ]

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: 511f71fe3870 ("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