On Tue, Feb 04, 2020 at 02:21:02PM +0100, Martin Pieuchot wrote:
> void
> selwakeup(struct selinfo *sip)
> {
> + KERNEL_LOCK();
> + KNOTE(&sip->si_note, NOTE_SUBMIT);
> + doselwakeup(sip);
> + KERNEL_UNLOCK();
> +}There is a problem with audio code. Audio interrupt handlers generally run without the kernel lock. Acquiring the kernel lock is not safe at this level because the audio_lock mutex might be locked. In addition, IPL_AUDIO is above IPL_MPFLOOR on some architectures.
