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>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202209260822.7e7775b0-yujie.liu@intel.com>
Date:   Mon, 26 Sep 2022 09:16:36 +0800
From:   kernel test robot <yujie.liu@...el.com>
To:     Pasha Tatashin <pasha.tatashin@...een.com>
CC:     <lkp@...ts.01.org>, <lkp@...el.com>, <linux-mm@...ck.org>,
        <pasha.tatashin@...een.com>, <akpm@...ux-foundation.org>,
        <corbet@....net>, <linux-doc@...r.kernel.org>,
        <linux-kernel@...r.kernel.org>, <rick.p.edgecombe@...el.com>
Subject: [mm/page_table_check] 6e807506f4:
 WARNING:at_mm/page_table_check.c:#page_table_check_set

Greeting,

FYI, we noticed the following commit (built with gcc-11):

commit: 6e807506f443c197c1ec2e0037af36f6abc19ca3 ("[PATCH 2/3] mm/page_table_check: Do WARN_ON instead of BUG_ON by default")
url: https://github.com/intel-lab-lkp/linux/commits/Pasha-Tatashin/page-table-check-default-to-warn-instead-of-panic/20220911-180036
base: git://git.lwn.net/linux-2.6 docs-next
patch link: https://lore.kernel.org/linux-mm/20220911095923.3614387-3-pasha.tatashin@soleen.com

in testcase: boot

on test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 16G

caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):


[   32.343753][   T45] ------------[ cut here ]------------
[ 32.344340][ T45] WARNING: CPU: 0 PID: 45 at mm/page_table_check.c:130 page_table_check_set+0x4eb/0x5c0 
[   32.345851][   T45] Modules linked in:
[   32.346542][   T45] CPU: 0 PID: 45 Comm: kworker/u2:1 Tainted: G                T  6.0.0-rc1-00038-g6e807506f443 #1
[   32.347656][   T45] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.0-debian-1.16.0-4 04/01/2014
[ 32.349131][ T45] RIP: page_table_check_set+0x4eb/0x5c0 
[ 32.349812][ T45] Code: ff ff e8 38 a7 c0 ff 4c 8d 63 ff e9 35 fc ff ff e8 2a a7 c0 ff 31 ff 44 89 ee e8 a0 a1 c0 ff 45 84 ed 75 58 e8 16 a7 c0 ff 90 <0f> 0b 90 48 c7 c7 80 4b 89 84 e8 46 ed e3 ff e9 7f fb ff ff e8 fc
All code
========
   0:	ff                   	(bad)  
   1:	ff                   	(bad)  
   2:	e8 38 a7 c0 ff       	callq  0xffffffffffc0a73f
   7:	4c 8d 63 ff          	lea    -0x1(%rbx),%r12
   b:	e9 35 fc ff ff       	jmpq   0xfffffffffffffc45
  10:	e8 2a a7 c0 ff       	callq  0xffffffffffc0a73f
  15:	31 ff                	xor    %edi,%edi
  17:	44 89 ee             	mov    %r13d,%esi
  1a:	e8 a0 a1 c0 ff       	callq  0xffffffffffc0a1bf
  1f:	45 84 ed             	test   %r13b,%r13b
  22:	75 58                	jne    0x7c
  24:	e8 16 a7 c0 ff       	callq  0xffffffffffc0a73f
  29:	90                   	nop
  2a:*	0f 0b                	ud2    		<-- trapping instruction
  2c:	90                   	nop
  2d:	48 c7 c7 80 4b 89 84 	mov    $0xffffffff84894b80,%rdi
  34:	e8 46 ed e3 ff       	callq  0xffffffffffe3ed7f
  39:	e9 7f fb ff ff       	jmpq   0xfffffffffffffbbd
  3e:	e8                   	.byte 0xe8
  3f:	fc                   	cld    

Code starting with the faulting instruction
===========================================
   0:	0f 0b                	ud2    
   2:	90                   	nop
   3:	48 c7 c7 80 4b 89 84 	mov    $0xffffffff84894b80,%rdi
   a:	e8 46 ed e3 ff       	callq  0xffffffffffe3ed55
   f:	e9 7f fb ff ff       	jmpq   0xfffffffffffffb93
  14:	e8                   	.byte 0xe8
  15:	fc                   	cld    
[   32.351854][   T45] RSP: 0000:ffff888151d2f868 EFLAGS: 00010293
[   32.352741][   T45] RAX: 0000000000000000 RBX: 00000000003ad53c RCX: 0000000000000000
[   32.353600][   T45] RDX: ffff888151821800 RSI: ffffffff81912dea RDI: 0000000000000003
[   32.354622][   T45] RBP: ffff888151d2f8a8 R08: ffff888151d2f850 R09: ffff888151822894
[   32.355421][   T45] R10: 0000000000000003 R11: 0000000000000001 R12: 0000000000000001
[   32.356513][   T45] R13: 0000000000000000 R14: 000000000000512b R15: 0000000000000001
[   32.357677][   T45] FS:  0000000000000000(0000) GS:ffffffff8432c000(0000) knlGS:0000000000000000
[   32.358950][   T45] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   32.359618][   T45] CR2: ffff88843ffff000 CR3: 000000000423a000 CR4: 00000000000406f0
[   32.360505][   T45] Call Trace:
[   32.360866][   T45]  <TASK>
[ 32.361477][ T45] __page_table_check_pte_set (??:?) 
[ 32.362463][ T45] ? __page_table_check_pte_clear (??:?) 
[ 32.363101][ T45] ? lru_cache_add (??:?) 
[ 32.363589][ T45] do_anonymous_page (memory.c:?) 
[ 32.364135][ T45] handle_pte_fault (memory.c:?) 
[ 32.365057][ T45] ? write_comp_data (kcov.c:?) 
[ 32.365971][ T45] __handle_mm_fault (memory.c:?) 
[ 32.366860][ T45] ? __pmd_alloc (memory.c:?) 
[ 32.367567][ T45] ? write_comp_data (kcov.c:?) 
[ 32.368308][ T45] ? __raw_spin_unlock_irqrestore (spinlock.c:?) 
[ 32.369018][ T45] ? _raw_spin_unlock_irqrestore (??:?) 
[ 32.369624][ T45] ? write_comp_data (kcov.c:?) 
[ 32.370276][ T45] handle_mm_fault (??:?) 
[ 32.371123][ T45] ? write_comp_data (kcov.c:?) 
[ 32.371799][ T45] faultin_page (gup.c:?) 
[ 32.372591][ T45] __get_user_pages (gup.c:?) 
[ 32.373397][ T45] ? get_gate_page (gup.c:?) 
[ 32.374221][ T45] ? lock_acquire (??:?) 
[ 32.375194][ T45] ? __bprm_mm_init (exec.c:?) 
[ 32.376070][ T45] ? write_comp_data (kcov.c:?) 
[ 32.377012][ T45] __get_user_pages_remote (gup.c:?) 
[ 32.378062][ T45] ? ikconfig_read_current (configs.c:?) 
[ 32.379058][ T45] get_user_pages_remote (??:?) 
[ 32.379934][ T45] get_arg_page (exec.c:?) 
[ 32.380468][ T45] ? count_strings_kernel+0x1c0/0x1c0 
[ 32.381190][ T45] ? write_comp_data (kcov.c:?) 
[ 32.382005][ T45] copy_string_kernel (??:?) 
[ 32.382701][ T45] ? count_strings_kernel+0x15f/0x1c0 
[ 32.383642][ T45] kernel_execve (??:?) 
[ 32.384391][ T45] call_usermodehelper_exec_async (umh.c:?) 
[ 32.385463][ T45] ? calculate_sigpending (??:?) 
[ 32.386410][ T45] ? umh_complete (umh.c:?) 
[ 32.387225][ T45] ret_from_fork (??:?) 
[   32.388078][   T45]  </TASK>
[   32.388637][   T45] irq event stamp: 521
[ 32.389376][ T45] hardirqs last enabled at (529): __up_console_sem (printk.c:?) 
[ 32.391184][ T45] hardirqs last disabled at (550): __up_console_sem (printk.c:?) 
[ 32.392684][ T45] softirqs last enabled at (548): __do_softirq (??:?) 
[ 32.393662][ T45] softirqs last disabled at (537): __irq_exit_rcu (softirq.c:?) 
[   32.394619][   T45] ---[ end trace 0000000000000000 ]---


If you fix the issue, kindly add following tag
| Reported-by: kernel test robot <yujie.liu@...el.com>
| Link: https://lore.kernel.org/r/202209260822.7e7775b0-yujie.liu@intel.com


To reproduce:

        # build kernel
	cd linux
	cp config-6.0.0-rc1-00038-g6e807506f443 .config
	make HOSTCC=gcc-11 CC=gcc-11 ARCH=x86_64 olddefconfig prepare modules_prepare bzImage modules
	make HOSTCC=gcc-11 CC=gcc-11 ARCH=x86_64 INSTALL_MOD_PATH=<mod-install-dir> modules_install
	cd <mod-install-dir>
	find lib/ | cpio -o -H newc --quiet | gzip > modules.cgz


        git clone https://github.com/intel/lkp-tests.git
        cd lkp-tests
        bin/lkp qemu -k <bzImage> -m modules.cgz job-script # job-script is attached in this email

        # if come across any failure that blocks the test,
        # please remove ~/.lkp and /lkp dir to run from a clean state.


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

View attachment "config-6.0.0-rc1-00038-g6e807506f443" of type "text/plain" (139588 bytes)

View attachment "job-script" of type "text/plain" (4963 bytes)

Download attachment "dmesg.xz" of type "application/x-xz" (31660 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ