diff options
| author | James Morse <james.morse@arm.com> | 2015-12-10 10:22:40 +0000 |
|---|---|---|
| committer | Alex Shi <alex.shi@linaro.org> | 2016-05-11 15:57:01 +0800 |
| commit | e330d15430acce6073bb2c8486fba7555be1e923 (patch) | |
| tree | 531afef01cbfb014a5c79665de509261e28e7b6a /tools/perf/scripts/python/netdev-times.py | |
| parent | 95e1db8bd78d2b3f15f7d4e7896735a041c775f6 (diff) | |
arm64: when walking onto the task stack, check sp & fp are in current->stack
When unwind_frame() reaches the bottom of the irq_stack, the last fp
points to the original task stack. unwind_frame() uses
IRQ_STACK_TO_TASK_STACK() to find the sp value. If either values is
wrong, we may end up walking a corrupt stack.
Check these values are sane by testing if they are both on the stack
pointed to by current->stack.
Signed-off-by: James Morse <james.morse@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
(cherry picked from commit 1ffe199b1c9b72a8e752a9ae2a7af10128ab2ca1)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions
