Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
authorLinus Torvalds <torvalds@linux-foundation.org>
Sun, 9 Aug 2020 20:33:54 +0000 (13:33 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 9 Aug 2020 20:33:54 +0000 (13:33 -0700)
Pull regset conversion fix from Al Viro:
 "Fix a regression from an unnoticed bisect hazard in the regset series.

  A bunch of old (aout, originally) primitives used by coredumps became
  dead code after fdpic conversion to regsets. Removal of that dead code
  had been the first commit in the followups to regset series;
  unfortunately, it happened to hide the bisect hazard on sh (extern for
  fpregs_get() had not been updated in the main series when it should
  have been; followup simply made fpregs_get() static). And without that
  followup commit this bisect hazard became breakage in the mainline"

Tested-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
* 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
  kill unused dump_fpu() instances

12 files changed:
1  2 
arch/arc/kernel/process.c
arch/arm/kernel/process.c
arch/hexagon/kernel/process.c
arch/ia64/kernel/process.c
arch/nios2/kernel/process.c
arch/openrisc/kernel/process.c
arch/parisc/include/asm/elf.h
arch/parisc/kernel/process.c
arch/s390/kernel/process.c
arch/sh/kernel/process_32.c
arch/sparc/kernel/process_32.c
arch/sparc/kernel/process_64.c

Simple merge
Simple merge
Simple merge
Simple merge
@@@ -251,28 -251,3 +251,20 @@@ void start_thread(struct pt_regs *regs
        regs->ea = pc;
        regs->sp = sp;
  }
- #include <linux/elfcore.h>
- /* Fill in the FPU structure for a core dump. */
- int dump_fpu(struct pt_regs *regs, elf_fpregset_t *r)
- {
-       return 0; /* Nios2 has no FPU and thus no FPU registers */
- }
 +
 +asmlinkage int nios2_clone(unsigned long clone_flags, unsigned long newsp,
 +                         int __user *parent_tidptr, int __user *child_tidptr,
 +                         unsigned long tls)
 +{
 +      struct kernel_clone_args args = {
 +              .flags          = (lower_32_bits(clone_flags) & ~CSIGNAL),
 +              .pidfd          = parent_tidptr,
 +              .child_tid      = child_tidptr,
 +              .parent_tid     = parent_tidptr,
 +              .exit_signal    = (lower_32_bits(clone_flags) & CSIGNAL),
 +              .stack          = newsp,
 +              .tls            = tls,
 +      };
 +
 +      return _do_fork(&args);
 +}
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge