]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
debugobjects: Do not fill_pool() if pi_blocked_on
authorHelen Koike <koike@igalia.com>
Mon, 11 May 2026 21:53:05 +0000 (18:53 -0300)
committerThomas Gleixner <tglx@kernel.org>
Mon, 18 May 2026 08:56:36 +0000 (10:56 +0200)
commit5f41161059fd0f1bbf18c90f3180e38cc45a14eb
treeca1084e3e23862c776d4148be50b3b07870035a5
parent5200f5f493f79f14bbdc349e402a40dfb32f23c8
debugobjects: Do not fill_pool() if pi_blocked_on

On RT enabled kernels, fill_pool() ends up calling rtlock_lock(), which
asserts if current::pi_blocked_on is set, because a task can obviously only
block on one lock as otherwise the priority inheritenace chain gets
corrupted.

Prevent this by expanding the conditional to take current::pi_blocked_on
into account.

Fixes: 4bedcc28469a ("debugobjects: Make them PREEMPT_RT aware")
Reported-by: syzbot+b8ca586b9fc235f0c0df@syzkaller.appspotmail.com
Signed-off-by: Helen Koike <koike@igalia.com>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Link: https://patch.msgid.link/20260511215359.3351259-1-koike@igalia.com
Closes: https://syzkaller.appspot.com/bug?extid=b8ca586b9fc235f0c0df
lib/debugobjects.c