Dave Martin 502585c755 h8300/ptrace: Fix incorrect register transfer count
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>
2017-03-29 08:54:17 -07:00
..
2017-02-18 17:38:09 -08:00
2017-02-08 10:01:39 -08:00
2017-01-24 16:26:14 -08:00
2017-01-06 15:27:17 -08:00
2017-02-17 09:58:32 -08:00
2017-02-02 12:39:10 -08:00