[alsa-devel] [BUG] haswell: A possible sleep-in-atomic bug in hsw_irq_thread

Jia-Ju Bai baijiaju1990 at 163.com
Sun Oct 8 17:06:38 CEST 2017


According to sst-haswell-ipc.c, the driver may sleep under a spinlock,
and the function call path is:
hsw_irq_thread (acquire the spinlock)
   hsw_process_notification
     hsw_log_message
       mutex_lock --> may sleep

This bug is found by my static analysis tool and my code review.


Thanks,
Jia-Ju Bai



More information about the Alsa-devel mailing list