lockdep: Fix wait-type for empty stack
authorPeter Zijlstra <peterz@infradead.org>
Thu, 17 Jun 2021 18:57:18 +0000 (20:57 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jul 2021 14:56:10 +0000 (16:56 +0200)
commitfca9e784a36c48091a21b0dc85c0b61a810e7346
tree6ec929dc40d1da34f1ad9b1803c8403cfdcd3dcb
parentca47a4fa8996e9469302257af66ad3073942a013
lockdep: Fix wait-type for empty stack

[ Upstream commit f8b298cc39f0619544c607eaef09fd0b2afd10f3 ]

Even the very first lock can violate the wait-context check, consider
the various IRQ contexts.

Fixes: de8f5e4f2dc1 ("lockdep: Introduce wait-type checks")
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Joerg Roedel <jroedel@suse.de>
Link: https://lore.kernel.org/r/20210617190313.256987481@infradead.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
kernel/locking/lockdep.c