Skip to content

Futex back-port from v4.14

Lee Jones stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12y2038: futex: Move compat implementation into futex.cinclude/linux/futex.h kernel/Makefile kernel/futex.c +1 more+192 -2150 replies
2/12futex: Move futex exit handling into futex codeinclude/linux/compat.h include/linux/futex.h kernel/fork.c +1 more+46 -330 replies
3/12futex: Replace PF_EXITPIDONE with a stateinclude/linux/futex.h include/linux/sched.h kernel/exit.c +1 more+45 -260 replies
4/12exit/exec: Seperate mm_release()fs/exec.c include/linux/sched.h kernel/exit.c +1 more+17 -50 replies
5/12futex: Split futex_mm_release() for exit/execinclude/linux/futex.h kernel/fork.c kernel/futex.c+12 -60 replies
6/12futex: Set task::futex_state to DEAD right after handling futex exitkernel/exit.c kernel/futex.c+1 -10 replies
7/12futex: Mark the begin of futex exit explicitlyinclude/linux/futex.h kernel/exit.c kernel/futex.c+40 -400 replies
8/12futex: Sanitize exit state handlingkernel/futex.c+10 -70 replies
9/12futex: Provide state handling for exec() as wellkernel/futex.c+34 -40 replies
10/12futex: Add mutex around futex exitinclude/linux/futex.h include/linux/sched.h kernel/futex.c+18 -00 replies
11/12futex: Provide distinct return value when owner is exitingkernel/futex.c+6 -40 replies
12/12futex: Prevent exit livelockkernel/futex.c+91 -150 replies

Reviews trailers per patch

11 of 12 patches have a Reviewed-by or Acked-by.

PatchIngo MolnarPeter Zijlstra (Intel)
1/12
2/12R-b A-b
3/12R-b A-b
4/12R-b A-b
5/12R-b A-b
6/12R-b A-b
7/12R-b A-b
8/12R-b A-b
9/12R-b A-b
10/12R-b A-b
11/12R-b A-b
12/12R-b A-b

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 4.9 00/12] Futex back-port from v4.14

Ref: https://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git/tree/pending/futex_issues.txt

This set required 1 additional patch from v4.14 to avoid build errors.

Arnd Bergmann (1):
y2038: futex: Move compat implementation into futex.c

Thomas Gleixner (11):
futex: Move futex exit handling into futex code
futex: Replace PF_EXITPIDONE with a state
exit/exec: Seperate mm_release()
futex: Split futex_mm_release() for exit/exec
futex: Set task::futex_state to DEAD right after handling futex exit
futex: Mark the begin of futex exit explicitly
futex: Sanitize exit state handling
futex: Provide state handling for exec() as well
futex: Add mutex around futex exit
futex: Provide distinct return value when owner is exiting
futex: Prevent exit livelock

 fs/exec.c              |   2 +-
 include/linux/compat.h |   2 -
 include/linux/futex.h  |  44 ++--
 include/linux/sched.h  |   9 +-
 kernel/Makefile        |   3 -
 kernel/exit.c          |  29 +--
 kernel/fork.c          |  40 ++--
 kernel/futex.c         | 446 ++++++++++++++++++++++++++++++++++++++---
 kernel/futex_compat.c  | 201 -------------------
 9 files changed, 466 insertions(+), 310 deletions(-)
 delete mode 100644 kernel/futex_compat.c
Cc Stable Team <[email protected]>
Signature · 1 line
2.25.1