]> granicus.if.org Git - strace/commit
arm: fix v4.10-25-g8497b62 fallout
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 23 Mar 2015 23:00:37 +0000 (23:00 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 24 Mar 2015 01:41:51 +0000 (01:41 +0000)
commit9945ec97c60897c79d982ca3b194cb98cd5beda9
treedeec6e4091106fc4b82d0ba19bb4e37501e966ea
parent8e8d7d219ea6e0d9cf014dc3418d80bf5a74016e
arm: fix v4.10-25-g8497b62 fallout

Starting with commit v4.10-25-g8497b62,

arm$ ./strace true
pid 1234 stray syscall exit
Segmentation fault

Fix this by updating ARM syscall sanity check.
In particular, get_scno() should not set TCB_INSYSCALL flag because
other code assumes that s_ent is properly initialized when this flag
is set.

* linux/arm/get_scno.c: Check syscall number after fetching.
Do not apply the check to SCNO_IN_RANGE syscalls.
Do not set TCB_INSYSCALL flag.
Extend diagnostics and move it to debug level.
linux/arm/get_scno.c