tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git sched/idle head: 6c9039a17a6d1a826c0fbea87d3ba8de7e2fecf9 commit: a0130fa655b88bc8ff1bb964f8602a7e928eb63e [17/50] objtool/idle: Validate __cpuidle code as noinstr config: x86_64-randconfig-a011-20220124 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=a0130fa655b88bc8ff1bb964f8602a7e928eb63e 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 a0130fa655b88bc8ff1bb964f8602a7e928eb63e # 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+0x25: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: __wrgsbase_inactive+0x2a: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: exc_double_fault+0x38: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: fixup_bad_iret+0x7a: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: exc_debug+0x2f: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: noist_exc_debug+0x2d: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: exc_nmi+0x48: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: poke_int3_handler+0x32: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: mce_check_crashing_cpu+0x11: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: do_machine_check+0x53: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: exc_machine_check+0x3f: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: noist_exc_machine_check+0x3d: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: exc_page_fault+0x2e: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: irqentry_nmi_enter+0x4c: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: irqentry_nmi_exit+0x40: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: enter_from_user_mode+0x5c: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: syscall_enter_from_user_mode+0x61: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: syscall_enter_from_user_mode_prepare+0x5c: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: irqentry_enter_from_user_mode+0x5c: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: irqentry_exit+0x2d: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: context_tracking_recursion_enter+0x30: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: __ct_user_exit+0x43: call to __kasan_check_write() leaves .noinstr.text section vmlinux.o: warning: objtool: __ct_user_enter+0x30: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: __halt+0x26: call to hcall_func.constprop.0() leaves .noinstr.text section vmlinux.o: warning: objtool: tdx_safe_halt+0x2e: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: default_idle+0x4: call to arch_safe_halt() 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+0x81: call to current_set_polling_and_test() leaves .noinstr.text section >> vmlinux.o: warning: objtool: cpu_idle_poll.isra.0+0x80: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: default_idle_call+0x8b: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: intel_idle+0x91: call to current_set_polling_and_test() leaves .noinstr.text section vmlinux.o: warning: objtool: intel_idle_s2idle+0xb5: call to fpu_idle_fpregs() 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: intel_idle_irq+0x2a: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: intel_idle_ibrs+0x13: call to sched_smt_active() leaves .noinstr.text section objdump-func vmlinux.o cpu_idle_poll.isra.0: 0000 00000000000002b0 : 0000 2b0: 55 push %rbp 0001 2b1: 48 89 e5 mov %rsp,%rbp 0004 2b4: 53 push %rbx 0005 2b5: 90 nop 0006 2b6: 31 ff xor %edi,%edi 0008 2b8: e8 00 00 00 00 call 2bd 2b9: R_X86_64_PC32 .text+0x29189c 000d 2bd: e8 00 00 00 00 call 2c2 2be: R_X86_64_PLT32 stop_critical_timings-0x4 0012 2c2: 8b 15 00 00 00 00 mov 0x0(%rip),%edx # 2c8 2c4: R_X86_64_PC32 debug_locks-0x4 0018 2c8: 85 d2 test %edx,%edx 001a 2ca: 74 0e je 2da 001c 2cc: 8b 05 00 00 00 00 mov 0x0(%rip),%eax # 2d2 2ce: R_X86_64_PC32 lockdep_recursion-0x4 0022 2d2: 85 c0 test %eax,%eax 0024 2d4: 0f 84 17 01 00 00 je 3f1 002a 2da: 31 f6 xor %esi,%esi 002c 2dc: 31 c9 xor %ecx,%ecx 002e 2de: 31 d2 xor %edx,%edx 0030 2e0: 48 c7 c7 00 00 00 00 mov $0x0,%rdi 2e3: R_X86_64_32S _ftrace_annotated_branch+0x2c5b0 0037 2e7: e8 00 00 00 00 call 2ec 2e8: R_X86_64_PLT32 ftrace_likely_update-0x4 003c 2ec: 31 f6 xor %esi,%esi 003e 2ee: 31 c9 xor %ecx,%ecx 0040 2f0: 31 d2 xor %edx,%edx 0042 2f2: 48 c7 c7 00 00 00 00 mov $0x0,%rdi 2f5: R_X86_64_32S _ftrace_annotated_branch+0x2c580 0049 2f9: e8 00 00 00 00 call 2fe 2fa: R_X86_64_PLT32 ftrace_likely_update-0x4 004e 2fe: e8 00 00 00 00 call 303 2ff: R_X86_64_PLT32 trace_hardirqs_on_prepare-0x4 0053 303: e8 00 00 00 00 call 308 304: R_X86_64_PLT32 lockdep_hardirqs_on_prepare-0x4 0058 308: 90 nop 0059 309: 48 c7 c7 00 00 00 00 mov $0x0,%rdi 30c: R_X86_64_32S .cpuidle.text+0x2ee 0060 310: e8 00 00 00 00 call 315 311: R_X86_64_PLT32 lockdep_hardirqs_on-0x4 0065 315: 48 8b 1d 00 00 00 00 mov 0x0(%rip),%rbx # 31c 318: R_X86_64_PC32 pv_ops+0xfc 006c 31c: 31 f6 xor %esi,%esi 006e 31e: 48 c7 c7 00 00 00 00 mov $0x0,%rdi 321: R_X86_64_32S _ftrace_annotated_branch+0x2c820 0075 325: 48 85 db test %rbx,%rbx 0078 328: 40 0f 94 c6 sete %sil 007c 32c: 31 c9 xor %ecx,%ecx 007e 32e: 31 d2 xor %edx,%edx 0080 330: e8 00 00 00 00 call 335 331: R_X86_64_PLT32 ftrace_likely_update-0x4 0085 335: 48 85 db test %rbx,%rbx 0088 338: 0f 84 e4 00 00 00 je 422 008e 33e: ff 15 00 00 00 00 call *0x0(%rip) # 344 340: R_X86_64_PC32 pv_ops+0xfc 0094 344: 48 8b 1c 25 00 00 00 00 mov 0x0,%rbx 348: R_X86_64_32S current_task 009c 34c: eb 15 jmp 363 009e 34e: 8b 05 00 00 00 00 mov 0x0(%rip),%eax # 354 350: R_X86_64_PC32 .data..read_mostly+0x2be0 00a4 354: 85 c0 test %eax,%eax 00a6 356: 75 09 jne 361 00a8 358: e8 00 00 00 00 call 35d 359: R_X86_64_PC32 .text+0x29086c 00ad 35d: 85 c0 test %eax,%eax 00af 35f: 74 0e je 36f 00b1 361: f3 90 pause 00b3 363: 48 89 df mov %rbx,%rdi 00b6 366: e8 00 00 00 00 call 36b 367: R_X86_64_PC32 .text+0x291a8c 00bb 36b: 85 c0 test %eax,%eax 00bd 36d: 74 df je 34e 00bf 36f: 48 8b 1d 00 00 00 00 mov 0x0(%rip),%rbx # 376 372: R_X86_64_PC32 pv_ops+0xf4 00c6 376: 31 f6 xor %esi,%esi 00c8 378: 48 c7 c7 00 00 00 00 mov $0x0,%rdi 37b: R_X86_64_32S _ftrace_annotated_branch+0x2c850 00cf 37f: 48 85 db test %rbx,%rbx 00d2 382: 40 0f 94 c6 sete %sil 00d6 386: 31 c9 xor %ecx,%ecx 00d8 388: 31 d2 xor %edx,%edx 00da 38a: e8 00 00 00 00 call 38f 38b: R_X86_64_PLT32 ftrace_likely_update-0x4 00df 38f: 48 85 db test %rbx,%rbx 00e2 392: 0f 84 8d 00 00 00 je 425 00e8 398: ff 15 00 00 00 00 call *0x0(%rip) # 39e 39a: R_X86_64_PC32 pv_ops+0xf4 00ee 39e: 48 c7 c7 00 00 00 00 mov $0x0,%rdi 3a1: R_X86_64_32S .cpuidle.text+0x398 00f5 3a5: e8 00 00 00 00 call 3aa 3a6: R_X86_64_PLT32 lockdep_hardirqs_off-0x4 00fa 3aa: 90 nop 00fb 3ab: e8 00 00 00 00 call 3b0 3ac: R_X86_64_PLT32 start_critical_timings-0x4 0100 3b0: bf ff ff ff ff mov $0xffffffff,%edi 0105 3b5: e8 00 00 00 00 call 3ba 3b6: R_X86_64_PC32 .text+0x29189c 010a 3ba: e8 00 00 00 00 call 3bf 3bb: R_X86_64_PLT32 trace_hardirqs_on-0x4 010f 3bf: 48 8b 1d 00 00 00 00 mov 0x0(%rip),%rbx # 3c6 3c2: R_X86_64_PC32 pv_ops+0xfc 0116 3c6: 31 f6 xor %esi,%esi 0118 3c8: 48 c7 c7 00 00 00 00 mov $0x0,%rdi 3cb: R_X86_64_32S _ftrace_annotated_branch+0x2c820 011f 3cf: 48 85 db test %rbx,%rbx 0122 3d2: 40 0f 94 c6 sete %sil 0126 3d6: 31 c9 xor %ecx,%ecx 0128 3d8: 31 d2 xor %edx,%edx 012a 3da: e8 00 00 00 00 call 3df 3db: R_X86_64_PLT32 ftrace_likely_update-0x4 012f 3df: 48 85 db test %rbx,%rbx 0132 3e2: 74 44 je 428 0134 3e4: ff 15 00 00 00 00 call *0x0(%rip) # 3ea 3e6: R_X86_64_PC32 pv_ops+0xfc 013a 3ea: 90 nop 013b 3eb: 48 8b 5d f8 mov -0x8(%rbp),%rbx 013f 3ef: c9 leave 0140 3f0: c3 ret 0141 3f1: 8b 05 00 00 00 00 mov 0x0(%rip),%eax # 3f7 3f3: R_X86_64_PC32 hardirqs_enabled-0x4 0147 3f7: 85 c0 test %eax,%eax 0149 3f9: 0f 84 db fe ff ff je 2da 014f 3ff: 31 c9 xor %ecx,%ecx 0151 401: 31 d2 xor %edx,%edx 0153 403: be 01 00 00 00 mov $0x1,%esi 0158 408: 48 c7 c7 00 00 00 00 mov $0x0,%rdi 40b: R_X86_64_32S _ftrace_annotated_branch+0x2c5b0 015f 40f: e8 00 00 00 00 call 414 410: R_X86_64_PLT32 ftrace_likely_update-0x4 0164 414: 90 nop 0165 415: 0f 0b ud2 0167 417: 90 nop 0168 418: be 01 00 00 00 mov $0x1,%esi 016d 41d: e9 cc fe ff ff jmp 2ee 0172 422: 90 nop 0173 423: 0f 0b ud2 0175 425: 90 nop 0176 426: 0f 0b ud2 0178 428: 90 nop 0179 429: 0f 0b ud2 017b 42b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) -- 0-DAY CI Kernel Test Service https://01.org/lkp