summaryrefslogtreecommitdiff
path: root/net/lapb/lapb_iface.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2010-09-14 12:22:58 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2010-09-20 13:36:44 -0700
commit428b01232e08df89751ed5d1683953ebcc6a9035 (patch)
treeb7a82032c5c725b0ce0ef4e6d2d677f5106b6d99 /net/lapb/lapb_iface.c
parentb2e19c77678a5ca5f1233eb7d1989c143386d838 (diff)
x86-64, compat: Retruncate rax after ia32 syscall entry tracing
commit eefdca043e8391dcd719711716492063030b55ac upstream. In commit d4d6715, we reopened an old hole for a 64-bit ptracer touching a 32-bit tracee in system call entry. A %rax value set via ptrace at the entry tracing stop gets used whole as a 32-bit syscall number, while we only check the low 32 bits for validity. Fix it by truncating %rax back to 32 bits after syscall_trace_enter, in addition to testing the full 64 bits as has already been added. Reported-by: Ben Hawkes <hawkes@sota.gen.nz> Signed-off-by: Roland McGrath <roland@redhat.com> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions