oe-kbuild-all.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* vmlinux.o: warning: objtool: tdx_safe_halt+0x30: call to ftrace_likely_update() leaves .noinstr.text section
@ 2023-03-05 23:08 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-03-05 23:08 UTC (permalink / raw)
  Cc: oe-kbuild-all, llvm

CC: linux-kernel@vger.kernel.org
TO: Peter Zijlstra <peterz@infradead.org>
CC: Ingo Molnar <mingo@kernel.org>

Hi Peter,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   f915322fe014c5c515119381e886faf07b3c9d31
commit: 2b5a0e425e6e319b1978db1e9564f6af4228a567 objtool/idle: Validate __cpuidle code as noinstr
date:   7 weeks ago
config: x86_64-randconfig-a011-20230306 (https://download.01.org/0day-ci/archive/20230306/202303060700.eybH3HNx-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=2b5a0e425e6e319b1978db1e9564f6af4228a567
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 2b5a0e425e6e319b1978db1e9564f6af4228a567
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202303060700.eybH3HNx-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> vmlinux.o: warning: objtool: tdx_safe_halt+0x30: call to ftrace_likely_update() leaves .noinstr.text section
   vmlinux.o: warning: objtool: __halt+0x2e: call to __tdx_hypercall() leaves .noinstr.text section
   vmlinux.o: warning: objtool: mwait_idle+0x5: call to current_set_polling_and_test() leaves .noinstr.text section
   vmlinux.o: warning: objtool: acpi_processor_ffh_cstate_enter+0x130: call to __kasan_check_write() leaves .noinstr.text section
   vmlinux.o: warning: objtool: cpu_idle_poll+0x8c: call to test_ti_thread_flag() leaves .noinstr.text section
   vmlinux.o: warning: objtool: intel_idle+0x114: call to __kasan_check_write() leaves .noinstr.text section
   vmlinux.o: warning: objtool: intel_idle_s2idle+0x120: call to __kasan_check_write() leaves .noinstr.text section
   vmlinux.o: warning: objtool: intel_idle_irq+0x13b: call to __kasan_check_write() leaves .noinstr.text section
   vmlinux.o: warning: objtool: intel_idle_ibrs+0x12: call to spec_ctrl_current() leaves .noinstr.text section
   vmlinux.o: warning: objtool: intel_idle_xstate+0x12: call to fpu_idle_fpregs() leaves .noinstr.text section
   vmlinux.o: warning: objtool: __rdgsbase_inactive+0x33: call to ftrace_likely_update() leaves .noinstr.text section
   vmlinux.o: warning: objtool: __wrgsbase_inactive+0x37: call to ftrace_likely_update() leaves .noinstr.text section
   vmlinux.o: warning: objtool: sync_regs+0x23: call to memcpy() leaves .noinstr.text section
   vmlinux.o: warning: objtool: fixup_bad_iret+0x25: call to memset() leaves .noinstr.text section
   vmlinux.o: warning: objtool: noist_exc_debug+0x45: call to ftrace_likely_update() leaves .noinstr.text section
   vmlinux.o: warning: objtool: exc_nmi+0xc9: call to ftrace_likely_update() leaves .noinstr.text section
   vmlinux.o: warning: objtool: poke_int3_handler+0x3b: call to ftrace_likely_update() leaves .noinstr.text section
   vmlinux.o: warning: objtool: do_machine_check+0x54: call to ftrace_likely_update() leaves .noinstr.text section
   vmlinux.o: warning: objtool: exc_machine_check+0x59: call to ftrace_likely_update() leaves .noinstr.text section
   vmlinux.o: warning: objtool: mce_check_crashing_cpu+0x10: call to ftrace_likely_update() leaves .noinstr.text section
   vmlinux.o: warning: objtool: enter_from_user_mode+0x48: call to ftrace_likely_update() leaves .noinstr.text section
   vmlinux.o: warning: objtool: syscall_enter_from_user_mode+0x51: call to ftrace_likely_update() leaves .noinstr.text section
   vmlinux.o: warning: objtool: syscall_enter_from_user_mode_prepare+0x48: call to ftrace_likely_update() leaves .noinstr.text section
   vmlinux.o: warning: objtool: irqentry_enter_from_user_mode+0x48: call to ftrace_likely_update() leaves .noinstr.text section
   vmlinux.o: warning: objtool: irqentry_exit+0x40: call to ftrace_likely_update() leaves .noinstr.text section
   vmlinux.o: warning: objtool: irqentry_nmi_enter+0x44: call to ftrace_likely_update() leaves .noinstr.text section
   vmlinux.o: warning: objtool: irqentry_nmi_exit+0x4d: call to ftrace_likely_update() leaves .noinstr.text section


objdump-func vmlinux.o tdx_safe_halt:
0000 0000000000000000 <tdx_safe_halt>:
0000    0:	f3 0f 1e fa          	endbr64
0004    4:	55                   	push   %rbp
0005    5:	53                   	push   %rbx
0006    6:	31 ff                	xor    %edi,%edi
0008    8:	be 01 00 00 00       	mov    $0x1,%esi
000d    d:	e8 ae 00 00 00       	call   c0 <__halt>
0012   12:	48 85 c0             	test   %rax,%rax
0015   15:	74 31                	je     48 <tdx_safe_halt+0x48>
0017   17:	0f b6 2d 00 00 00 00 	movzbl 0x0(%rip),%ebp        # 1e <tdx_safe_halt+0x1e>	1a: R_X86_64_PC32	.data.once-0x3
001e   1e:	89 eb                	mov    %ebp,%ebx
0020   20:	83 f3 01             	xor    $0x1,%ebx
0023   23:	48 c7 c7 00 00 00 00 	mov    $0x0,%rdi	26: R_X86_64_32S	_ftrace_annotated_branch+0x780
002a   2a:	89 de                	mov    %ebx,%esi
002c   2c:	31 d2                	xor    %edx,%edx
002e   2e:	31 c9                	xor    %ecx,%ecx
0030   30:	e8 00 00 00 00       	call   35 <tdx_safe_halt+0x35>	31: R_X86_64_PLT32	ftrace_likely_update-0x4
0035   35:	85 ed                	test   %ebp,%ebp
0037   37:	74 12                	je     4b <tdx_safe_halt+0x4b>
0039   39:	48 c7 c7 00 00 00 00 	mov    $0x0,%rdi	3c: R_X86_64_32S	_ftrace_annotated_branch+0x7b0
0040   40:	89 de                	mov    %ebx,%esi
0042   42:	31 d2                	xor    %edx,%edx
0044   44:	31 c9                	xor    %ecx,%ecx
0046   46:	eb 59                	jmp    a1 <tdx_safe_halt+0xa1>
0048   48:	5b                   	pop    %rbx
0049   49:	5d                   	pop    %rbp
004a   4a:	c3                   	ret
004b   4b:	c6 05 00 00 00 00 01 	movb   $0x1,0x0(%rip)        # 52 <tdx_safe_halt+0x52>	4d: R_X86_64_PC32	.data.once-0x4
0052   52:	48 c7 c7 00 00 00 00 	mov    $0x0,%rdi	55: R_X86_64_32S	_ftrace_annotated_branch+0x7b0
0059   59:	89 de                	mov    %ebx,%esi
005b   5b:	31 d2                	xor    %edx,%edx
005d   5d:	31 c9                	xor    %ecx,%ecx
005f   5f:	e8 00 00 00 00       	call   64 <tdx_safe_halt+0x64>	60: R_X86_64_PLT32	ftrace_likely_update-0x4
0064   64:	48 c7 c7 00 00 00 00 	mov    $0x0,%rdi	67: R_X86_64_32S	_ftrace_annotated_branch+0x7e0
006b   6b:	be 01 00 00 00       	mov    $0x1,%esi
0070   70:	31 d2                	xor    %edx,%edx
0072   72:	b9 01 00 00 00       	mov    $0x1,%ecx
0077   77:	e8 00 00 00 00       	call   7c <tdx_safe_halt+0x7c>	78: R_X86_64_PLT32	ftrace_likely_update-0x4
007c   7c:	90                   	nop
007d   7d:	48 c7 c7 00 00 00 00 	mov    $0x0,%rdi	80: R_X86_64_32S	.rodata+0x4820
0084   84:	e8 00 00 00 00       	call   89 <tdx_safe_halt+0x89>	85: R_X86_64_PLT32	__warn_printk-0x4
0089   89:	90                   	nop
008a   8a:	0f 0b                	ud2
008c   8c:	90                   	nop
008d   8d:	90                   	nop
008e   8e:	48 c7 c7 00 00 00 00 	mov    $0x0,%rdi	91: R_X86_64_32S	_ftrace_annotated_branch+0x810
0095   95:	be 01 00 00 00       	mov    $0x1,%esi
009a   9a:	31 d2                	xor    %edx,%edx
009c   9c:	b9 01 00 00 00       	mov    $0x1,%ecx
00a1   a1:	e8 00 00 00 00       	call   a6 <tdx_safe_halt+0xa6>	a2: R_X86_64_PLT32	ftrace_likely_update-0x4
00a6   a6:	48 c7 c7 00 00 00 00 	mov    $0x0,%rdi	a9: R_X86_64_32S	_ftrace_annotated_branch+0x840
00ad   ad:	be 01 00 00 00       	mov    $0x1,%esi
00b2   b2:	31 d2                	xor    %edx,%edx
00b4   b4:	b9 01 00 00 00       	mov    $0x1,%ecx
00b9   b9:	5b                   	pop    %rbx
00ba   ba:	5d                   	pop    %rbp
00bb   bb:	e9 00 00 00 00       	jmp    c0 <__halt>	bc: R_X86_64_PLT32	ftrace_likely_update-0x4

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-03-05 23:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-05 23:08 vmlinux.o: warning: objtool: tdx_safe_halt+0x30: call to ftrace_likely_update() leaves .noinstr.text section kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).