Skip to content

x86: fix get_nr_restart_syscall()

Oleg Nesterov lkml stable 1 version Applied

Status from this message: The following commit has been merged into the x86/urgent branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first

  1. v4 Latest4 patches 11 repliesApplied

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/4introduce set_restart_fn() and arch_set_restart_data()fs/select.c include/linux/thread_info.h kernel/futex.c +3 more+21 -110 replies
2/4x86: mv TS_COMPAT from asm/processor.h toarch/x86/include/asm/processor.h arch/x86/include/asm/thread_info.h+9 -90 replies
3/4x86: introduce TS_COMPAT_RESTART to fixarch/x86/include/asm/thread_info.h arch/x86/kernel/signal.c+14 -243 replies
4/4x86: introduce restart_block->arch_data to killarch/x86/include/asm/thread_info.h arch/x86/kernel/signal.c include/linux/restart_block.h+4 -110 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH RESEND v4 0/4] x86: fix get_nr_restart_syscall()

Somehow I forgot about this problem. Let me resend the last version based on discussion with Linus. IIRC he was agree with this series.

And let me remind why 3/4 temporary adds the "transient" TS_COMPAT_RESTART flag killed by the next patch: to simplify the backporting. 1-3 can fix the problem without breaking the kABI.

Oleg.

---
 arch/x86/include/asm/processor.h   |  9 ---------
 arch/x86/include/asm/thread_info.h | 15 ++++++++++++++-
 arch/x86/kernel/signal.c           | 24 +-----------------------
 fs/select.c                        | 10 ++++------
 include/linux/restart_block.h      |  1 +
 include/linux/thread_info.h        | 13 +++++++++++++
 kernel/futex.c                     |  3 +--
 kernel/time/alarmtimer.c           |  2 +-
 kernel/time/hrtimer.c              |  2 +-
 kernel/time/posix-cpu-timers.c     |  2 +-
 10 files changed, 37 insertions(+), 44 deletions(-)