Re: BUG: sleeping function called from invalid context in __might_resched

From: Greg KH
Date: Tue Apr 18 2023 - 02:10:02 EST


On Mon, Apr 17, 2023 at 08:44:30PM -0700, Yu Hao wrote:
> Hello,
>
> We found the following issue using syzkaller on Linux v6.2.0.
> A similar bug was found in function `n_hdlc_tty_wakeup` before.
> (https://groups.google.com/g/syzkaller-bugs/c/XAyZCUO-eAY/m/Lpj5SzDNAwAJ)
> Now it is found in a different caller `gsmld_write`.
> It needs to fix the bug in `gsmld_write` again.
>
> The full report including the C reproducer:
> https://gist.github.com/ZHYfeng/eb410de5d7aec253d8c83cf34e628d6a
>
> The brief report is below:

Please submit a patch to resolve the issue, otherwise this will just end
up going on the huge other pile of syzbot-reported issues that we slowly
dig ourselves through...

thanks,

greg k-h