Skip to content

the saga of FUTEX_UNLOCK_PI wobbles continues

Peter Zijlstra lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest14 patches 14 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14futex: Fix potential use-after-free in FUTEX_REQUEUE_PIkernel/futex.c+11 -90 replies
2/14futex: Add missing error handling to FUTEX_REQUEUE_PIkernel/futex.c+2 -00 replies
3/14futex: Cleanup variable names for futex_top_waiter()kernel/futex.c+15 -150 replies
4/14futex: Use smp_store_release() in mark_wake_futex()kernel/futex.c+1 -20 replies
5/14futex: Remove rt_mutex_deadlock_account_*()kernel/locking/rtmutex-debug.c kernel/locking/rtmutex-debug.h kernel/locking/rtmutex.c +1 more+18 -430 replies
6/14futex,rt_mutex: Provide futex specific rt_mutex APIkernel/futex.c kernel/locking/rtmutex.c kernel/locking/rtmutex_common.h+62 -320 replies
7/14futex: Change locking ruleskernel/futex.c+123 -303 replies
8/14futex: Cleanup refcountingkernel/futex.c+9 -40 replies
9/14futex: Rework inconsistent rt_mutex/futex_q statekernel/futex.c+13 -361 reply
10/14futex: Pull rt_mutex_futex_unlock() out from under hb->lockkernel/futex.c+91 -532 replies
11/14futex,rt_mutex: Introduce rt_mutex_init_waiter()kernel/futex.c kernel/locking/rtmutex.c kernel/locking/rtmutex_common.h+11 -70 replies
12/14futex,rt_mutex: Restructure rt_mutex_finish_proxy_lock()kernel/futex.c kernel/locking/rtmutex.c kernel/locking/rtmutex_common.h+49 -118 replies
13/14futex: Rework futex_lock_pi() to use rt_mutex_*_proxy_lock()kernel/futex.c kernel/locking/rtmutex.c kernel/locking/rtmutex_common.h+48 -360 replies
14/14futex: futex_unlock_pi() determinismkernel/futex.c+12 -145 replies

Reviews trailers per patch

2 of 14 patches have a Reviewed-by or Acked-by.

PatchDarren Hart
1/14R-b
2/14R-b
3/14
4/14
5/14
6/14
7/14
8/14
9/14
10/14
11/14
12/14
13/14
14/14

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH -v5 00/14] the saga of FUTEX_UNLOCK_PI wobbles continues

Hi all,

Here be the 5th iteration of these patches; which strive to unlock the rt_mutex without holding hb->lock.

In total this patch-set is very much like the previous one (including the 'late' fix) but it gets there in a slightly different -- and hopefully easier to understand -- route.

The last 3 patches could be superfluous if we can proof that the -EAGAIN retry in futex_unlock_pi() isn't a problem for bounded execution (or are willing to accept it). In this case the patch-set ends up simpler than before.

I sincerely hope this is the last of it; but please consider carefully, there be dragons here.