]> git.baikalelectronics.ru Git - kernel.git/commit
objtool,x86: Teach decode about LOOP* instructions
authorPeter Zijlstra <peterz@infradead.org>
Wed, 7 Sep 2022 09:01:20 +0000 (11:01 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Thu, 15 Sep 2022 14:13:55 +0000 (16:13 +0200)
commitcc8ca282811b43d188b5c379bb705b8f9cd864ae
treedbdcab15e010dd846a7c8504838392f4a71b2111
parent3b2e4882f8e58c56f8bb25a054cc781c0263b155
objtool,x86: Teach decode about LOOP* instructions

When 'discussing' control flow Masami mentioned the LOOP* instructions
and I realized objtool doesn't decode them properly.

As it turns out, these instructions are somewhat inefficient and as
such unlikely to be emitted by the compiler (a few vmlinux.o checks
can't find a single one) so this isn't critical, but still, best to
decode them properly.

Reported-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/Yxhd4EMKyoFoH9y4@hirez.programming.kicks-ass.net
tools/objtool/arch/x86/decode.c