]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
batman-adv: Avoid WARN_ON timing related checks
authorSven Eckelmann <sven@narfation.org>
Tue, 18 May 2021 19:00:27 +0000 (21:00 +0200)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Thu, 15 Jul 2021 17:27:34 +0000 (19:27 +0200)
commita0744e62c201ac9b041c9861c2f06936828b9243
treeaf1cf399f239d63bef71807f4b26351d2445a425
parent569d862ff518c1e46e5f8e523c02c2097e078367
batman-adv: Avoid WARN_ON timing related checks

BugLink: https://bugs.launchpad.net/bugs/1934179
[ Upstream commit 9f460ae31c4435fd022c443a6029352217a16ac1 ]

The soft/batadv interface for a queued OGM can be changed during the time
the OGM was queued for transmission and when the OGM is actually
transmitted by the worker.

But WARN_ON must be used to denote kernel bugs and not to print simple
warnings. A warning can simply be printed using pr_warn.

Reported-by: Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>
Reported-by: syzbot+c0b807de416427ff3dd1@syzkaller.appspotmail.com
Fixes: ef0a937f7a14 ("batman-adv: consider outgoing interface in OGM sending")
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
net/batman-adv/bat_iv_ogm.c