Merge branch 'siginfo-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebieder...
authorLinus Torvalds <torvalds@linux-foundation.org>
Tue, 9 Jul 2019 04:48:15 +0000 (21:48 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 9 Jul 2019 04:48:15 +0000 (21:48 -0700)
commit5ad18b2e60b75c7297a998dea702451d33a052ed
treec47fb503b4cfc8d3e99ad425aadede9832e96dc4
parent92c1d6522135050cb377a18cc6e30d08dfb87efb
parent318759b4737c3b3789e2fd64d539f437d52386f5
Merge branch 'siginfo-linus' of git://git./linux/kernel/git/ebiederm/user-namespace

Pull force_sig() argument change from Eric Biederman:
 "A source of error over the years has been that force_sig has taken a
  task parameter when it is only safe to use force_sig with the current
  task.

  The force_sig function is built for delivering synchronous signals
  such as SIGSEGV where the userspace application caused a synchronous
  fault (such as a page fault) and the kernel responded with a signal.

  Because the name force_sig does not make this clear, and because the
  force_sig takes a task parameter the function force_sig has been
  abused for sending other kinds of signals over the years. Slowly those
  have been fixed when the oopses have been tracked down.

  This set of changes fixes the remaining abusers of force_sig and
  carefully rips out the task parameter from force_sig and friends
  making this kind of error almost impossible in the future"

* 'siginfo-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace: (27 commits)
  signal/x86: Move tsk inside of CONFIG_MEMORY_FAILURE in do_sigbus
  signal: Remove the signal number and task parameters from force_sig_info
  signal: Factor force_sig_info_to_task out of force_sig_info
  signal: Generate the siginfo in force_sig
  signal: Move the computation of force into send_signal and correct it.
  signal: Properly set TRACE_SIGNAL_LOSE_INFO in __send_signal
  signal: Remove the task parameter from force_sig_fault
  signal: Use force_sig_fault_to_task for the two calls that don't deliver to current
  signal: Explicitly call force_sig_fault on current
  signal/unicore32: Remove tsk parameter from __do_user_fault
  signal/arm: Remove tsk parameter from __do_user_fault
  signal/arm: Remove tsk parameter from ptrace_break
  signal/nds32: Remove tsk parameter from send_sigtrap
  signal/riscv: Remove tsk parameter from do_trap
  signal/sh: Remove tsk parameter from force_sig_info_fault
  signal/um: Remove task parameter from send_sigtrap
  signal/x86: Remove task parameter from send_sigtrap
  signal: Remove task parameter from force_sig_mceerr
  signal: Remove task parameter from force_sig
  signal: Remove task parameter from force_sigsegv
  ...
58 files changed:
arch/arc/kernel/process.c
arch/arc/kernel/signal.c
arch/arc/kernel/traps.c
arch/arc/mm/fault.c
arch/arm/kernel/ptrace.c
arch/arm/kernel/signal.c
arch/arm/kernel/traps.c
arch/arm/mm/alignment.c
arch/arm/mm/fault.c
arch/arm64/kernel/traps.c
arch/c6x/kernel/signal.c
arch/c6x/kernel/traps.c
arch/csky/kernel/signal.c
arch/hexagon/kernel/signal.c
arch/hexagon/kernel/traps.c
arch/hexagon/mm/vm_fault.c
arch/mips/kernel/kprobes.c
arch/mips/kernel/signal_n32.c
arch/mips/kernel/traps.c
arch/nds32/kernel/fpu.c
arch/openrisc/kernel/signal.c
arch/openrisc/kernel/traps.c
arch/openrisc/mm/fault.c
arch/parisc/kernel/unaligned.c
arch/parisc/math-emu/driver.c
arch/powerpc/kernel/process.c
arch/powerpc/kernel/signal_32.c
arch/powerpc/kernel/signal_64.c
arch/powerpc/kernel/traps.c
arch/powerpc/mm/fault.c
arch/powerpc/platforms/cell/spufs/fault.c
arch/riscv/include/asm/bug.h
arch/riscv/kernel/signal.c
arch/riscv/kernel/traps.c
arch/riscv/mm/fault.c
arch/s390/kernel/traps.c
arch/s390/mm/fault.c
arch/sparc/kernel/traps_64.c
arch/unicore32/kernel/signal.c
arch/unicore32/kernel/traps.c
arch/unicore32/mm/fault.c
arch/x86/entry/vsyscall/vsyscall_64.c
arch/x86/include/asm/ptrace.h
arch/x86/kernel/cpu/mce/core.c
arch/x86/kernel/ptrace.c
arch/x86/kernel/uprobes.c
arch/x86/mm/fault.c
drivers/block/drbd/drbd_int.h
drivers/block/drbd/drbd_main.c
drivers/block/drbd/drbd_nl.c
drivers/misc/lkdtm/bugs.c
fs/cifs/connect.c
fs/exec.c
include/linux/syscalls.h
kernel/events/uprobes.c
kernel/pid_namespace.c
kernel/signal.c
mm/memory-failure.c