Re: [PATCH] mISDN: Fix a sleep-in-atomic bug
From: David Miller <davem@davemloft.net>
Date: 2017-06-01 18:50:17
Also in:
lkml
From: David Miller <davem@davemloft.net>
Date: 2017-06-01 18:50:17
Also in:
lkml
From: Jia-Ju Bai <redacted> 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 <redacted>
Just proves that nobody has ever run this code with lock debugging enabled, if at all. Applied, thanks.