Patch "mISDN: Fix a sleep-in-atomic bug" has been added to the 3.18-stable tree
This is a note to let you know that I've just added the patch titled
mISDN: Fix a sleep-in-atomic bug
to the 3.18-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
misdn-fix-a-sleep-in-atomic-bug.patch
and it can be found in the queue-3.18 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From foo@baz Tue Apr 10 13:58:07 CEST 2018
From: Jia-Ju Bai <[email protected]>
Date: Wed, 31 May 2017 15:08:25 +0800
Subject: mISDN: Fix a sleep-in-atomic bug
From: Jia-Ju Bai <[email protected]>
[ Upstream commit 93818da5eed63fbc17b64080406ea53b86b23309 ]
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".
--- drivers/isdn/mISDN/stack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/isdn/mISDN/stack.c +1 -1
@@ -72,7 +72,7 @@ send_socklist(struct mISDN_sock_list *slif (sk->sk_state !=MISDN_BOUND )continue ;if (!cskb) - cskb =skb_copy (skb,GFP_KERNEL ); + cskb =skb_copy (skb,GFP_ATOMIC );if (!cskb) {printk (KERN_WARNING "%s no skb\n" , __func__);break ;
Patches currently in stable-queue which might be from [email protected] are
queue-3.18/misdn-fix-a-sleep-in-atomic-bug.patch queue-3.18/qlcnic-fix-a-sleep-in-atomic-bug-in-qlcnic_82xx_hw_write_wx_2m-and-qlcnic_82xx_hw_read_wx_2m.patch