tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git sched/idle head: 18754d54fbf30160b7cbbd23d4f0199f051a8bae commit: 4857f5e9086c1b6d09605b69cb62333dc375f1f6 [17/50] objtool/idle: Validate __cpuidle code as noinstr config: x86_64-randconfig-r013-20221003 compiler: gcc-11 (Debian 11.3.0-5) 11.3.0 reproduce (this is a W=1 build): # https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?id=4857f5e9086c1b6d09605b69cb62333dc375f1f6 git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git git fetch --no-tags peterz-queue sched/idle git checkout 4857f5e9086c1b6d09605b69cb62333dc375f1f6 # save the config file mkdir build_dir && cp config build_dir/.config make 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 All warnings (new ones prefixed by >>): vmlinux.o: warning: objtool: __rdgsbase_inactive+0x32: 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: fixup_bad_iret+0x84: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: noist_exc_debug+0x4c: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: exc_nmi+0xbc: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: poke_int3_handler+0x47: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: mce_check_crashing_cpu+0xd: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: do_machine_check+0x62: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: exc_machine_check+0x4e: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: irqentry_nmi_enter+0x45: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: irqentry_nmi_exit+0x57: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: enter_from_user_mode+0x57: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: syscall_enter_from_user_mode+0x5c: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: syscall_enter_from_user_mode_prepare+0x57: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: irqentry_enter_from_user_mode+0x57: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: irqentry_exit+0x3a: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: __halt+0x28: call to hcall_func.constprop.0() leaves .noinstr.text section >> vmlinux.o: warning: objtool: tdx_safe_halt+0x30: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: default_idle+0x0: call to mds_idle_clear_cpu_buffers() leaves .noinstr.text section vmlinux.o: warning: objtool: mwait_idle+0x2: call to current_set_polling_and_test() leaves .noinstr.text section vmlinux.o: warning: objtool: acpi_processor_ffh_cstate_enter+0x20: call to current_set_polling_and_test() leaves .noinstr.text section vmlinux.o: warning: objtool: cpu_idle_poll.isra.0+0x7c: call to test_ti_thread_flag.constprop.0() leaves .noinstr.text section vmlinux.o: warning: objtool: intel_idle+0x31: call to current_set_polling_and_test() leaves .noinstr.text section vmlinux.o: warning: objtool: intel_idle_s2idle+0x37: call to current_set_polling_and_test() leaves .noinstr.text section vmlinux.o: warning: objtool: intel_idle_xstate+0xd: call to fpu_idle_fpregs() leaves .noinstr.text section vmlinux.o: warning: objtool: intel_idle_ibrs+0xe: call to sched_smt_active() leaves .noinstr.text section vmlinux.o: warning: objtool: intel_idle_irq+0x32: call to current_set_polling_and_test() leaves .noinstr.text section vmlinux.o: warning: objtool: acpi_safe_halt+0x8: call to test_ti_thread_flag.constprop.0() leaves .noinstr.text section vmlinux.o: warning: objtool: io_idle+0x3: call to __inb.isra.0() leaves .noinstr.text section vmlinux.o: warning: objtool: acpi_idle_enter_s2idle+0x4f: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: acpi_idle_enter+0x48: call to ftrace_likely_update() leaves .noinstr.text section objdump-func vmlinux.o tdx_safe_halt: 0000 0000000000000065 : 0000 65: 55 push %rbp 0001 66: 31 ff xor %edi,%edi 0003 68: be 01 00 00 00 mov $0x1,%esi 0008 6d: 53 push %rbx 0009 6e: e8 8d ff ff ff call 0 <__halt> 000e 73: 48 85 c0 test %rax,%rax 0011 76: 0f 84 9b 00 00 00 je 117 0017 7c: 8a 1d 00 00 00 00 mov 0x0(%rip),%bl # 82 7e: R_X86_64_PC32 .data.once-0x2 001d 82: 31 c9 xor %ecx,%ecx 001f 84: 31 d2 xor %edx,%edx 0021 86: 48 c7 c7 00 00 00 00 mov $0x0,%rdi 89: R_X86_64_32S _ftrace_annotated_branch+0x7e0 0028 8d: 83 f3 01 xor $0x1,%ebx 002b 90: 0f b6 eb movzbl %bl,%ebp 002e 93: 89 ee mov %ebp,%esi 0030 95: e8 00 00 00 00 call 9a 96: R_X86_64_PLT32 ftrace_likely_update-0x4 0035 9a: 84 db test %bl,%bl 0037 9c: 74 07 je a5 0039 9e: c6 05 00 00 00 00 01 movb $0x1,0x0(%rip) # a5 a0: R_X86_64_PC32 .data.once-0x3 0040 a5: 31 c9 xor %ecx,%ecx 0042 a7: 31 d2 xor %edx,%edx 0044 a9: 89 ee mov %ebp,%esi 0046 ab: 48 c7 c7 00 00 00 00 mov $0x0,%rdi ae: R_X86_64_32S _ftrace_annotated_branch+0x7b0 004d b2: e8 00 00 00 00 call b7 b3: R_X86_64_PLT32 ftrace_likely_update-0x4 0052 b7: 84 db test %bl,%bl 0054 b9: 74 42 je fd 0056 bb: b9 01 00 00 00 mov $0x1,%ecx 005b c0: 31 d2 xor %edx,%edx 005d c2: be 01 00 00 00 mov $0x1,%esi 0062 c7: 48 c7 c7 00 00 00 00 mov $0x0,%rdi ca: R_X86_64_32S _ftrace_annotated_branch+0x780 0069 ce: e8 00 00 00 00 call d3 cf: R_X86_64_PLT32 ftrace_likely_update-0x4 006e d3: 90 nop 006f d4: 48 c7 c7 00 00 00 00 mov $0x0,%rdi d7: R_X86_64_32S .rodata+0x4080 0076 db: e8 00 00 00 00 call e0 dc: R_X86_64_PLT32 __warn_printk-0x4 007b e0: 90 nop 007c e1: 0f 0b ud2 007e e3: 90 nop 007f e4: 90 nop 0080 e5: b9 01 00 00 00 mov $0x1,%ecx 0085 ea: 31 d2 xor %edx,%edx 0087 ec: be 01 00 00 00 mov $0x1,%esi 008c f1: 48 c7 c7 00 00 00 00 mov $0x0,%rdi f4: R_X86_64_32S _ftrace_annotated_branch+0x750 0093 f8: e8 00 00 00 00 call fd f9: R_X86_64_PLT32 ftrace_likely_update-0x4 0098 fd: 5b pop %rbx 0099 fe: b9 01 00 00 00 mov $0x1,%ecx 009e 103: 31 d2 xor %edx,%edx 00a0 105: be 01 00 00 00 mov $0x1,%esi 00a5 10a: 48 c7 c7 00 00 00 00 mov $0x0,%rdi 10d: R_X86_64_32S _ftrace_annotated_branch+0x720 00ac 111: 5d pop %rbp 00ad 112: e9 00 00 00 00 jmp 117 113: R_X86_64_PLT32 ftrace_likely_update-0x4 00b2 117: 5b pop %rbx 00b3 118: 5d pop %rbp 00b4 119: e9 00 00 00 00 jmp 11e 11a: R_X86_64_PLT32 __x86_return_thunk-0x4 -- 0-DAY CI Kernel Test Service https://01.org/lkp