Searched hist:"20955746320 e252b41c6b3505587766012e3e06d" (Results 1 – 1 of 1) sorted by relevance
/linux/arch/s390/kernel/ |
H A D | unwind_bc.c | diff 20955746320e252b41c6b3505587766012e3e06d Thu Jun 20 10:18:31 CEST 2019 Vasily Gorbik <gor@linux.ibm.com> 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 <jwi@linux.ibm.com> Tested-by: Benjamin Block <bblock@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
|