Re: [PATCH 16/21] x86/ftrace: Support objtool vmlinux.o validation in ftrace_64.S

2021-01-14 Thread Steven Rostedt
On Thu, 14 Jan 2021 13:40:12 -0600 Josh Poimboeuf wrote: > With objtool vmlinux.o validation of return_to_handler(), now that > objtool has visibility inside the retpoline, jumping from EMPTY state to > a proper function state results in a stack state mismatch. > > return_to_handler() is actuall

[PATCH 16/21] x86/ftrace: Support objtool vmlinux.o validation in ftrace_64.S

2021-01-14 Thread Josh Poimboeuf
With objtool vmlinux.o validation of return_to_handler(), now that objtool has visibility inside the retpoline, jumping from EMPTY state to a proper function state results in a stack state mismatch. return_to_handler() is actually quite normal despite the underlying magic. Just annotate it as a n