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-next>] [day] [month] [year] [list]
Message-ID: <20180127080359.GA10097@yexl-desktop>
Date:   Sat, 27 Jan 2018 16:03:59 +0800
From:   kernel test robot <xiaolong.ye@...el.com>
To:     Andrey Ryabinin <aryabinin@...tuozzo.com>
Cc:     Thomas Gleixner <tglx@...utronix.de>,
        kernel test robot <xiaolong.ye@...el.com>,
        Dmitry Vyukov <dvyukov@...gle.com>,
        Alexander Potapenko <glider@...gle.com>,
        LKML <linux-kernel@...r.kernel.org>,
        Ingo Molnar <mingo@...nel.org>,
        "H. Peter Anvin" <hpa@...or.com>, tipbuild@...or.com, lkp@...org
Subject: [lkp-robot] [x86/kasan]  def0e7b54d:
 Kernel_panic-not_syncing:memblock_virt_alloc_try_nid:Failed_to_allocate#bytes_align=#nid=#from=#max_addr=

Hi, Andrey

Is this panic log expected with your commit?

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

commit: def0e7b54d63bae120302a4957c272107563ad04 ("x86/kasan: Panic if there is not enough memory to boot")
https://git.kernel.org/cgit/linux/kernel/git/tip/tip.git x86/pti

in testcase: boot

on test machine: qemu-system-x86_64 -enable-kvm -m 420M

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


+-----------------------------------------------------------------------------------------------------------+------------+------------+
|                                                                                                           | 99a9dc98ba | def0e7b54d |
+-----------------------------------------------------------------------------------------------------------+------------+------------+
| boot_successes                                                                                            | 0          | 0          |
| boot_failures                                                                                             | 31         | 16         |
| BUG:unable_to_handle_kernel                                                                               | 18         |            |
| Oops:#[##]                                                                                                | 18         |            |
| RIP:kasan_populate_shadow                                                                                 | 18         |            |
| Kernel_panic-not_syncing:Fatal_exception                                                                  | 18         |            |
| BUG:KASAN:use-after-scope_in_p                                                                            | 13         | 4          |
| invoked_oom-killer:gfp_mask=0x                                                                            | 13         | 4          |
| Mem-Info                                                                                                  | 13         | 4          |
| Kernel_panic-not_syncing:Out_of_memory_and_no_killable_processes                                          | 13         | 4          |
| Kernel_panic-not_syncing:memblock_virt_alloc_try_nid:Failed_to_allocate#bytes_align=#nid=#from=#max_addr= | 0          | 12         |
+-----------------------------------------------------------------------------------------------------------+------------+------------+



[    0.000000]   DMA zone: 64 pages used for memmap
[    0.000000]   DMA zone: 21 pages reserved
[    0.000000]   DMA zone: 3998 pages, LIFO batch:0
[    0.000000]   DMA32 zone: 1616 pages used for memmap
[    0.000000]   DMA32 zone: 103392 pages, LIFO batch:31
[    0.000000] Kernel panic - not syncing: memblock_virt_alloc_try_nid: Failed to allocate 4096 bytes align=0x1000 nid=0 from=0x1000000 max_addr=0x0
[    0.000000] 
[    0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 4.14.0-00223-gdef0e7b5 #1
[    0.000000] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014
[    0.000000] Call Trace:
[    0.000000]  ? dump_stack+0x134/0x230
[    0.000000]  ? _atomic_dec_and_lock+0x190/0x190
[    0.000000]  ? panic+0x1c1/0x3aa
[    0.000000]  ? __stack_chk_fail+0x24/0x24
[    0.000000]  ? memblock_virt_alloc_try_nid+0xf6/0x12d
[    0.000000]  ? early_alloc+0xcc/0x16c
[    0.000000]  ? kasan_populate_shadow+0xa58/0xc3f
[    0.000000]  ? kasan_init+0x314/0x577
[    0.000000]  ? setup_arch+0x235a/0x25d8
[    0.000000]  ? reserve_standard_io_resources+0x88/0x88
[    0.000000]  ? vprintk_emit+0x43c/0x44e
[    0.000000]  ? vprintk_func+0x9f/0xb3
[    0.000000]  ? printk+0xb7/0xe2
[    0.000000]  ? show_regs_print_info+0x64/0x64
[    0.000000]  ? stop_critical_timings+0xa/0xa
[    0.000000]  ? start_kernel+0xf8/0x101d
[    0.000000]  ? early_idt_handler_common+0x3b/0x52
[    0.000000]  ? mem_encrypt_init+0x37/0x37
[    0.000000]  ? memcpy_orig+0x54/0x110
[    0.000000]  ? secondary_startup_64+0xa5/0xb0
[    0.000000] ---[ end Kernel panic - not syncing: memblock_virt_alloc_try_nid: Failed to allocate 4096 bytes align=0x1000 nid=0 from=0x1000000 max_addr=0x0
[    0.000000] 

Elapsed time: 10

#!/bin/bash


To reproduce:

        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,
Xiaolong

View attachment "config-4.14.0-00223-gdef0e7b5" of type "text/plain" (117973 bytes)

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ