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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202305251332.tLJvrr7e-lkp@intel.com>
Date:   Thu, 25 May 2023 14:08:57 +0800
From:   kernel test robot <lkp@...el.com>
To:     Peter Zijlstra <peterz@...radead.org>
Cc:     oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
        Ingo Molnar <mingo@...nel.org>
Subject: vmlinux.o: warning: objtool: local_clock+0xa6: call to
 preempt_schedule_notrace_thunk() leaves .noinstr.text section

Hi Peter,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   933174ae28ba72ab8de5b35cb7c98fc211235096
commit: 776f22913b8e50011004c6ae43004711dab7efa5 sched/clock: Make local_clock() noinstr
date:   4 months ago
config: x86_64-randconfig-x076-20230524
compiler: gcc-11 (Debian 11.3.0-12) 11.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=776f22913b8e50011004c6ae43004711dab7efa5
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 776f22913b8e50011004c6ae43004711dab7efa5
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=x86_64 olddefconfig
        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>
| Closes: https://lore.kernel.org/oe-kbuild-all/202305251332.tLJvrr7e-lkp@intel.com/

All warnings (new ones prefixed by >>):

   vmlinux.o: warning: objtool: xen_sched_clock+0x34: call to preempt_schedule_notrace_thunk() leaves .noinstr.text section
   vmlinux.o: warning: objtool: native_sched_clock+0xda: call to preempt_schedule_notrace_thunk() leaves .noinstr.text section
   vmlinux.o: warning: objtool: kvm_clock_read+0x1d: call to preempt_schedule_notrace_thunk() leaves .noinstr.text section
>> vmlinux.o: warning: objtool: local_clock+0xa6: call to preempt_schedule_notrace_thunk() leaves .noinstr.text section
   vmlinux.o: warning: objtool: enter_from_user_mode+0xba: call to preempt_count_add() leaves .noinstr.text section
   vmlinux.o: warning: objtool: syscall_enter_from_user_mode+0x108: call to preempt_count_add() leaves .noinstr.text section
   vmlinux.o: warning: objtool: syscall_enter_from_user_mode_prepare+0xdc: call to preempt_count_add() leaves .noinstr.text section
   vmlinux.o: warning: objtool: irqentry_enter_from_user_mode+0xba: call to preempt_count_add() leaves .noinstr.text section


objdump-func vmlinux.o local_clock:
0000 0000000000003b40 <local_clock>:
0000     3b40:	eb 1e                	jmp    3b60 <local_clock+0x20>
0002     3b42:	e8 00 00 00 00       	call   3b47 <local_clock+0x7>	3b43: R_X86_64_PLT32	sched_clock-0x4
0007     3b47:	48 03 05 00 00 00 00 	add    0x0(%rip),%rax        # 3b4e <local_clock+0xe>	3b4a: R_X86_64_PC32	__sched_clock_offset-0x4
000e     3b4e:	49 89 c0             	mov    %rax,%r8
0011     3b51:	4c 89 c0             	mov    %r8,%rax
0014     3b54:	31 d2                	xor    %edx,%edx
0016     3b56:	31 c9                	xor    %ecx,%ecx
0018     3b58:	31 f6                	xor    %esi,%esi
001a     3b5a:	31 ff                	xor    %edi,%edi
001c     3b5c:	45 31 c0             	xor    %r8d,%r8d
001f     3b5f:	c3                   	ret
0020     3b60:	ff 05 00 00 00 00    	incl   0x0(%rip)        # 3b66 <local_clock+0x26>	3b62: R_X86_64_PC32	pcpu_hot+0x4
0026     3b66:	e8 00 00 00 00       	call   3b6b <local_clock+0x2b>	3b67: R_X86_64_PLT32	sched_clock-0x4
002b     3b6b:	48 2b 05 00 00 00 00 	sub    0x0(%rip),%rax        # 3b72 <local_clock+0x32>	3b6e: R_X86_64_PC32	sched_clock_data-0x4
0032     3b72:	48 8b 15 00 00 00 00 	mov    0x0(%rip),%rdx        # 3b79 <local_clock+0x39>	3b75: R_X86_64_PC32	.data..read_mostly+0xd34
0039     3b79:	48 89 c1             	mov    %rax,%rcx
003c     3b7c:	b8 00 00 00 00       	mov    $0x0,%eax
0041     3b81:	48 0f 48 c8          	cmovs  %rax,%rcx
0045     3b85:	48 03 15 00 00 00 00 	add    0x0(%rip),%rdx        # 3b8c <local_clock+0x4c>	3b88: R_X86_64_PC32	sched_clock_data+0x4
004c     3b8c:	48 8b 05 00 00 00 00 	mov    0x0(%rip),%rax        # 3b93 <local_clock+0x53>	3b8f: R_X86_64_PC32	sched_clock_data+0xc
0053     3b93:	48 89 d7             	mov    %rdx,%rdi
0056     3b96:	48 89 d6             	mov    %rdx,%rsi
0059     3b99:	48 29 c7             	sub    %rax,%rdi
005c     3b9c:	4c 8d 04 11          	lea    (%rcx,%rdx,1),%r8
0060     3ba0:	48 85 ff             	test   %rdi,%rdi
0063     3ba3:	7f 09                	jg     3bae <local_clock+0x6e>
0065     3ba5:	4c 89 c1             	mov    %r8,%rcx
0068     3ba8:	48 89 c6             	mov    %rax,%rsi
006b     3bab:	48 29 c1             	sub    %rax,%rcx
006e     3bae:	48 81 c2 d5 dc 32 00 	add    $0x32dcd5,%rdx
0075     3bb5:	48 89 c7             	mov    %rax,%rdi
0078     3bb8:	48 29 d7             	sub    %rdx,%rdi
007b     3bbb:	48 85 ff             	test   %rdi,%rdi
007e     3bbe:	48 0f 4f d0          	cmovg  %rax,%rdx
0082     3bc2:	48 85 c9             	test   %rcx,%rcx
0085     3bc5:	4c 0f 4e c6          	cmovle %rsi,%r8
0089     3bc9:	49 39 d0             	cmp    %rdx,%r8
008c     3bcc:	4c 0f 49 c2          	cmovns %rdx,%r8
0090     3bd0:	4c 0f b1 05 00 00 00 00 	cmpxchg %r8,0x0(%rip)        # 3bd8 <local_clock+0x98>	3bd4: R_X86_64_PC32	sched_clock_data+0xc
0098     3bd8:	75 8c                	jne    3b66 <local_clock+0x26>
009a     3bda:	ff 0d 00 00 00 00    	decl   0x0(%rip)        # 3be0 <local_clock+0xa0>	3bdc: R_X86_64_PC32	pcpu_hot+0x4
00a0     3be0:	0f 85 6b ff ff ff    	jne    3b51 <local_clock+0x11>
00a6     3be6:	e8 00 00 00 00       	call   3beb <local_clock+0xab>	3be7: R_X86_64_PLT32	preempt_schedule_notrace_thunk-0x4
00ab     3beb:	e9 61 ff ff ff       	jmp    3b51 <local_clock+0x11>

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ