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: <202209261435.Rv6EGSKn-lkp@intel.com>
Date:   Mon, 26 Sep 2022 14:48:32 +0800
From:   kernel test robot <lkp@...el.com>
To:     Frederic Weisbecker <frederic@...nel.org>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        "Paul E. McKenney" <paulmck@...nel.org>,
        Nicolas Saenz Julienne <nsaenzju@...hat.com>
Subject: vmlinux.o: warning: objtool: enter_from_user_mode+0xae: call to
 preempt_count_add() leaves .noinstr.text section

Hi Frederic,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   f76349cf41451c5c42a99f18a9163377e4b364ff
commit: 171476775d32a40bfebf83250136c19b2e842672 context_tracking: Convert state to atomic_t
date:   3 months ago
config: x86_64-buildonly-randconfig-r001-20220926
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/torvalds/linux.git/commit/?id=171476775d32a40bfebf83250136c19b2e842672
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 171476775d32a40bfebf83250136c19b2e842672
        # 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 >>):

   ld: warning: arch/x86/lib/csum-copy_64.o: missing .note.GNU-stack section implies executable stack
   ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker
>> vmlinux.o: warning: objtool: enter_from_user_mode+0xae: call to preempt_count_add() leaves .noinstr.text section
>> vmlinux.o: warning: objtool: syscall_enter_from_user_mode+0xe4: call to preempt_count_add() leaves .noinstr.text section
>> vmlinux.o: warning: objtool: syscall_enter_from_user_mode_prepare+0xb1: call to preempt_count_add() leaves .noinstr.text section
>> vmlinux.o: warning: objtool: irqentry_enter_from_user_mode+0xae: call to preempt_count_add() leaves .noinstr.text section
   vmlinux.o: warning: objtool: dn_bind.cold+0x11: relocation to !ENDBR: dn_bind+0x1bd
   vmlinux.o: warning: objtool: dn_route_input_slow.cold+0x11: relocation to !ENDBR: dn_route_input_slow+0x639
   vmlinux.o: warning: objtool: dn_route_input_slow.cold+0x3a: relocation to !ENDBR: dn_route_input_slow+0x113
   vmlinux.o: warning: objtool: dn_route_output_slow.cold+0x11: relocation to !ENDBR: dn_route_output_slow+0x13d
   vmlinux.o: warning: objtool: dn_route_output_slow.cold+0x3a: relocation to !ENDBR: dn_route_output_slow+0x95d
   vmlinux.o: warning: objtool: dn_route_output_slow.cold+0x63: relocation to !ENDBR: dn_route_output_slow+0xbfe
   vmlinux.o: warning: objtool: dn_route_output_slow.cold+0x8c: relocation to !ENDBR: dn_route_output_slow+0x1d6
   vmlinux.o: warning: objtool: dn_route_output_slow.cold+0xf3: relocation to !ENDBR: dn_route_output_slow+0x745
   vmlinux.o: warning: objtool: dn_route_output_slow.cold+0x11c: relocation to !ENDBR: dn_route_output_slow+0x5be


objdump-func vmlinux.o enter_from_user_mode:
0000 0000000000002700 <enter_from_user_mode>:
0000     2700:	f3 0f 1e fa          	endbr64
0004     2704:	55                   	push   %rbp
0005     2705:	48 89 e5             	mov    %rsp,%rbp
0008     2708:	53                   	push   %rbx
0009     2709:	9c                   	pushf
000a     270a:	5a                   	pop    %rdx
000b     270b:	48 8b 0d 00 00 00 00 	mov    0x0(%rip),%rcx        # 2712 <enter_from_user_mode+0x12>	270e: R_X86_64_PC32	boot_cpu_data+0x3c
0012     2712:	b8 00 44 04 00       	mov    $0x44400,%eax
0017     2717:	48 0f ba e1 34       	bt     $0x34,%rcx
001c     271c:	72 1f                	jb     273d <enter_from_user_mode+0x3d>
001e     271e:	48 8b 05 00 00 00 00 	mov    0x0(%rip),%rax        # 2725 <enter_from_user_mode+0x25>	2721: R_X86_64_PC32	boot_cpu_data+0x3c
0025     2725:	48 c1 e8 10          	shr    $0x10,%rax
0029     2729:	83 e0 01             	and    $0x1,%eax
002c     272c:	3c 01                	cmp    $0x1,%al
002e     272e:	48 19 c0             	sbb    %rax,%rax
0031     2731:	48 25 00 00 fc ff    	and    $0xfffffffffffc0000,%rax
0037     2737:	48 05 00 44 04 00    	add    $0x44400,%rax
003d     273d:	48 85 c2             	test   %rax,%rdx
0040     2740:	0f 85 91 00 00 00    	jne    27d7 <enter_from_user_mode+0xd7>
0046     2746:	f6 87 88 00 00 00 03 	testb  $0x3,0x88(%rdi)
004d     274d:	0f 84 95 00 00 00    	je     27e8 <enter_from_user_mode+0xe8>
0053     2753:	48 8b 04 25 00 00 00 00 	mov    0x0,%rax	2757: R_X86_64_32S	cpu_current_top_of_stack
005b     275b:	48 29 e0             	sub    %rsp,%rax
005e     275e:	48 3d ff 3f 00 00    	cmp    $0x3fff,%rax
0064     2764:	0f 87 8d 00 00 00    	ja     27f7 <enter_from_user_mode+0xf7>
006a     276a:	48 8b 04 25 00 00 00 00 	mov    0x0,%rax	276e: R_X86_64_32S	current_task
0072     2772:	48 8b 40 20          	mov    0x20(%rax),%rax
0076     2776:	48 05 58 3f 00 00    	add    $0x3f58,%rax
007c     277c:	48 39 c7             	cmp    %rax,%rdi
007f     277f:	75 70                	jne    27f1 <enter_from_user_mode+0xf1>
0081     2781:	66 90                	xchg   %ax,%ax
0083     2783:	66 90                	xchg   %ax,%ax
0085     2785:	90                   	nop
0086     2786:	90                   	nop
0087     2787:	48 8b 5d f8          	mov    -0x8(%rbp),%rbx
008b     278b:	c9                   	leave
008c     278c:	31 c0                	xor    %eax,%eax
008e     278e:	31 d2                	xor    %edx,%edx
0090     2790:	31 c9                	xor    %ecx,%ecx
0092     2792:	31 ff                	xor    %edi,%edi
0094     2794:	c3                   	ret
0095     2795:	66 90                	xchg   %ax,%ax
0097     2797:	90                   	nop
0098     2798:	0f 0b                	ud2
009a     279a:	90                   	nop
009b     279b:	eb e6                	jmp    2783 <enter_from_user_mode+0x83>
009d     279d:	bf 02 00 00 00       	mov    $0x2,%edi
00a2     27a2:	e8 00 00 00 00       	call   27a7 <enter_from_user_mode+0xa7>	27a3: R_X86_64_PLT32	__ct_user_exit-0x4
00a7     27a7:	eb dc                	jmp    2785 <enter_from_user_mode+0x85>
00a9     27a9:	bf 01 00 00 00       	mov    $0x1,%edi
00ae     27ae:	e8 00 00 00 00       	call   27b3 <enter_from_user_mode+0xb3>	27af: R_X86_64_PLT32	preempt_count_add-0x4
00b3     27b3:	8b 1d 00 00 00 00    	mov    0x0(%rip),%ebx        # 27b9 <enter_from_user_mode+0xb9>	27b5: R_X86_64_PC32	context_tracking+0x4
00b9     27b9:	bf 01 00 00 00       	mov    $0x1,%edi
00be     27be:	e8 00 00 00 00       	call   27c3 <enter_from_user_mode+0xc3>	27bf: R_X86_64_PLT32	preempt_count_sub-0x4
00c3     27c3:	8b 05 00 00 00 00    	mov    0x0(%rip),%eax        # 27c9 <enter_from_user_mode+0xc9>	27c5: R_X86_64_PC32	__preempt_count-0x4
00c9     27c9:	85 c0                	test   %eax,%eax
00cb     27cb:	74 33                	je     2800 <enter_from_user_mode+0x100>
00cd     27cd:	83 e3 03             	and    $0x3,%ebx
00d0     27d0:	83 fb 02             	cmp    $0x2,%ebx
00d3     27d3:	75 c2                	jne    2797 <enter_from_user_mode+0x97>
00d5     27d5:	eb ac                	jmp    2783 <enter_from_user_mode+0x83>
00d7     27d7:	90                   	nop
00d8     27d8:	0f 0b                	ud2
00da     27da:	90                   	nop
00db     27db:	f6 87 88 00 00 00 03 	testb  $0x3,0x88(%rdi)
00e2     27e2:	0f 85 6b ff ff ff    	jne    2753 <enter_from_user_mode+0x53>
00e8     27e8:	90                   	nop
00e9     27e9:	0f 0b                	ud2
00eb     27eb:	90                   	nop
00ec     27ec:	e9 62 ff ff ff       	jmp    2753 <enter_from_user_mode+0x53>
00f1     27f1:	90                   	nop
00f2     27f2:	0f 0b                	ud2
00f4     27f4:	90                   	nop
00f5     27f5:	eb 8a                	jmp    2781 <enter_from_user_mode+0x81>
00f7     27f7:	90                   	nop
00f8     27f8:	0f 0b                	ud2
00fa     27fa:	90                   	nop
00fb     27fb:	e9 6a ff ff ff       	jmp    276a <enter_from_user_mode+0x6a>
0100     2800:	e8 00 00 00 00       	call   2805 <enter_from_user_mode+0x105>	2801: R_X86_64_PLT32	__SCT__preempt_schedule-0x4
0105     2805:	eb c6                	jmp    27cd <enter_from_user_mode+0xcd>
0107     2807:	66 0f 1f 84 00 00 00 00 00 	nopw   0x0(%rax,%rax,1)

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ