Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Revert "objtool: Support addition to set CFA base"

Commit 468af56a7bba ("objtool: Support addition to set CFA base") was
added as a preparatory patch for arm64 support, but that support never
came. It triggers a false positive warning on x86, so just revert it
for now.

Fixes the following warning:

vmlinux.o: warning: objtool: cdce925_regmap_i2c_write+0xdb: stack state mismatch: cfa1=4+120 cfa2=5+40

Fixes: 468af56a7bba ("objtool: Support addition to set CFA base")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/oe-kbuild-all/202304080538.j5G6h1AB-lkp@intel.com/

authored by

Josh Poimboeuf and committed by
Peter Zijlstra
e18398e8 f571da05

-11
-11
tools/objtool/check.c
··· 3002 3002 break; 3003 3003 } 3004 3004 3005 - if (!cfi->drap && op->src.reg == CFI_SP && 3006 - op->dest.reg == CFI_BP && cfa->base == CFI_SP && 3007 - check_reg_frame_pos(&regs[CFI_BP], -cfa->offset + op->src.offset)) { 3008 - 3009 - /* lea disp(%rsp), %rbp */ 3010 - cfa->base = CFI_BP; 3011 - cfa->offset -= op->src.offset; 3012 - cfi->bp_scratch = false; 3013 - break; 3014 - } 3015 - 3016 3005 if (op->src.reg == CFI_SP && cfa->base == CFI_SP) { 3017 3006 3018 3007 /* drap: lea disp(%rsp), %drap */