Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge branch 'locking-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull locking fixes from Thomas Gleixner:
"Two final locking fixes for 4.15:

- Repair the OWNER_DIED logic in the futex code which got wreckaged
with the recent fix for a subtle race condition.

- Prevent the hard lockup detector from triggering when dumping all
held locks in the system"

* 'locking-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
locking/lockdep: Avoid triggering hardlockup from debug_show_all_locks()
futex: Fix OWNER_DEAD fixup

+5 -3
+3 -3
kernel/futex.c
··· 2311 raw_spin_lock_irq(&pi_state->pi_mutex.wait_lock); 2312 2313 oldowner = pi_state->owner; 2314 - /* Owner died? */ 2315 - if (!pi_state->owner) 2316 - newtid |= FUTEX_OWNER_DIED; 2317 2318 /* 2319 * We are here because either: ··· 2371 } 2372 2373 newtid = task_pid_vnr(newowner) | FUTEX_WAITERS; 2374 2375 if (get_futex_value_locked(&uval, uaddr)) 2376 goto handle_fault;
··· 2311 raw_spin_lock_irq(&pi_state->pi_mutex.wait_lock); 2312 2313 oldowner = pi_state->owner; 2314 2315 /* 2316 * We are here because either: ··· 2374 } 2375 2376 newtid = task_pid_vnr(newowner) | FUTEX_WAITERS; 2377 + /* Owner died? */ 2378 + if (!pi_state->owner) 2379 + newtid |= FUTEX_OWNER_DIED; 2380 2381 if (get_futex_value_locked(&uval, uaddr)) 2382 goto handle_fault;
+2
kernel/locking/lockdep.c
··· 49 #include <linux/gfp.h> 50 #include <linux/random.h> 51 #include <linux/jhash.h> 52 53 #include <asm/sections.h> 54 ··· 4491 if (!unlock) 4492 if (read_trylock(&tasklist_lock)) 4493 unlock = 1; 4494 } while_each_thread(g, p); 4495 4496 pr_warn("\n");
··· 49 #include <linux/gfp.h> 50 #include <linux/random.h> 51 #include <linux/jhash.h> 52 + #include <linux/nmi.h> 53 54 #include <asm/sections.h> 55 ··· 4490 if (!unlock) 4491 if (read_trylock(&tasklist_lock)) 4492 unlock = 1; 4493 + touch_nmi_watchdog(); 4494 } while_each_thread(g, p); 4495 4496 pr_warn("\n");