mbox series

[4.4,00/12] Futex back-port from v4.9

Message ID 20210201151214.2193508-1-lee.jones@linaro.org
Headers show
Series Futex back-port from v4.9 | expand

Message

Lee Jones Feb. 1, 2021, 3:12 p.m. UTC
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 dragged back 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          |  25 +--
 kernel/fork.c          |  40 ++--
 kernel/futex.c         | 446 ++++++++++++++++++++++++++++++++++++++---
 kernel/futex_compat.c  | 201 -------------------
 9 files changed, 466 insertions(+), 306 deletions(-)
 delete mode 100644 kernel/futex_compat.c

Cc: Stable Team <stable@vger.kernel.org>
-- 
2.25.1

Comments

Greg KH Feb. 1, 2021, 3:24 p.m. UTC | #1
On Mon, Feb 01, 2021 at 03:12:02PM +0000, Lee Jones wrote:
> 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 dragged back from v4.14 to avoid build errors.

> 


Many thanks for these, now all queued up!

greg k-h
Sebastian Gottschall Feb. 5, 2021, 1:56 p.m. UTC | #2
if CONFIG_FUTEX is not set

kernel/fork.c: In function 'exit_mm_release':
kernel/fork.c:1121:2: error: implicit declaration of function 
'futex_exit_release'; did you mean 'mutex_release'? 
[-Werror=implicit-function-declaration]
 1121 |  futex_exit_release(tsk);
      |  ^~~~~~~~~~~~~~~~~~
      |  mutex_release
kernel/fork.c: In function 'exec_mm_release':
kernel/fork.c:1127:2: error: implicit declaration of function 
'futex_exec_release'; did you mean 'mutex_release'? 
[-Werror=implicit-function-declaration]
 1127 |  futex_exec_release(tsk);
      |  ^~~~~~~~~~~~~~~~~~
      |  mutex_release
kernel/fork.c: In function 'copy_process':
kernel/fork.c:1705:2: error: implicit declaration of function 
'futex_init_task'; did you mean 'rt_mutex_init_task'? 
[-Werror=implicit-function-declaration]
 1705 |  futex_init_task(p);
      |  ^~~~~~~~~~~~~~~
      |  rt_mutex_init_task
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:304: kernel/fork.o] Error 1
make[2]: *** Waiting for unfinished jobs....
  CC      mm/mempool.o
  CC      fs/open.o
kernel/exit.c: In function 'do_exit':
kernel/exit.c:788:3: error: implicit declaration of function 
'futex_exit_recursive' [-Werror=implicit-function-declaration]
  788 |   futex_exit_recursive(tsk);
      |   ^~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors

Am 01.02.2021 um 16:24 schrieb Greg KH:
> On Mon, Feb 01, 2021 at 03:12:02PM +0000, Lee Jones wrote:

>> 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 dragged back from v4.14 to avoid build errors.

>>

> Many thanks for these, now all queued up!

>

> greg k-h

>
Sebastian Gottschall Feb. 5, 2021, 1:58 p.m. UTC | #3
forget the last email. my fault while merging

Am 01.02.2021 um 16:24 schrieb Greg KH:
> On Mon, Feb 01, 2021 at 03:12:02PM +0000, Lee Jones wrote:

>> 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 dragged back from v4.14 to avoid build errors.

>>

> Many thanks for these, now all queued up!

>

> greg k-h

>