lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Date:   Sun, 9 Oct 2022 03:00:22 +0800
From:   kernel test robot <lkp@...el.com>
To:     Peter Zijlstra <peterz@...radead.org>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [peterz-queue:sched/idle 17/50] vmlinux.o: warning: objtool:
 cpu_idle_poll.isra.0+0x80: call to ftrace_likely_update() leaves
 .noinstr.text section

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 <lkp@...el.com>

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 <cpu_idle_poll.isra.0>:
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 <cpu_idle_poll.isra.0+0xd>	2b9: R_X86_64_PC32	.text+0x29189c
000d  2bd:	e8 00 00 00 00       	call   2c2 <cpu_idle_poll.isra.0+0x12>	2be: R_X86_64_PLT32	stop_critical_timings-0x4
0012  2c2:	8b 15 00 00 00 00    	mov    0x0(%rip),%edx        # 2c8 <cpu_idle_poll.isra.0+0x18>	2c4: R_X86_64_PC32	debug_locks-0x4
0018  2c8:	85 d2                	test   %edx,%edx
001a  2ca:	74 0e                	je     2da <cpu_idle_poll.isra.0+0x2a>
001c  2cc:	8b 05 00 00 00 00    	mov    0x0(%rip),%eax        # 2d2 <cpu_idle_poll.isra.0+0x22>	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 <cpu_idle_poll.isra.0+0x141>
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 <cpu_idle_poll.isra.0+0x3c>	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 <cpu_idle_poll.isra.0+0x4e>	2fa: R_X86_64_PLT32	ftrace_likely_update-0x4
004e  2fe:	e8 00 00 00 00       	call   303 <cpu_idle_poll.isra.0+0x53>	2ff: R_X86_64_PLT32	trace_hardirqs_on_prepare-0x4
0053  303:	e8 00 00 00 00       	call   308 <cpu_idle_poll.isra.0+0x58>	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 <cpu_idle_poll.isra.0+0x65>	311: R_X86_64_PLT32	lockdep_hardirqs_on-0x4
0065  315:	48 8b 1d 00 00 00 00 	mov    0x0(%rip),%rbx        # 31c <cpu_idle_poll.isra.0+0x6c>	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 <cpu_idle_poll.isra.0+0x85>	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 <cpu_idle_poll.isra.0+0x172>
008e  33e:	ff 15 00 00 00 00    	call   *0x0(%rip)        # 344 <cpu_idle_poll.isra.0+0x94>	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 <cpu_idle_poll.isra.0+0xb3>
009e  34e:	8b 05 00 00 00 00    	mov    0x0(%rip),%eax        # 354 <cpu_idle_poll.isra.0+0xa4>	350: R_X86_64_PC32	.data..read_mostly+0x2be0
00a4  354:	85 c0                	test   %eax,%eax
00a6  356:	75 09                	jne    361 <cpu_idle_poll.isra.0+0xb1>
00a8  358:	e8 00 00 00 00       	call   35d <cpu_idle_poll.isra.0+0xad>	359: R_X86_64_PC32	.text+0x29086c
00ad  35d:	85 c0                	test   %eax,%eax
00af  35f:	74 0e                	je     36f <cpu_idle_poll.isra.0+0xbf>
00b1  361:	f3 90                	pause
00b3  363:	48 89 df             	mov    %rbx,%rdi
00b6  366:	e8 00 00 00 00       	call   36b <cpu_idle_poll.isra.0+0xbb>	367: R_X86_64_PC32	.text+0x291a8c
00bb  36b:	85 c0                	test   %eax,%eax
00bd  36d:	74 df                	je     34e <cpu_idle_poll.isra.0+0x9e>
00bf  36f:	48 8b 1d 00 00 00 00 	mov    0x0(%rip),%rbx        # 376 <cpu_idle_poll.isra.0+0xc6>	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 <cpu_idle_poll.isra.0+0xdf>	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 <cpu_idle_poll.isra.0+0x175>
00e8  398:	ff 15 00 00 00 00    	call   *0x0(%rip)        # 39e <cpu_idle_poll.isra.0+0xee>	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 <cpu_idle_poll.isra.0+0xfa>	3a6: R_X86_64_PLT32	lockdep_hardirqs_off-0x4
00fa  3aa:	90                   	nop
00fb  3ab:	e8 00 00 00 00       	call   3b0 <cpu_idle_poll.isra.0+0x100>	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 <cpu_idle_poll.isra.0+0x10a>	3b6: R_X86_64_PC32	.text+0x29189c
010a  3ba:	e8 00 00 00 00       	call   3bf <cpu_idle_poll.isra.0+0x10f>	3bb: R_X86_64_PLT32	trace_hardirqs_on-0x4
010f  3bf:	48 8b 1d 00 00 00 00 	mov    0x0(%rip),%rbx        # 3c6 <cpu_idle_poll.isra.0+0x116>	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 <cpu_idle_poll.isra.0+0x12f>	3db: R_X86_64_PLT32	ftrace_likely_update-0x4
012f  3df:	48 85 db             	test   %rbx,%rbx
0132  3e2:	74 44                	je     428 <cpu_idle_poll.isra.0+0x178>
0134  3e4:	ff 15 00 00 00 00    	call   *0x0(%rip)        # 3ea <cpu_idle_poll.isra.0+0x13a>	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 <cpu_idle_poll.isra.0+0x147>	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 <cpu_idle_poll.isra.0+0x2a>
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 <cpu_idle_poll.isra.0+0x164>	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 <cpu_idle_poll.isra.0+0x3e>
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

View attachment "config" of type "text/plain" (148776 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ