Re: [PATCH] mISDN: Fix a sleep-in-atomic bug

From: David Miller
Date: Thu Jun 01 2017 - 14:50:29 EST


From: Jia-Ju Bai <baijiaju1990@xxxxxxx>
Date: Wed, 31 May 2017 15:08:25 +0800

> The driver may sleep under a read spin lock, and the function call path is:
> send_socklist (acquire the lock by read_lock)
> skb_copy(GFP_KERNEL) --> may sleep
>
> To fix it, the "GFP_KERNEL" is replaced with "GFP_ATOMIC".
>
> Signed-off-by: Jia-Ju Bai <baijiaju1990@xxxxxxx>

Just proves that nobody has ever run this code with lock debugging
enabled, if at all.

Applied, thanks.