Re: [PATCH v2 03/24] objtool: Handle __sanitize_cov*() tail calls

Steven Rostedt
2021-06-29T01:08:05Z

On Sat, 26 Jun 2021 10:18:12 +0200
Peter Zijlstra <peterz@infradead.org> wrote:

> > > + if (mcount && !strcmp(insn->call_dest->name, "__fentry__")) {
> > > + if (sibling)
> > > + WARN_FUNC("Tail call to __fentry__ !?!?", insn->sec, insn->offset);
> >
> > Have you ever triggered the above?
>
> No, that would be really daft. But since this function is to be called
> for both regular and tail calls, I figured I'd at least pretend to
> handle the case.

OK. I thought this was like one of those weird laws that were made
because you know that someone did something really stupid once.

-- Steve