Re: [PATCH 15/20] objtool: Add --backtrace support

From: Josh Poimboeuf
Date: Fri Mar 08 2019 - 14:33:14 EST


On Thu, Mar 07, 2019 at 12:45:26PM +0100, Peter Zijlstra wrote:
> For when you want to know the path that reached your fail state.
>
> $ ./objtool check --no-fp --backtrace arch/x86/lib/usercopy_64.o
> arch/x86/lib/usercopy_64.o: warning: objtool: .altinstr_replacement+0x3: UACCESS disable without MEMOPs: __clear_user()
> arch/x86/lib/usercopy_64.o: warning: objtool: __clear_user()+0x3a: (alt)
> arch/x86/lib/usercopy_64.o: warning: objtool: __clear_user()+0x2e: (branch)
> arch/x86/lib/usercopy_64.o: warning: objtool: __clear_user()+0x18: (branch)
> arch/x86/lib/usercopy_64.o: warning: objtool: .altinstr_replacement+0xffffffffffffffff: (branch)
> arch/x86/lib/usercopy_64.o: warning: objtool: __clear_user()+0x5: (alt)
> arch/x86/lib/usercopy_64.o: warning: objtool: __clear_user()+0x0: <=== (func)

We should have done this a long time ago. Thank you for this!

--
Josh