TO: Thomas Gleixner <t...@linutronix.de> tree: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git locking/urgent head: 27e35715df54cbc4f2d044f681802ae30479e7fb commit: 27e35715df54cbc4f2d044f681802ae30479e7fb [3/3] rtmutex: Plug slow unlock race :::::: branch date: 46 minutes ago :::::: commit date: 46 minutes ago
kernel/locking/rtmutex.c:1033 rt_mutex_slowunlock() error: double lock 'spin_lock:&lock->wait_lock' kernel/locking/rtmutex.c:1045 rt_mutex_slowunlock() warn: inconsistent returns spin_lock:&lock->wait_lock: locked (1031) unlocked (1045) git remote add tip git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git git remote update tip git checkout 27e35715df54cbc4f2d044f681802ae30479e7fb vim +1033 kernel/locking/rtmutex.c 27e35715 kernel/locking/rtmutex.c Thomas Gleixner 2014-06-11 1025 * lock->owner = NULL; 27e35715 kernel/locking/rtmutex.c Thomas Gleixner 2014-06-11 1026 * raw_spin_unlock(&lock->wait_lock); 27e35715 kernel/locking/rtmutex.c Thomas Gleixner 2014-06-11 1027 */ 27e35715 kernel/locking/rtmutex.c Thomas Gleixner 2014-06-11 1028 while (!rt_mutex_has_waiters(lock)) { 27e35715 kernel/locking/rtmutex.c Thomas Gleixner 2014-06-11 1029 /* Drops lock->wait_lock ! */ 27e35715 kernel/locking/rtmutex.c Thomas Gleixner 2014-06-11 1030 if (unlock_rt_mutex_safe(lock) == true) 27e35715 kernel/locking/rtmutex.c Thomas Gleixner 2014-06-11 @1031 return; 27e35715 kernel/locking/rtmutex.c Thomas Gleixner 2014-06-11 1032 /* Relock the rtmutex and try again */ 27e35715 kernel/locking/rtmutex.c Thomas Gleixner 2014-06-11 @1033 raw_spin_lock(&lock->wait_lock); 23f78d4a kernel/rtmutex.c Ingo Molnar 2006-06-27 1034 } 23f78d4a kernel/rtmutex.c Ingo Molnar 2006-06-27 1035 27e35715 kernel/locking/rtmutex.c Thomas Gleixner 2014-06-11 1036 /* 27e35715 kernel/locking/rtmutex.c Thomas Gleixner 2014-06-11 1037 * The wakeup next waiter path does not suffer from the above 27e35715 kernel/locking/rtmutex.c Thomas Gleixner 2014-06-11 1038 * race. See the comments there. 27e35715 kernel/locking/rtmutex.c Thomas Gleixner 2014-06-11 1039 */ 23f78d4a kernel/rtmutex.c Ingo Molnar 2006-06-27 1040 wakeup_next_waiter(lock); 23f78d4a kernel/rtmutex.c Ingo Molnar 2006-06-27 1041 d209d74d kernel/rtmutex.c Thomas Gleixner 2009-11-17 1042 raw_spin_unlock(&lock->wait_lock); 23f78d4a kernel/rtmutex.c Ingo Molnar 2006-06-27 1043 23f78d4a kernel/rtmutex.c Ingo Molnar 2006-06-27 1044 /* Undo pi boosting if necessary: */ 23f78d4a kernel/rtmutex.c Ingo Molnar 2006-06-27 @1045 rt_mutex_adjust_prio(current); 23f78d4a kernel/rtmutex.c Ingo Molnar 2006-06-27 1046 } 23f78d4a kernel/rtmutex.c Ingo Molnar 2006-06-27 1047 23f78d4a kernel/rtmutex.c Ingo Molnar 2006-06-27 1048 /* --- 0-DAY kernel build testing backend Open Source Technology Center http://lists.01.org/mailman/listinfo/kbuild Intel Corporation _______________________________________________ kbuild mailing list kbuild@lists.01.org https://lists.01.org/mailman/listinfo/kbuild