pktgen: kernel_thread() failed for cpu 0 pktgen: Cannot create thread for cpu 0 (-4) pktgen: kernel_thread() failed for cpu 1 pktgen: Cannot create thread for cpu 1 (-4) pktgen: Initialization failed for all threads BUG: sleeping function called from invalid context at kernel/sched/completion.c:90 in_atomic(): 1, irqs_disabled(): 0, pid: 17, name: ksoftirqd/1 1 lock held by ksoftirqd/1/17: #0: (rcu_callback){......}, at: [] __rcu_reclaim kernel/rcu/rcu.h:108 [inline] #0: (rcu_callback){......}, at: [] rcu_do_batch kernel/rcu/tree.c:2789 [inline] #0: (rcu_callback){......}, at: [] invoke_rcu_callbacks kernel/rcu/tree.c:3053 [inline] #0: (rcu_callback){......}, at: [] __rcu_process_callbacks kernel/rcu/tree.c:3020 [inline] #0: (rcu_callback){......}, at: [] rcu_process_callbacks+0x98e/0x12b0 kernel/rcu/tree.c:3037 Preemption disabled at: [] __do_softirq+0xdd/0x940 kernel/softirq.c:265 CPU: 1 PID: 17 Comm: ksoftirqd/1 Not tainted 4.9.123-g7fa8c15 #80 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801d9abf868 ffffffff81eb9689 ffffffff83a0884d 0000000000000000 0000000000000100 ffff8801d9aa3000 ffff8801d9aa3000 ffff8801d9abf8a0 ffffffff81426911 ffff8801d9aa3000 ffffffff83c5a3c0 000000000000005a Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] ___might_sleep.cold.123+0x1bc/0x1f5 kernel/sched/core.c:7988 [] __might_sleep+0x95/0x1a0 kernel/sched/core.c:7945 [] __wait_for_common kernel/sched/completion.c:90 [inline] [] wait_for_common kernel/sched/completion.c:101 [inline] [] wait_for_completion+0x89/0x2e0 kernel/sched/completion.c:122 [] __wait_rcu_gp+0x137/0x1b0 kernel/rcu/update.c:369 [] synchronize_rcu.part.62+0xfa/0x110 kernel/rcu/tree_plugin.h:684 [] synchronize_rcu+0x27/0x90 kernel/rcu/tree_plugin.h:685 [] __l2tp_session_unhash+0x38a/0x520 net/l2tp/l2tp_core.c:1796 [] l2tp_tunnel_closeall+0x1f7/0x350 net/l2tp/l2tp_core.c:1364 [] l2tp_tunnel_destruct+0x2f2/0x590 net/l2tp/l2tp_core.c:1324 [] __sk_destruct+0x55/0x590 net/core/sock.c:1428 [] __rcu_reclaim kernel/rcu/rcu.h:118 [inline] [] rcu_do_batch kernel/rcu/tree.c:2789 [inline] [] invoke_rcu_callbacks kernel/rcu/tree.c:3053 [inline] [] __rcu_process_callbacks kernel/rcu/tree.c:3020 [inline] [] rcu_process_callbacks+0x8ae/0x12b0 kernel/rcu/tree.c:3037 [] __do_softirq+0x210/0x940 kernel/softirq.c:288 [] run_ksoftirqd+0x30/0x60 kernel/softirq.c:680 [] smpboot_thread_fn+0x5c9/0x900 kernel/smpboot.c:163 [] kthread+0x26d/0x300 kernel/kthread.c:211 [] ret_from_fork+0x5c/0x70 arch/x86/entry/entry_64.S:373 BUG: scheduling while atomic: ksoftirqd/1/17/0x00000101 1 lock held by ksoftirqd/1/17: #0: (rcu_callback){......}, at: [] __rcu_reclaim kernel/rcu/rcu.h:108 [inline] #0: (rcu_callback){......}, at: [] rcu_do_batch kernel/rcu/tree.c:2789 [inline] #0: (rcu_callback){......}, at: [] invoke_rcu_callbacks kernel/rcu/tree.c:3053 [inline] #0: (rcu_callback){......}, at: [] __rcu_process_callbacks kernel/rcu/tree.c:3020 [inline] #0: (rcu_callback){......}, at: [] rcu_process_callbacks+0x98e/0x12b0 kernel/rcu/tree.c:3037 Modules linked in: Preemption disabled at: [] __do_softirq+0xdd/0x940 kernel/softirq.c:265