FYI, we noticed the following commit: commit e7c1db75fed821a961ce1ca2b602b08e75de0cd8 ("mm: Prevent __alloc_pages_nodemask() RCU CPU stall warnings") https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git rcu/next in testcase: boot on test machine: qemu-system-x86_64 -enable-kvm -cpu Nehalem -smp 2 -m 1G caused below changes: +----------------------------------------------------------------------+------------+------------+ | | 7cebc6b63b | e7c1db75fe | +----------------------------------------------------------------------+------------+------------+ | boot_successes | 0 | 0 | | boot_failures | 14 | 14 | | invoked_oom-killer:gfp_mask=0x | 2 | | | Mem-Info | 2 | | | Kernel_panic-not_syncing:Out_of_memory_and_no_killable_processes | 2 | | | BUG:sleeping_function_called_from_invalid_context_at_mm/swap.c | 12 | 14 | | calltrace:run_init_process | 12 | 14 | | calltrace:SyS_execve | 7 | 5 | | calltrace:SyS_exit_group | 12 | 13 | | calltrace:SyS_read | 1 | | | WARNING:at_fs/sysfs/dir.c:#sysfs_warn_dup | 2 | 1 | | calltrace:parport_pc_init | 2 | 1 | | calltrace:SyS_finit_module | 2 | 1 | | WARNING:at_lib/kobject.c:#kobject_add_internal | 2 | 1 | | calltrace:SyS_munmap | 2 | | | BUG:sleeping_function_called_from_invalid_context_at_mm/page_alloc.c | 0 | 8 | | calltrace:SyS_clone | 0 | 1 | +----------------------------------------------------------------------+------------+------------+ [ 8.953192] BUG: sleeping function called from invalid context at mm/page_alloc.c:3746 [ 8.956353] in_atomic(): 1, irqs_disabled(): 1, pid: 0, name: swapper/0 [ 8.958262] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G W 4.9.0-rc1-00048-ge7c1db7 #1 [ 8.961309] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014 [ 8.964341] ffff880029a03720 ffffffff81472549 ffffffff81e0d4c0 0000000002281220 [ 8.967460] ffff880029a03738 ffffffff810a8583 ffff8800364be080 ffff880029a037c0 [ 8.970582] ffffffff81190be5 ffffffff81e0d4c0 ffffffff81e0d4c0 ffffffff81e0d4c0 [ 8.973694] Call Trace: [ 8.974871] [ 8.975317] [] dump_stack+0x63/0x8a [ 8.977116] [] ___might_sleep+0xd3/0x120 [ 8.978852] [] __alloc_pages_nodemask+0xd5/0x2f0 [ 8.980663] [] alloc_pages_current+0x95/0x140 [ 8.982401] [] new_slab+0x3c0/0x5a0 [ 8.984001] [] ? kfree+0x15c/0x170 [ 8.985648] [] ___slab_alloc+0x3a0/0x4b0 [ 8.987316] [] ? inet_twsk_alloc+0x41/0x160 [ 8.989031] [] ? inet_twsk_alloc+0x41/0x160 [ 8.990743] [] __slab_alloc+0x20/0x40 [ 8.992365] [] kmem_cache_alloc+0x17f/0x1c0 [ 8.994079] [] inet_twsk_alloc+0x41/0x160 [ 8.995763] [] tcp_time_wait+0x4e/0x290 [ 8.997414] [] tcp_rcv_state_process+0xd6b/0xd70 [ 8.999199] [] ? security_sock_rcv_skb+0x3b/0x50 [ 9.000989] [] tcp_v4_do_rcv+0xb2/0x200 [ 9.002649] [] tcp_v4_rcv+0x910/0xa10 [ 9.004270] [] ? ipv6_chk_mcast_addr+0x120/0x140 [ 9.006068] [] ? ip6_input_finish+0xf8/0x460 [ 9.007792] [] ip_local_deliver_finish+0xa1/0x1d0 [ 9.009590] [] ip_local_deliver+0x60/0xe0 [ 9.011266] [] ? tcp_v4_early_demux+0x13a/0x150 [ 9.013038] [] ip_rcv_finish+0xdd/0x3b0 [ 9.014693] [] ip_rcv+0x263/0x390 [ 9.016257] [] ? e1000_intr+0xa0/0x120 [ 9.017904] [] __netif_receive_skb_core+0x513/0xa60 [ 9.019733] [] ? native_apic_msr_write+0x2b/0x30 [ 9.021513] [] ? tcp4_gro_receive+0x11c/0x1c0 [ 9.023267] [] __netif_receive_skb+0x18/0x60 [ 9.024998] [] netif_receive_skb_internal+0x38/0xb0 [ 9.026822] [] napi_gro_receive+0xd4/0x130 [ 9.028514] [] e1000_clean_rx_irq+0x19a/0x510 [ 9.030252] [] e1000_clean+0x260/0x8c0 [ 9.031892] [] ? account_entity_enqueue+0xd8/0x100 [ 9.033707] [] net_rx_action+0x229/0x390 [ 9.035367] [] __do_softirq+0x104/0x2ab [ 9.037032] [] irq_exit+0xf1/0x100 [ 9.038616] [] do_IRQ+0x54/0xd0 [ 9.040149] [] common_interrupt+0x8c/0x8c [ 9.041828] [ 9.042256] [] ? native_safe_halt+0x6/0x10 [ 9.044674] [] default_idle+0x20/0xf0 [ 9.046295] [] arch_cpu_idle+0xf/0x20 [ 9.047923] [] default_idle_call+0x23/0x30 [ 9.049628] [] cpu_startup_entry+0x189/0x200 [ 9.051355] [] rest_init+0x85/0x90 [ 9.053096] [] start_kernel+0x407/0x414 [ 9.054860] [] ? early_idt_handler_array+0x120/0x120 [ 9.056765] [] x86_64_start_reservations+0x2a/0x2c [ 9.058658] [] x86_64_start_kernel+0x13d/0x14c To reproduce: git clone git://git.kernel.org/pub/scm/linux/kernel/git/wfg/lkp-tests.git cd lkp-tests bin/lkp qemu -k job-script # job-script is attached in this email Thanks, Xiaolong