aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorWill Deacon <[email protected]>2019-01-03 17:45:07 +0000
committerWill Deacon <[email protected]>2019-01-04 14:18:01 +0000
commit169113ece0f29ebe884a6cfcf57c1ace04d8a36a (patch)
tree6f5dfd2cb72ed264b96097768e29c2c2f341b481 /tools/perf/scripts/python/export-to-postgresql.py
parent9966a05c7b80f075f2bc7e48dbb108d3f2927234 (diff)
arm64: compat: Avoid sending SIGILL for unallocated syscall numbers
The ARM Linux kernel handles the EABI syscall numbers as follows: 0 - NR_SYSCALLS-1 : Invoke syscall via syscall table NR_SYSCALLS - 0xeffff : -ENOSYS (to be allocated in future) 0xf0000 - 0xf07ff : Private syscall or -ENOSYS if not allocated > 0xf07ff : SIGILL Our compat code gets this wrong and ends up sending SIGILL in response to all syscalls greater than NR_SYSCALLS which have a value greater than 0x7ff in the bottom 16 bits. Fix this by defining the end of the ARM private syscall region and checking the syscall number against that directly. Update the comment while we're at it. Cc: <[email protected]> Cc: Dave Martin <[email protected]> Reported-by: Pi-Hsun Shih <[email protected]> Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions