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: <202305191040.c275d61b-yujie.liu@intel.com>
Date:   Fri, 19 May 2023 10:49:11 +0800
From:   kernel test robot <yujie.liu@...el.com>
To:     Juergen Gross <jgross@...e.com>
CC:     <oe-lkp@...ts.linux.dev>, <lkp@...el.com>,
        Borislav Petkov <bp@...en8.de>,
        Michael Kelley <mikelley@...rosoft.com>,
        <linux-kernel@...r.kernel.org>
Subject: [bp:rc1-mtrr] [x86/mtrr] 96a654e145:
 WARNING:at_mm/debug_vm_pgtable.c:#debug_vm_pgtable

Hello,

kernel test robot noticed "WARNING:at_mm/debug_vm_pgtable.c:#debug_vm_pgtable" on:

commit: 96a654e145f9f3aea672dc22c5bf0a3ef26befac ("x86/mtrr: Use new cache_map in mtrr_type_lookup()")
https://git.kernel.org/cgit/linux/kernel/git/bp/bp.git rc1-mtrr

in testcase: boot

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

(please refer to attached dmesg/kmsg for entire log/backtrace)

+----------------------------------------------------+------------+------------+
|                                                    | bbd7b00e1e | 96a654e145 |
+----------------------------------------------------+------------+------------+
| WARNING:at_mm/debug_vm_pgtable.c:#debug_vm_pgtable | 0          | 20         |
+----------------------------------------------------+------------+------------+


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


[    9.026438][    T1] calling  debug_vm_pgtable+0x0/0x6b9 @ 1
[    9.027414][    T1] debug_vm_pgtable: [debug_vm_pgtable         ]: Validating architecture page table helpers
[    9.043005][    T1] pmd_set_huge: Cannot satisfy [mem 0x40000000-0x40200000] with a huge-page mapping due to MTRR override.
[    9.044939][    T1] ------------[ cut here ]------------
[ 9.045873][ T1] WARNING: CPU: 0 PID: 1 at mm/debug_vm_pgtable.c:445 debug_vm_pgtable (mm/debug_vm_pgtable.c:445 mm/debug_vm_pgtable.c:1385) 
[    9.047475][    T1] Modules linked in:
[    9.048206][    T1] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 6.4.0-rc1-00013-g96a654e145f9 #1
[    9.049640][    T1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
[ 9.051385][ T1] RIP: 0010:debug_vm_pgtable (mm/debug_vm_pgtable.c:445 mm/debug_vm_pgtable.c:1385) 
[ 9.052398][ T1] Code: 8b 44 24 28 48 c7 00 00 00 00 00 48 8b b4 24 b0 00 00 00 48 8b 54 24 60 48 8b 7c 24 28 48 c1 e6 0c e8 8d 17 2d fe 85 c0 75 02 <0f> 0b 48 8b 7c 24 28 e8 84 18 2d fe 85 c0 75 02 0f 0b 48 8b 44 24
All code
========
   0:	8b 44 24 28          	mov    0x28(%rsp),%eax
   4:	48 c7 00 00 00 00 00 	movq   $0x0,(%rax)
   b:	48 8b b4 24 b0 00 00 	mov    0xb0(%rsp),%rsi
  12:	00 
  13:	48 8b 54 24 60       	mov    0x60(%rsp),%rdx
  18:	48 8b 7c 24 28       	mov    0x28(%rsp),%rdi
  1d:	48 c1 e6 0c          	shl    $0xc,%rsi
  21:	e8 8d 17 2d fe       	call   0xfffffffffe2d17b3
  26:	85 c0                	test   %eax,%eax
  28:	75 02                	jne    0x2c
  2a:*	0f 0b                	ud2		<-- trapping instruction
  2c:	48 8b 7c 24 28       	mov    0x28(%rsp),%rdi
  31:	e8 84 18 2d fe       	call   0xfffffffffe2d18ba
  36:	85 c0                	test   %eax,%eax
  38:	75 02                	jne    0x3c
  3a:	0f 0b                	ud2
  3c:	48                   	rex.W
  3d:	8b                   	.byte 0x8b
  3e:	44                   	rex.R
  3f:	24                   	.byte 0x24

Code starting with the faulting instruction
===========================================
   0:	0f 0b                	ud2
   2:	48 8b 7c 24 28       	mov    0x28(%rsp),%rdi
   7:	e8 84 18 2d fe       	call   0xfffffffffe2d1890
   c:	85 c0                	test   %eax,%eax
   e:	75 02                	jne    0x12
  10:	0f 0b                	ud2
  12:	48                   	rex.W
  13:	8b                   	.byte 0x8b
  14:	44                   	rex.R
  15:	24                   	.byte 0x24
[    9.055537][    T1] RSP: 0000:ffffc90000013db8 EFLAGS: 00010246
[    9.056536][    T1] RAX: 0000000000000000 RBX: 0000000136a99000 RCX: 0000000000000003
[    9.057928][    T1] RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001
[    9.059315][    T1] RBP: ffffea0004daa6a8 R08: 0000000000000000 R09: 0000000000000019
[    9.060685][    T1] R10: 0000000000000000 R11: 000000005f646d70 R12: 0000000000000000
[    9.062041][    T1] R13: ffffea0004daa668 R14: 0000000000000000 R15: 0000000000000000
[    9.063411][    T1] FS:  0000000000000000(0000) GS:ffff88842fc00000(0000) knlGS:0000000000000000
[    9.064969][    T1] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    9.066098][    T1] CR2: ffff88843ffff000 CR3: 0000000002432000 CR4: 00000000000406f0
[    9.067485][    T1] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[    9.068873][    T1] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[    9.070246][    T1] Call Trace:
[    9.070893][    T1]  <TASK>
[ 9.071464][ T1] ? init_args (mm/debug_vm_pgtable.c:1305) 
[ 9.072256][ T1] do_one_initcall (init/main.c:1246) 
[ 9.073087][ T1] do_initcalls (init/main.c:1318 init/main.c:1335) 
[ 9.073872][ T1] kernel_init_freeable (init/main.c:1575) 
[ 9.074781][ T1] ? rest_init (init/main.c:1454) 
[ 9.075536][ T1] kernel_init (init/main.c:1464) 
[ 9.076331][ T1] ret_from_fork (arch/x86/entry/entry_64.S:314) 
[    9.077141][    T1]  </TASK>
[    9.077713][    T1] ---[ end trace 0000000000000000 ]---


To reproduce:

        # build kernel
	cd linux
	cp config-6.4.0-rc1-00013-g96a654e145f9 .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://github.com/intel/lkp-tests

View attachment "config-6.4.0-rc1-00013-g96a654e145f9" of type "text/plain" (130632 bytes)

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ