lkml.org 
[lkml]   [2017]   [Oct]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[BUG] drbd/block: A sleep-in-atomic bug in notify_helper
Date
The driver may sleep under a RCU lock, and the function call path is:
drbd_sync_handshake (acquire the RCU lock)
drbd_asb_recover_1p
drbd_khelper
notify_helper
mutex_lock --> may sleep

I hope to fix it, but I do not find a proper way at present ...
This bug is found by my static analysis tool and my code review.


Thanks,
Jia-Ju Bai


\
 
 \ /
  Last update: 2017-10-04 03:40    [W:0.033 / U:7.436 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site