]> Git Repo - linux.git/commit
s390/kasan: avoid false positives during stack unwind
authorVasily Gorbik <[email protected]>
Thu, 20 Jun 2019 08:18:31 +0000 (10:18 +0200)
committerVasily Gorbik <[email protected]>
Tue, 2 Jul 2019 14:00:27 +0000 (16:00 +0200)
commit20955746320e252b41c6b3505587766012e3e06d
treef7d92a954c4f78f3b44b4fffd36e4cdf003ebc5b
parentac6639cd3db607d386616487902b4cc1850a7be5
s390/kasan: avoid false positives during stack unwind

Avoid kasan false positive when current task is interrupted in-between
stack frame allocation and backchain write instructions leaving new stack
frame backchain invalid. In particular if backchain is 0 the unwinder
tries to read pt_regs from the stack and might hit kasan poisoned bytes,
leading to kasan "stack-out-of-bounds" report.

Disable kasan instrumentation of unwinder stack reads, since this
limitation couldn't be handled otherwise with current backchain unwinder
implementation.

Fixes: 78c98f907413 ("s390/unwind: introduce stack unwind API")
Reported-by: Julian Wiedmann <[email protected]>
Tested-by: Benjamin Block <[email protected]>
Signed-off-by: Vasily Gorbik <[email protected]>
arch/s390/kernel/unwind_bc.c
This page took 0.06009 seconds and 4 git commands to generate.