diff options
author | Heiko Carstens <hca@linux.ibm.com> | 2025-06-13 18:53:04 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-07-06 12:04:25 +0300 |
commit | c124f40bbdff1f6d88ed325aa5710d77756cdc50 (patch) | |
tree | 141c75d6fc7c57769329a6ddf9b783816f8bb6b2 /scripts/gdb/linux/xarray.py | |
parent | 2d3b0bae613412d20317e494613cf6c4f70616c6 (diff) | |
download | linux-c124f40bbdff1f6d88ed325aa5710d77756cdc50.tar.xz |
s390/ptrace: Fix pointer dereferencing in regs_get_kernel_stack_nth()
commit 7f8073cfb04a97842fe891ca50dad60afd1e3121 upstream.
The recent change which added READ_ONCE_NOCHECK() to read the nth entry
from the kernel stack incorrectly dropped dereferencing of the stack
pointer in order to read the requested entry.
In result the address of the entry is returned instead of its content.
Dereference the pointer again to fix this.
Reported-by: Will Deacon <will@kernel.org>
Closes: https://lore.kernel.org/r/20250612163331.GA13384@willie-the-truck
Fixes: d93a855c31b7 ("s390/ptrace: Avoid KASAN false positives in regs_get_kernel_stack_nth()")
Cc: stable@vger.kernel.org
Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/gdb/linux/xarray.py')
0 files changed, 0 insertions, 0 deletions