From: Linus Torvalds Date: Sun, 9 Aug 2020 20:33:54 +0000 (-0700) Subject: Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=8d3e09b43312991c503478bf0f5f99e92c23ccf1;p=linux.git Merge branch 'fixes' of git://git./linux/kernel/git/viro/vfs 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 * 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: kill unused dump_fpu() instances --- 8d3e09b43312991c503478bf0f5f99e92c23ccf1 diff --cc arch/nios2/kernel/process.c index 0a42ab8e4c323,9392d55c7471a..88a4ec03edab4 --- a/arch/nios2/kernel/process.c +++ b/arch/nios2/kernel/process.c @@@ -251,28 -251,3 +251,20 @@@ void start_thread(struct pt_regs *regs regs->ea = pc; regs->sp = sp; } + - #include - - /* 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); +}