diff options
author | Marc Zyngier <marc.zyngier@arm.com> | 2016-07-20 17:46:58 +0100 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2016-07-20 17:54:35 +0100 |
commit | ab4c1325d4bf111a590a1f773e3d93bde7f40201 (patch) | |
tree | 85817cdc289aba4b54ee3cc4f6659d3b158356c0 /tools/perf/scripts/python/syscall-counts.py | |
parent | 44bd887ce10eb8061f6a137f8a73f823957edd82 (diff) |
arm64: kprobes: Fix overflow when saving stack
The MIN_STACK_SIZE macro tries evaluate how much stack space needs
to be saved in the jprobes_stack array, sized at 128 bytes.
When using the IRQ stack, said macro can happily return up to
IRQ_STACK_SIZE, which is 16kB. Mayhem follows.
This patch fixes things by getting rid of the crazy macro and
limiting the copy to be at most the size of the jprobes_stack
array, no matter which stack we're on.
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions