[PATCH 1/2] arm64: stacktrace: Check kretprobe_find_ret_addr() return value

Song Liu song at kernel.org
Wed May 21 09:35:58 PDT 2025


On Wed, May 21, 2025 at 4:10 AM Mark Rutland <mark.rutland at arm.com> wrote:
>
> If kretprobe_find_ret_addr() fails to find the original return address,
> it returns 0. Check for this case so that a reliable stacktrace won't
> silently ignore it.
>
> Signed-off-by: Mark Rutland <mark.rutland at arm.com>
> Cc: Andrea della Porta <andrea.porta at suse.com>
> Cc: Breno Leitao <leitao at debian.org>
> Cc: Catalin Marinas <catalin.marinas at arm.com>
> Cc: Josh Poimboeuf <jpoimboe at kernel.org>
> Cc: Miroslav Benes <mbenes at suse.cz>
> Cc: Petr Mladek <pmladek at suse.com>
> Cc: Song Liu <song at kernel.org>
> Cc: Will Deacon <will at kernel.org>

Reviewed-and-tested-by: Song Liu <song at kernel.org>

Tested with livepatch changes [1][2] and modified kpatch
framework.

Thanks,
Song

[1] https://lore.kernel.org/live-patching/20250320171559.3423224-3-song@kernel.org/
[2] https://lore.kernel.org/linux-arm-kernel/20250412010940.1686376-1-dylanbhatch@google.com/



More information about the linux-arm-kernel mailing list