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] [day] [month] [year] [list]
Message-ID: <20190923004022.GC15734@shao2-debian>
Date:   Mon, 23 Sep 2019 08:40:22 +0800
From:   kernel test robot <lkp@...el.com>
To:     Pengfei Li <lpf.vector@...il.com>
Cc:     akpm@...ux-foundation.org, vbabka@...e.cz, cl@...ux.com,
        penberg@...nel.org, rientjes@...gle.com, iamjoonsoo.kim@....com,
        linux-mm@...ck.org, linux-kernel@...r.kernel.org, guro@...com,
        Pengfei Li <lpf.vector@...il.com>, lkp@...org
Subject: [mm, slab_common] c5e1edaa1a:
 BUG:unable_to_handle_page_fault_for_address

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

commit: c5e1edaa1a52581b350315e4b163cdcc0fd7605d ("[PATCH v5 7/7] mm, slab_common: Modify kmalloc_caches[type][idx] to kmalloc_caches[idx][type]")
url: https://github.com/0day-ci/linux/commits/Pengfei-Li/mm-slab-Make-kmalloc_info-contain-all-types-of-names/20190916-224827


in testcase: boot

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

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


+---------------------------------------------+------------+------------+
|                                             | 4e0d9effb5 | c5e1edaa1a |
+---------------------------------------------+------------+------------+
| boot_successes                              | 4          | 0          |
| boot_failures                               | 0          | 4          |
| BUG:unable_to_handle_page_fault_for_address | 0          | 4          |
| Oops:#[##]                                  | 0          | 4          |
| RIP:calculate_slab_order                    | 0          | 4          |
| Kernel_panic-not_syncing:Fatal_exception    | 0          | 4          |
+---------------------------------------------+------------+------------+


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


[    0.417634] BUG: unable to handle page fault for address: 0000000000301171
[    0.418931] #PF: supervisor read access in kernel mode
[    0.419879] #PF: error_code(0x0000) - not-present page
[    0.420827] PGD 0 P4D 0 
[    0.421296] Oops: 0000 [#1] DEBUG_PAGEALLOC
[    0.422073] CPU: 0 PID: 0 Comm: swapper Tainted: G                T 5.3.0-00007-gc5e1edaa1a525 #2
[    0.423725] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014
[    0.425265] RIP: 0010:calculate_slab_order+0x81/0xd9
[    0.426194] Code: ba e4 11 41 89 5f 24 41 89 4f 28 73 35 eb 61 31 f6 89 c7 89 4c 24 04 48 89 54 24 08 e8 95 8a fd ff 48 85 c0 8b 4c 24 04 74 38 <83> 78 20 00 78 32 41 8b 77 14 48 8b 54 24 08 d1 ee 39 70 14 76 be
[    0.429675] RSP: 0000:ffffffff82603e50 EFLAGS: 00010002
[    0.430648] RAX: 0000000000301151 RBX: 0000000000000001 RCX: 0000000000000000
[    0.431966] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000001
[    0.433282] RBP: 0000000000001000 R08: 0000000000000000 R09: 0000000000000000
[    0.434617] R10: 0000000000002000 R11: 0000000000000005 R12: 0000000080002800
[    0.435936] R13: 0000000080000000 R14: 0000000000000000 R15: ffffffff82853bc0
[    0.437259] FS:  0000000000000000(0000) GS:ffffffff8264e000(0000) knlGS:0000000000000000
[    0.438765] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    0.439840] CR2: 0000000000301171 CR3: 0000000002622000 CR4: 00000000000406b0
[    0.441157] Call Trace:
[    0.441614]  set_off_slab_cache+0x39/0x59
[    0.442357]  __kmem_cache_create+0x11a/0x26e
[    0.443171]  create_boot_cache+0x46/0x69
[    0.443900]  kmem_cache_init+0x72/0x115
[    0.444612]  start_kernel+0x204/0x454
[    0.445301]  secondary_startup_64+0xa4/0xb0
[    0.446078] Modules linked in:
[    0.446696] CR2: 0000000000301171
[    0.447323] random: get_random_bytes called from init_oops_id+0x1d/0x2c with crng_init=0
[    0.448820] ---[ end trace b2352b5ced6eae1c ]---


To reproduce:

        # build kernel
	cd linux
	cp config-5.3.0-00007-gc5e1edaa1a525 .config
	make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 olddefconfig prepare modules_prepare bzImage

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



Thanks,
lkp


View attachment "config-5.3.0-00007-gc5e1edaa1a525" of type "text/plain" (108953 bytes)

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ