diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2022-05-31 14:10:54 -0700 | 
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2022-05-31 14:10:54 -0700 | 
| commit | 35b51afd23c98e2f055ac563aca36173a12588b9 (patch) | |
| tree | cadaa21cf4063afa7d2e420e97c1c8d186fb9795 /arch/riscv/kernel/signal.c | |
| parent | e1cbc3b96a9974746b2a80c3a6c8a0f7eff7b1b5 (diff) | |
| parent | 7699f7aacf3ebfee51c670b6f796b2797f0f7487 (diff) | |
Merge tag 'riscv-for-linus-5.19-mw0' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux
Pull RISC-V updates from Palmer Dabbelt:
 - Support for the Svpbmt extension, which allows memory attributes to
   be encoded in pages
 - Support for the Allwinner D1's implementation of page-based memory
   attributes
 - Support for running rv32 binaries on rv64 systems, via the compat
   subsystem
 - Support for kexec_file()
 - Support for the new generic ticket-based spinlocks, which allows us
   to also move to qrwlock. These should have already gone in through
   the asm-geneic tree as well
 - A handful of cleanups and fixes, include some larger ones around
   atomics and XIP
* tag 'riscv-for-linus-5.19-mw0' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux: (51 commits)
  RISC-V: Prepare dropping week attribute from arch_kexec_apply_relocations[_add]
  riscv: compat: Using seperated vdso_maps for compat_vdso_info
  RISC-V: Fix the XIP build
  RISC-V: Split out the XIP fixups into their own file
  RISC-V: ignore xipImage
  RISC-V: Avoid empty create_*_mapping definitions
  riscv: Don't output a bogus mmu-type on a no MMU kernel
  riscv: atomic: Add custom conditional atomic operation implementation
  riscv: atomic: Optimize dec_if_positive functions
  riscv: atomic: Cleanup unnecessary definition
  RISC-V: Load purgatory in kexec_file
  RISC-V: Add purgatory
  RISC-V: Support for kexec_file on panic
  RISC-V: Add kexec_file support
  RISC-V: use memcpy for kexec_file mode
  kexec_file: Fix kexec_file.c build error for riscv platform
  riscv: compat: Add COMPAT Kbuild skeletal support
  riscv: compat: ptrace: Add compat_arch_ptrace implement
  riscv: compat: signal: Add rt_frame implementation
  riscv: add memory-type errata for T-Head
  ...
Diffstat (limited to 'arch/riscv/kernel/signal.c')
| -rw-r--r-- | arch/riscv/kernel/signal.c | 7 | 
1 files changed, 6 insertions, 1 deletions
| diff --git a/arch/riscv/kernel/signal.c b/arch/riscv/kernel/signal.c index 9f4e59f80551..38b05ca6fe66 100644 --- a/arch/riscv/kernel/signal.c +++ b/arch/riscv/kernel/signal.c @@ -6,6 +6,7 @@   * Copyright (C) 2012 Regents of the University of California   */ +#include <linux/compat.h>  #include <linux/signal.h>  #include <linux/uaccess.h>  #include <linux/syscalls.h> @@ -14,6 +15,7 @@  #include <asm/ucontext.h>  #include <asm/vdso.h> +#include <asm/signal32.h>  #include <asm/switch_to.h>  #include <asm/csr.h> @@ -261,7 +263,10 @@ static void handle_signal(struct ksignal *ksig, struct pt_regs *regs)  	rseq_signal_deliver(ksig, regs);  	/* Set up the stack frame */ -	ret = setup_rt_frame(ksig, oldset, regs); +	if (is_compat_task()) +		ret = compat_setup_rt_frame(ksig, oldset, regs); +	else +		ret = setup_rt_frame(ksig, oldset, regs);  	signal_setup_done(ret, ksig, 0);  } | 
