[RFC PATCH 0/3] arm64: Implement reliable stack trace
Madhavan T. Venkataraman
madvenka at linux.microsoft.com
Tue Feb 2 08:35:21 EST 2021
On 2/2/21 4:05 AM, Mark Rutland wrote:
>> Objtool has to follow all the code paths to check every single possible return
>> as I mentioned above.
> Here I was pointing out that in order to do so you need to decode and
> reason about more than NOP, RET, STP, and LDP, and you need to reason
> about the logical function of an instruction (e.g. here the last LDP is
> emulating a RET).
>
Agreed. In addition to the instructions I pointed out, the other control transfer
instruction(s) like branches (but not calls) should be decoded.
Madhavan
More information about the linux-arm-kernel
mailing list