diff options
author | Dave Martin <Dave.Martin@arm.com> | 2017-03-27 15:10:54 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-03-29 08:54:17 -0700 |
commit | 502585c7555083d4a949c08350306b9ec196779e (patch) | |
tree | ceadf8d793ceaae32940754291fbd056a7cfa2ce /arch/metag | |
parent | fb411b837b587a32046dc4f369acb93a10b1def8 (diff) | |
download | linux-stable-502585c7555083d4a949c08350306b9ec196779e.tar.gz linux-stable-502585c7555083d4a949c08350306b9ec196779e.tar.bz2 linux-stable-502585c7555083d4a949c08350306b9ec196779e.zip |
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>
Diffstat (limited to 'arch/metag')
0 files changed, 0 insertions, 0 deletions