Re: [PATCH] sched: Allow sleeping spinlocks on PREEMPT_RT within non_block_start() section

David Woodhouse <[email protected]>
Newsgroups dev.linux.lists.linux-rt-devel,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
On Thu, 2026-08-21 at 11:57 +0200, Sebastian Andrzej Siewior wrote:
> Since spinlock_t (and rwlock_t) are not problem, add a sleeping_lock
> argument to __might_resched() signaling if this is scheduling request
> is from a sleeping lock (true) or regular scheduling request (false).


Acked-by: David Woodhouse <[email protected]>
Fixes: 312364f3534c ("kernel.h: Add non_block_start/end()")
Reported-by: [email protected]
Closes: https://syzkaller.appspot.com/bug?extid=c3178b6b512446632bac

I've prodded syzbot; let's see if we can have a Tested-by: from it too.

I kind of also want synchronize_srcu() to be permitted too, but I guess 
https://lore.kernel.org/all/[email protected]/
would need to be resolved first.

Thanks.
smime.p7s (application/pkcs7-signature, 6 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.