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: <YsFeUHkrFTQ7T51Q@xsang-OptiPlex-9020>
Date:   Sun, 3 Jul 2022 17:16:00 +0800
From:   kernel test robot <oliver.sang@...el.com>
To:     Yee Lee <yee.lee@...iatek.com>
Cc:     Andrew Morton <akpm@...ux-foundation.org>,
        Catalin Marinas <catalin.marinas@....com>,
        Marco Elver <elver@...gle.com>,
        LKML <linux-kernel@...r.kernel.org>,
        Linux Memory Management List <linux-mm@...ck.org>,
        kasan-dev@...glegroups.com, lkp@...ts.01.org, lkp@...el.com
Subject: [mm]  f6a6cf9d13: kernel_BUG_at_arch/x86/mm/physaddr.c



Greeting,

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

commit: f6a6cf9d13a07e206344e34cb93287d9f591c1b8 ("mm: kfence: apply kmemleak_ignore_phys on early allocated pool")
https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git master

in testcase: boot

on test machine: qemu-system-i386 -enable-kvm -cpu SandyBridge -smp 2 -m 4G

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


+------------------------------------------+------------+------------+
|                                          | b3b3f17d77 | f6a6cf9d13 |
+------------------------------------------+------------+------------+
| boot_successes                           | 41         | 0          |
| boot_failures                            | 0          | 42         |
| kernel_BUG_at_arch/x86/mm/physaddr.c     | 0          | 42         |
| invalid_opcode:#[##]                     | 0          | 42         |
| EIP:__phys_addr                          | 0          | 42         |
| Kernel_panic-not_syncing:Fatal_exception | 0          | 42         |
+------------------------------------------+------------+------------+


If you fix the issue, kindly add following tag
Reported-by: kernel test robot <oliver.sang@...el.com>


[    0.765968][    T0] ------------[ cut here ]------------
[    0.767523][    T0] kernel BUG at arch/x86/mm/physaddr.c:81!
[    0.767906][    T0] invalid opcode: 0000 [#1] PTI
[    0.768222][    T0] CPU: 0 PID: 0 Comm: swapper Not tainted 5.19.0-rc4-00011-gf6a6cf9d13a0 #1 c2c430b6d392e6ba08a478db8a3f2c9b5b234018
[    0.769028][    T0] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.0-debian-1.16.0-4 04/01/2014
[    0.769711][    T0] EIP: __phys_addr+0x60/0x70
[    0.770010][    T0] Code: 31 f0 09 c2 75 24 89 f0 5b 5e 5d c3 8d b6 00 00 00 00 0f 0b 8d b6 00 00 00 00 e8 9b 2b 18 00 84 c0 74 c4 0f 0b 8d 74 26 00
90 <0f> 0b 8d b6 00 00 00 00 0f 0b cc cc cc cc cc cc 55 89 e5 57 56 89
[    0.771305][    T0] EAX: fffff000 EBX: e538b000 ECX: 00000000 EDX: ffffffff
[    0.771776][    T0] ESI: 2538b000 EDI: 02860000 EBP: c216df74 ESP: c216df6c
[    0.772240][    T0] DS: 007b ES: 007b FS: 0000 GS: 0000 SS: 0068 EFLAGS: 00210086
[    0.772742][    T0] CR0: 80050033 CR2: ffbff000 CR3: 028ce000 CR4: 000406b0
[    0.773208][    T0] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
[    0.773671][    T0] DR6: fffe0ff0 DR7: 00000400
[    0.773972][    T0] Call Trace:
[    0.774182][    T0]  kfence_init+0x3c/0xc8
[    0.774458][    T0]  start_kernel+0x275/0x3f1
[    0.774750][    T0]  i386_start_kernel+0x42/0x44
[    0.775059][    T0]  startup_32_smp+0x161/0x164
[    0.775367][    T0] Modules linked in:
[    0.775619][    T0] ---[ end trace 0000000000000000 ]---
[    0.775973][    T0] EIP: __phys_addr+0x60/0x70
[    0.776271][    T0] Code: 31 f0 09 c2 75 24 89 f0 5b 5e 5d c3 8d b6 00 00 00 00 0f 0b 8d b6 00 00 00 00 e8 9b 2b 18 00 84 c0 74 c4 0f 0b 8d 74 26 00 90 <0f> 0b 8d b6 00 00 00 00 0f 0b cc cc cc cc cc cc 55 89 e5 57 56 89
[    0.777568][    T0] EAX: fffff000 EBX: e538b000 ECX: 00000000 EDX: ffffffff
[    0.778034][    T0] ESI: 2538b000 EDI: 02860000 EBP: c216df74 ESP: c216df6c
[    0.778499][    T0] DS: 007b ES: 007b FS: 0000 GS: 0000 SS: 0068 EFLAGS: 00210086
[    0.779001][    T0] CR0: 80050033 CR2: ffbff000 CR3: 028ce000 CR4: 000406b0
[    0.779473][    T0] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
[    0.779939][    T0] DR6: fffe0ff0 DR7: 00000400
[    0.780242][    T0] Kernel panic - not syncing: Fatal exception



To reproduce:

        # build kernel
	cd linux
	cp config-5.19.0-rc4-00011-gf6a6cf9d13a0 .config
	make HOSTCC=gcc-11 CC=gcc-11 ARCH=i386 olddefconfig prepare modules_prepare bzImage modules
	make HOSTCC=gcc-11 CC=gcc-11 ARCH=i386 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-5.19.0-rc4-00011-gf6a6cf9d13a0" of type "text/plain" (126364 bytes)

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ