[RFC PATCH 3/3] arm64: stacktrace: Implement reliable stacktrace

Mark Brown broonie at kernel.org
Tue Oct 13 06:42:26 EDT 2020


On Mon, Oct 12, 2020 at 06:26:05PM +0100, Mark Brown wrote:

> +#ifdef CONFIG_KPROBES
> +		/*
> +		 * Mark stacktraces with kretprobed functions on them
> +		 * as unreliable.
> +		 */
> +		if (frame.pc == (unsigned long)kretprobe_trampoline)
> +			return -EINVAL;
> +#endif

Sorry, I forgot to say in the cover letter that this needs to have
handling for PAC adding, I was looking at how the trace code handles PAC
more generally and this is only an RFC so didn't finish that bit off.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20201013/41c900e7/attachment.sig>


More information about the linux-arm-kernel mailing list