commit | 9731a0cce982f4d6170428e236b1d4fc19767fe8 | [log] [tgz] |
---|---|---|
author | Andrew Boie <andrew.p.boie@intel.com> | Tue May 22 09:37:18 2018 -0700 |
committer | Andrew Boie <andrewboie@gmail.com> | Tue May 22 15:59:07 2018 -0700 |
tree | fe3f97e523d18e9e5eb3c268569ce89194cf7144 | |
parent | efe0c4b7647c5e5aa53af47679bb8625fb387b19 [diff] |
arm: syscalls: fix some register issues Upon return from a syscall handlers, the r1, r2, and r3 registers could contain random kernel data that should not be leaked to user mode. Zero these out before returning from _arm_do_syscall(). Fixes #7753. The invocation macros need a clobber if r1, r2, or r3 are not used to carry syscall arguments. This is a partial fix for #7754 but there appear to be other issues. Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>