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: <20180724072956.GE19722@shao2-debian>
Date:   Tue, 24 Jul 2018 15:29:56 +0800
From:   kernel test robot <rong.a.chen@...el.com>
To:     "Paul E. McKenney" <paulmck@...ux.vnet.ibm.com>
Cc:     LKML <linux-kernel@...r.kernel.org>,
        "Paul E. McKenney" <paulmck@...ux.vnet.ibm.com>, lkp@...org
Subject: [LKP] [rcu]  baf24235a0:
 page_allocation_failure:order:#,mode:#(),nodemask=(null)


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

commit: baf24235a013d547c2a8be2de9c1cf37a290d56e ("rcu: Define RCU-sched API in terms of RCU for Tree RCU PREEMPT builds")
https://git.kernel.org/cgit/linux/kernel/git/paulmck/linux-rcu.git dev

in testcase: boot

on test machine: qemu-system-x86_64 -enable-kvm -smp 2 -m 512M

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


+-----------------------------------------------------------------------------------------------------------+------------+------------+
|                                                                                                           | 77401241ff | baf24235a0 |
+-----------------------------------------------------------------------------------------------------------+------------+------------+
| boot_successes                                                                                            | 0          | 0          |
| boot_failures                                                                                             | 12         | 30         |
| Kernel_panic-not_syncing:cannot_initialize_percpu_area(err=-#)                                            | 8          |            |
| Kernel_panic-not_syncing:cannot_initialize_percpu_area(err=-#)]                                           | 8          |            |
| Kernel_panic-not_syncing:memblock_virt_alloc_try_nid:Failed_to_allocate#bytes_align=#nid=#from=#max_addr= | 2          | 2          |
| invoked_oom-killer:gfp_mask=0x                                                                            | 2          |            |
| Mem-Info                                                                                                  | 2          | 28         |
| Kernel_panic-not_syncing:Out_of_memory_and_no_killable_processes                                          | 2          |            |
| page_allocation_failure:order:#,mode:#(),nodemask=(null)                                                  | 0          | 28         |
| page_allocation_failure:order:#,mode:#(__GFP_COMP),nodemask=(null)                                        | 0          | 28         |
| BUG:KASAN:null-ptr-deref_in_c                                                                             | 0          | 28         |
| BUG:unable_to_handle_kernel                                                                               | 0          | 28         |
| Oops:#[##]                                                                                                | 0          | 28         |
| RIP:cpupri_set                                                                                            | 0          | 28         |
| Kernel_panic-not_syncing:Fatal_exception                                                                  | 0          | 28         |
+-----------------------------------------------------------------------------------------------------------+------------+------------+



[    0.000000] ** If you see this message and you are not debugging    **
[    0.000000] ** the kernel, report this immediately to your vendor!  **
[    0.000000] **                                                      **
[    0.000000] **   NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE   **
[    0.000000] **********************************************************
[    0.000000] swapper: page allocation failure: order:0, mode:0x0(), nodemask=(null)
[    0.000000] CPU: 0 PID: 0 Comm: swapper Tainted: G                T 4.18.0-rc5-00186-gbaf2423 #2
[    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+0x15a/0x218
[    0.000000]  warn_alloc+0x1fc/0x2e0
[    0.000000]  ? zone_watermark_ok_safe+0x1c0/0x1c0
[    0.000000]  ? __asan_loadN+0xf/0x20
[    0.000000]  ? __asan_loadN+0xf/0x20
[    0.000000]  ? ftrace_likely_update+0x2c9/0x320
[    0.000000]  ? __isolate_free_page+0x420/0x420
[    0.000000]  ? __asan_loadN+0xf/0x20
[    0.000000]  ? ftrace_likely_update+0x2c9/0x320
[    0.000000]  __alloc_pages_nodemask+0x21e9/0x2d20
[    0.000000]  ? start_kernel+0x31a/0x830
[    0.000000]  ? lock_release+0x745/0x7d0
[    0.000000]  ? __native_queued_spin_unlock+0xd/0x20
[    0.000000]  ? gfp_pfmemalloc_allowed+0x1e0/0x1e0
[    0.000000]  ? ftrace_likely_update+0x2c9/0x320
[    0.000000]  ? cache_alloc_refill+0x35d/0x5d0
[    0.000000]  ? kmem_cache_alloc_node_trace+0x4a2/0x570
[    0.000000]  ? __kmalloc_node+0x62/0x90
[    0.000000]  ? __kmalloc_node+0x76/0x90
[    0.000000]  rb_allocate_cpu_buffer+0x32e/0x5d0
[    0.000000]  ? rb_check_pages+0x360/0x360
[    0.000000]  ? __kmalloc+0x438/0x550
[    0.000000]  ? __ring_buffer_alloc+0x169/0x320
[    0.000000]  __ring_buffer_alloc+0x1d4/0x320
[    0.000000]  early_trace_init+0x246/0x533
[    0.000000]  start_kernel+0x31a/0x830
[    0.000000]  ? mem_encrypt_init+0x10/0x10
[    0.000000]  x86_64_start_reservations+0x2a/0x2c
[    0.000000]  x86_64_start_kernel+0x77/0x7a
[    0.000000]  secondary_startup_64+0xa5/0xb0
[    0.000000] Mem-Info:
[    0.000000] active_anon:0 inactive_anon:0 isolated_anon:0
[    0.000000]  active_file:0 inactive_file:0 isolated_file:0
[    0.000000]  unevictable:0 dirty:0 writeback:0 unstable:0
[    0.000000]  slab_reclaimable:0 slab_unreclaimable:11
[    0.000000]  mapped:0 shmem:0 pagetables:0 bounce:0
[    0.000000]  free:0 free_pcp:0 free_cma:0
[    0.000000] Node 0 active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:0kB dirty:0kB writeback:0kB shmem:0kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 0kB writeback_tmp:0kB unstable:0kB all_unreclaimable? no
[    0.000000] Node 0 DMA free:0kB min:0kB low:0kB high:0kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:15992kB managed:88kB mlocked:0kB kernel_stack:0kB pagetables:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB
[    0.000000] lowmem_reserve[]: 0 0 0 0
[    0.000000] Node 0 DMA32 free:0kB min:0kB low:0kB high:0kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:507776kB managed:0kB mlocked:0kB kernel_stack:0kB pagetables:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB
[    0.000000] lowmem_reserve[]: 0 0 0 0
[    0.000000] Node 0 DMA: 0*4kB 0*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 0kB
[    0.000000] Node 0 DMA32: 0*4kB 0*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 0kB
[    0.000000] 0 total pagecache pages
[    0.000000] 130942 pages RAM
[    0.000000] 0 pages HighMem/MovableOnly
[    0.000000] 130920 pages reserved
[    0.000000] 0 pages cma reserved
[    0.003333] swapper: page allocation failure: order:0, mode:0x4000(__GFP_COMP), nodemask=(null)
[    0.003333] CPU: 0 PID: 0 Comm: swapper Tainted: G                T 4.18.0-rc5-00186-gbaf2423 #2
[    0.003333] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014
[    0.003333] Call Trace:
[    0.003333]  dump_stack+0x15a/0x218
[    0.003333]  warn_alloc+0x1fc/0x2e0
[    0.003333]  ? zone_watermark_ok_safe+0x1c0/0x1c0
[    0.003333]  ? ftrace_likely_update+0x2c9/0x320
[    0.003333]  ? __isolate_free_page+0x420/0x420
[    0.003333]  ? __asan_loadN+0xf/0x20
[    0.003333]  ? ftrace_likely_update+0x2c9/0x320
[    0.003333]  __alloc_pages_nodemask+0x21e9/0x2d20
[    0.003333]  ? ftrace_likely_update+0x2c9/0x320
[    0.003333]  ? gfp_pfmemalloc_allowed+0x1e0/0x1e0
[    0.003333]  ? gfp_pfmemalloc_allowed+0x1e0/0x1e0
[    0.003333]  ? kvm_clock_read+0x64/0x90
[    0.003333]  ? check_chain_key+0x191/0x1f0
[    0.003333]  ? ftrace_likely_update+0x2c9/0x320
[    0.003333]  cache_grow_begin+0x7be/0x8a0
[    0.003333]  ? ftrace_likely_update+0x2c9/0x320
[    0.003333]  ? __asan_loadN+0xf/0x20
[    0.003333]  fallback_alloc+0x26b/0x2b0
[    0.003333]  ____cache_alloc_node+0x295/0x2c0
[    0.003333]  kmem_cache_alloc_node_trace+0x1d2/0x570
[    0.003333]  __kmalloc_node+0x62/0x90
[    0.003333]  alloc_cpumask_var_node+0x40/0x60
[    0.003333]  zalloc_cpumask_var+0x23/0x30
[    0.003333]  cpupri_init+0x53/0x1c0
[    0.003333]  init_rootdomain+0x1ea/0x290
[    0.003333]  ? __raw_spin_lock_init+0x6d/0x80
[    0.003333]  init_defrootdomain+0x15/0x40
[    0.003333]  sched_init+0x1ec/0x639
[    0.003333]  start_kernel+0x31f/0x830
[    0.003333]  ? mem_encrypt_init+0x10/0x10
[    0.003333]  x86_64_start_reservations+0x2a/0x2c
[    0.003333]  x86_64_start_kernel+0x77/0x7a
[    0.003333]  secondary_startup_64+0xa5/0xb0
[    0.003333] ==================================================================
[    0.003333] BUG: KASAN: null-ptr-deref in cpupri_set+0x41/0x250
[    0.003333] Read of size 4 at addr 0000000000000000 by task swapper/0
[    0.003333] 
[    0.003333] CPU: 0 PID: 0 Comm: swapper Tainted: G                T 4.18.0-rc5-00186-gbaf2423 #2
[    0.003333] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014
[    0.003333] Call Trace:
[    0.003333]  dump_stack+0x15a/0x218
[    0.003333]  ? cpupri_set+0x41/0x250
[    0.003333]  kasan_report+0x321/0x3a0
[    0.003333]  __asan_load4+0x78/0x80
[    0.003333]  cpupri_set+0x41/0x250
[    0.003333]  rq_online_rt+0x229/0x240
[    0.003333]  ? rq_offline_rt+0x560/0x560
[    0.003333]  set_rq_online+0xf7/0x120
[    0.003333]  rq_attach_root+0x1fd/0x260
[    0.003333]  sched_init+0x49b/0x639
[    0.003333]  start_kernel+0x31f/0x830
[    0.003333]  ? mem_encrypt_init+0x10/0x10
[    0.003333]  x86_64_start_reservations+0x2a/0x2c
[    0.003333]  x86_64_start_kernel+0x77/0x7a
[    0.003333]  secondary_startup_64+0xa5/0xb0
[    0.003333] ==================================================================
[    0.003333] Disabling lock debugging due to kernel taint
[    0.003333] BUG: unable to handle kernel NULL pointer dereference at 0000000000000000
[    0.003333] PGD 0 P4D 0 
[    0.003333] Oops: 0000 [#1] PREEMPT SMP DEBUG_PAGEALLOC KASAN
[    0.003333] CPU: 0 PID: 0 Comm: swapper Tainted: G    B           T 4.18.0-rc5-00186-gbaf2423 #2
[    0.003333] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014
[    0.003333] RIP: 0010:cpupri_set+0x43/0x250
[    0.003333] Code: 06 00 00 41 89 f7 89 d3 48 83 ec 10 e8 b6 f2 31 00 49 8b 84 24 60 06 00 00 49 63 d7 4c 8d 34 90 4c 89 f7 e8 9f f1 31 00 89 df <4d> 63 2e e8 75 fc ff ff 83 f8 65 89 c3 48 c7 c7 48 99 dc 89 0f 9f 
[    0.003333] RSP: 0000:ffffffff88407d38 EFLAGS: 00010086
[    0.003333] RAX: ffffffff8847d8c0 RBX: 0000000000000064 RCX: ffffffff85cb57f7
[    0.003333] RDX: 0000000000000000 RSI: 0000000000000008 RDI: 0000000000000064
[    0.003333] RBP: ffffffff88407d70 R08: fffffbfff140a636 R09: fffffbfff140a635
[    0.003333] R10: ffffffff8a0531af R11: fffffbfff140a636 R12: ffffffff8b64cd30
[    0.003333] R13: ffffc900001ed2e0 R14: 0000000000000000 R15: 0000000000000000
[    0.003333] FS:  0000000000000000(0000) GS:ffffc90000000000(0000) knlGS:0000000000000000
[    0.003333] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    0.003333] CR2: 0000000000000000 CR3: 0000000008472000 CR4: 00000000000006b0
[    0.003333] Call Trace:
[    0.003333]  rq_online_rt+0x229/0x240
[    0.003333]  ? rq_offline_rt+0x560/0x560
[    0.003333]  set_rq_online+0xf7/0x120
[    0.003333]  rq_attach_root+0x1fd/0x260
[    0.003333]  sched_init+0x49b/0x639
[    0.003333]  start_kernel+0x31f/0x830
[    0.003333]  ? mem_encrypt_init+0x10/0x10
[    0.003333]  x86_64_start_reservations+0x2a/0x2c
[    0.003333]  x86_64_start_kernel+0x77/0x7a
[    0.003333]  secondary_startup_64+0xa5/0xb0
[    0.003333] CR2: 0000000000000000
[    0.003333] ---[ end trace da0df213fc649136 ]---
[    0.003333] RIP: 0010:cpupri_set+0x43/0x250
[    0.003333] Code: 06 00 00 41 89 f7 89 d3 48 83 ec 10 e8 b6 f2 31 00 49 8b 84 24 60 06 00 00 49 63 d7 4c 8d 34 90 4c 89 f7 e8 9f f1 31 00 89 df <4d> 63 2e e8 75 fc ff ff 83 f8 65 89 c3 48 c7 c7 48 99 dc 89 0f 9f 
[    0.003333] RSP: 0000:ffffffff88407d38 EFLAGS: 00010086
[    0.003333] RAX: ffffffff8847d8c0 RBX: 0000000000000064 RCX: ffffffff85cb57f7
[    0.003333] RDX: 0000000000000000 RSI: 0000000000000008 RDI: 0000000000000064
[    0.003333] RBP: ffffffff88407d70 R08: fffffbfff140a636 R09: fffffbfff140a635
[    0.003333] R10: ffffffff8a0531af R11: fffffbfff140a636 R12: ffffffff8b64cd30
[    0.003333] R13: ffffc900001ed2e0 R14: 0000000000000000 R15: 0000000000000000
[    0.003333] FS:  0000000000000000(0000) GS:ffffc90000000000(0000) knlGS:0000000000000000
[    0.003333] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    0.003333] CR2: 0000000000000000 CR3: 0000000008472000 CR4: 00000000000006b0
[    0.003333] Kernel panic - not syncing: Fatal exception

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,
Rong, Chen

View attachment "config-4.18.0-rc5-00186-gbaf2423" of type "text/plain" (127423 bytes)

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ