1
0
Fork 0
remarkable-linux/arch/h8300
Dave Martin 616fe993f4 h8300/ptrace: Fix incorrect register transfer count
commit 502585c755 upstream.

regs_set() and regs_get() are vulnerable to an off-by-1 buffer overrun
if CONFIG_CPU_H8S is set, since this adds an extra entry to
register_offset[] but not to user_regs_struct.

So, iterate over user_regs_struct based on its actual size, not based on
the length of register_offset[].

Signed-off-by: Dave Martin <Dave.Martin@arm.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-03-31 10:31:46 +02:00
..
boot kbuild: delete unnecessary "@:" 2016-04-20 10:36:57 +02:00
configs h8300: switch EARLYCON 2016-03-25 01:45:19 +09:00
include h8300: fix syscall restarting 2016-10-27 18:43:42 -07:00
kernel h8300/ptrace: Fix incorrect register transfer count 2017-03-31 10:31:46 +02:00
lib h8300: library functions 2015-06-23 13:35:54 +09:00
mm h8300: Memory management 2015-06-23 13:35:53 +09:00
Kconfig Merge branch 'hash' of git://ftp.sciencehorizons.net/linux 2016-05-28 16:15:25 -07:00
Kconfig.cpu h8300: Build scripts 2015-06-23 13:35:54 +09:00
Makefile h8300: Don't set CROSS_COMPILE unconditionally 2015-11-08 22:44:43 +09:00