Re: [PATCH 03/30] thread_info: tif_need_resched() now takes resched_t as param

From: kernel test robot
Date: Tue Feb 13 2024 - 22:18:24 EST


Hi Ankur,

kernel test robot noticed the following build warnings:

[auto build test WARNING on paulmck-rcu/dev]
[also build test WARNING on tip/core/entry linus/master v6.8-rc4 next-20240213]
[cannot apply to tip/sched/core]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url: https://github.com/intel-lab-lkp/linux/commits/Ankur-Arora/preempt-introduce-CONFIG_PREEMPT_AUTO/20240213-140748
base: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev
patch link: https://lore.kernel.org/r/20240213055554.1802415-4-ankur.a.arora%40oracle.com
patch subject: [PATCH 03/30] thread_info: tif_need_resched() now takes resched_t as param
config: x86_64-buildonly-randconfig-002-20240213 (https://download.01.org/0day-ci/archive/20240214/202402141055.evTx8Q0K-lkp@xxxxxxxxx/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240214/202402141055.evTx8Q0K-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202402141055.evTx8Q0K-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> vmlinux.o: warning: objtool: mwait_idle+0xd: call to tif_resched.constprop.0() leaves .noinstr.text section
>> vmlinux.o: warning: objtool: poll_idle+0x2c: call to tif_resched.constprop.0() leaves .noinstr.text section


objdump-func vmlinux.o mwait_idle:
0000 0000000000000060 <mwait_idle>:
0000 60: 53 push %rbx
0001 61: 48 8b 1c 25 00 00 00 00 mov 0x0,%rbx 65: R_X86_64_32S pcpu_hot
0009 69: 80 4b 02 20 orb $0x20,0x2(%rbx)
000d 6d: e8 00 00 00 00 call 72 <mwait_idle+0x12> 6e: R_X86_64_PC32 .text+0xfe73c
0012 72: 48 63 f0 movslq %eax,%rsi
0015 75: 48 0f a3 33 bt %rsi,(%rbx)
0019 79: 72 3a jb b5 <mwait_idle+0x55>
001b 7b: 48 8b 05 00 00 00 00 mov 0x0(%rip),%rax # 82 <mwait_idle+0x22> 7e: R_X86_64_PC32 boot_cpu_data+0x6c
0022 82: 48 0f ba e0 27 bt $0x27,%rax
0027 87: 72 46 jb cf <mwait_idle+0x6f>
0029 89: 31 d2 xor %edx,%edx
002b 8b: 48 89 d8 mov %rbx,%rax
002e 8e: 48 89 d1 mov %rdx,%rcx
0031 91: 0f 01 c8 monitor %rax,%ecx,%edx
0034 94: 48 0f a3 33 bt %rsi,(%rbx)
0038 98: 72 1b jb b5 <mwait_idle+0x55>
003a 9a: 8b 05 00 00 00 00 mov 0x0(%rip),%eax # a0 <mwait_idle+0x40> 9c: R_X86_64_PC32 mds_idle_clear-0x4
0040 a0: 85 c0 test %eax,%eax
0042 a2: 7e 07 jle ab <mwait_idle+0x4b>
0044 a4: 0f 00 2d 00 00 00 00 verw 0x0(%rip) # ab <mwait_idle+0x4b> a7: R_X86_64_PC32 .rodata+0x15cd2
004b ab: 31 c0 xor %eax,%eax
004d ad: 48 89 c1 mov %rax,%rcx
0050 b0: fb sti
0051 b1: 0f 01 c9 mwait %eax,%ecx
0054 b4: fa cli
0055 b5: 48 8b 04 25 00 00 00 00 mov 0x0,%rax b9: R_X86_64_32S pcpu_hot
005d bd: 80 60 02 df andb $0xdf,0x2(%rax)
0061 c1: 5b pop %rbx
0062 c2: 31 c0 xor %eax,%eax
0064 c4: 31 d2 xor %edx,%edx
0066 c6: 31 c9 xor %ecx,%ecx
0068 c8: 31 f6 xor %esi,%esi
006a ca: e9 00 00 00 00 jmp cf <mwait_idle+0x6f> cb: R_X86_64_PLT32 __x86_return_thunk-0x4
006f cf: 0f ae f0 mfence
0072 d2: 0f ae 3b clflush (%rbx)
0075 d5: 0f ae f0 mfence
0078 d8: eb af jmp 89 <mwait_idle+0x29>
007a da: 66 0f 1f 44 00 00 nopw 0x0(%rax,%rax,1)

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