Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
arm64: Fix again segfault in arm64_is_kernel_exception_frame() when c…
…orrupt stack pointer address is given This is the second trial from the commit 9868ebc that was reverted at the previous commit. As described in the previous commit, result of STACK_OFFSET_TYPE() can be an address out of bt->stackbuf and hence the address needs to be checked prior to being referred to as an pt_regs object. So, to fix the issue, let's check if stkptr points to within the range of the kernel stack first. [ kh: added a warning at Lianbo's suggestion ] Signed-off-by: HATAYAMA Daisuke <d.hatayama@fujitsu.com>
- Loading branch information