linux_dsm_epyc7002/arch/h8300/kernel
Linus Torvalds 72c33734b5 Merge branch 'regset' (PTRACE_SETREGSET data leakage)
Merge PTRACE_SETREGSET leakage fixes from Dave Martin:
 "This series is the collection of fixes I proposed on this topic, that
  have not yet appeared upstream or in the stable branches,

  The issue can leak kernel stack, but doesn't appear to allow userspace
  to attack the kernel directly.  The affected architectures are c6x,
  h8300, metag, mips and sparc.

  [ Mark Salter points out that c6x has no MMU or other mechanism to
    prevent userspace access to kernel code or data on c6x, but it
    doesn't hurt to clean that case up too. ]

  The bugs arise from use of user_regset_copyin(). Users of
  user_regset_copyin() can work in one of two ways:

   1) Copy directly to thread_struct or equivalent. (This seems to be
      the design assumption of the regset API, and is the most common
      approach.)

   2) Copy to a local variable and then transfer to thread_struct. (A
      significant minority of cases.)

  Buggy code typically involves approach 2"

* emailed patches from Dave Martin <Dave.Martin@arm.com>:
  sparc/ptrace: Preserve previous registers for short regset write
  mips/ptrace: Preserve previous registers for short regset write
  metag/ptrace: Reject partial NT_METAG_RPIPE writes
  metag/ptrace: Provide default TXSTATUS for short NT_PRSTATUS
  metag/ptrace: Preserve previous registers for short regset write
  h8300/ptrace: Fix incorrect register transfer count
  c6x/ptrace: Remove useless PTRACE_SETREGSET implementation
2017-03-29 08:55:25 -07:00
..
asm-offsets.c h8300: miscellaneous functions 2015-06-23 13:35:53 +09:00
dma.c treewide: Constify most dma_map_ops structures 2017-01-24 12:23:35 -05:00
entry.S h8300: System call entry enable interrupt. 2016-01-20 23:28:01 +09:00
h8300_ksyms.c h8300: miscellaneous functions 2015-06-23 13:35:53 +09:00
head_ram.S h8300: Low level entry 2015-06-23 13:35:51 +09:00
head_rom.S h8300: Low level entry 2015-06-23 13:35:51 +09:00
irq.c h8300: Interrupt and exceptions 2015-06-23 13:35:50 +09:00
kgdb.c h8300: Add KGDB support. 2016-01-20 23:27:30 +09:00
Makefile h8300: Add KGDB support. 2016-01-20 23:27:30 +09:00
module.c h8300: miscellaneous functions 2015-06-23 13:35:53 +09:00
process.c sched/headers: Prepare for new header dependencies before moving code to <linux/sched/task_stack.h> 2017-03-02 08:42:36 +01:00
ptrace_h.c h8300: Fix build breakage caused by header file changes 2017-03-07 08:35:49 +01:00
ptrace_s.c sched/headers: Prepare for new header dependencies before moving code to <linux/sched/signal.h> 2017-03-02 08:42:29 +01:00
ptrace.c h8300/ptrace: Fix incorrect register transfer count 2017-03-29 08:54:17 -07:00
setup.c h8300: switch EARLYCON 2016-03-25 01:45:19 +09:00
signal.c sched/headers: Prepare for new header dependencies before moving code to <linux/sched/task_stack.h> 2017-03-02 08:42:36 +01:00
sim-console.c h8300: switch EARLYCON 2016-03-25 01:45:19 +09:00
syscalls.c h8300: miscellaneous functions 2015-06-23 13:35:53 +09:00
traps.c sched/headers: Prepare to remove the <linux/mm_types.h> dependency from <linux/sched.h> 2017-03-02 08:42:37 +01:00
vmlinux.lds.S nmi_backtrace: generate one-line reports for idle cpus 2016-10-07 18:46:30 -07:00