]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
scripts/gdb: add 'lx-kasan_mem_to_shadow' command
authorKuan-Ying Lee <kuan-ying.lee@canonical.com>
Tue, 23 Jul 2024 06:49:01 +0000 (14:49 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 2 Sep 2024 03:43:29 +0000 (20:43 -0700)
commit0833952c0768daea7d9b6dc59a35bef309234b88
tree4d9b3442993e26ae91d20273a6531cf7dab177b9
parent35249f68b5d38bff1c616cc9761ecc3d820163b1
scripts/gdb: add 'lx-kasan_mem_to_shadow' command

This command allows users to quickly translate memory address to the kasan
shadow memory address.

Example output:
(gdb) lx-kasan_mem_to_shadow 0xffff000019acc008
shadow addr: 0xffff600003359801

Link: https://lkml.kernel.org/r/20240723064902.124154-6-kuan-ying.lee@canonical.com
Signed-off-by: Kuan-Ying Lee <kuan-ying.lee@canonical.com>
Cc: Jan Kiszka <jan.kiszka@siemens.com>
Cc: Kieran Bingham <kbingham@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
scripts/gdb/linux/kasan.py [new file with mode: 0644]
scripts/gdb/vmlinux-gdb.py