[ 28.285261][ T362] Initializing XFRM netlink socket [ 28.285281][ T362] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 28.285284][ T362] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 362, name: modprobe [ 28.285286][ T362] preempt_count: 1, expected: 0 [ 28.285286][ T362] RCU nest depth: 0, expected: 0 [ 28.285288][ T362] locks held by modprobe/362: 4, last CPU#3: [ 28.285290][ T362] #0: ffffffff98b69cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 28.285303][ T362] #1: ffffffff98b69d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 28.285307][ T362] #2: ffffffff98a89660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 28.285311][ T362] #3: ffffffff98a89560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 28.285315][ T362] irq event stamp: 35956 [ 28.285316][ T362] hardirqs last enabled at (35955): [] __down_trylock_console_sem+0x86/0xa0 [ 28.285318][ T362] hardirqs last disabled at (35956): [] console_emit_next_record+0x3d4/0x4c0 [ 28.285320][ T362] softirqs last enabled at (33248): [] handle_softirqs+0x67c/0x900 [ 28.285323][ T362] softirqs last disabled at (33243): [] __irq_exit_rcu+0x145/0x1c0 [ 28.285326][ T362] Preemption disabled at: [ 28.285326][ T362] [] vprintk_emit+0x31b/0x3e0 [ 28.285332][ T362] CPU: 3 UID: 0 PID: 362 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 28.285336][ T362] Tainted: [W]=WARN [ 28.285336][ T362] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 28.285338][ T362] Call Trace: [ 28.285340][ T362] [ 28.285341][ T362] dump_stack_lvl+0x6f/0xa0 [ 28.285354][ T362] ? vprintk_emit+0x31b/0x3e0 [ 28.285357][ T362] __might_resched.cold+0x1fe/0x2c1 [ 28.285361][ T362] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 28.285365][ T362] ? __kmalloc_noprof+0xdb/0x760 [ 28.285370][ T362] __kmalloc_noprof+0x443/0x760 [ 28.285372][ T362] ? alloc_buf.isra.0+0x4b/0x260 [ 28.285378][ T362] ? do_raw_spin_unlock+0x59/0x250 [ 28.285381][ T362] alloc_buf.isra.0+0x4b/0x260 [ 28.285384][ T362] put_chars+0x1e1/0x2f0 [ 28.285386][ T362] ? desc_read_finalized_seq+0x79/0x120 [ 28.285388][ T362] ? __send_to_port+0x420/0x420 [ 28.285391][ T362] ? rcu_read_lock_any_held+0x3c/0x90 [ 28.285394][ T362] ? validate_chain+0x38b/0xc20 [ 28.285398][ T362] hvc_console_print+0x292/0x780 [ 28.285401][ T362] ? __lock_acquire+0x518/0xc20 [ 28.285402][ T362] ? __lock_acquire+0x518/0xc20 [ 28.285407][ T362] ? hvc_write+0x3a0/0x3a0 [ 28.285408][ T362] ? console_emit_next_record+0x1df/0x4c0 [ 28.285411][ T362] ? rcu_is_watching+0x16/0xd0 [ 28.285414][ T362] ? lock_acquire+0x13c/0x160 [ 28.285418][ T362] console_emit_next_record+0x22f/0x4c0 [ 28.285421][ T362] ? devkmsg_read+0x4b0/0x4b0 [ 28.285423][ T362] ? console_flush_one_record+0x106/0x710 [ 28.285426][ T362] ? rcu_is_watching+0x16/0xd0 [ 28.285428][ T362] ? lock_acquire+0x13c/0x160 [ 28.285432][ T362] console_flush_one_record+0x46f/0x710 [ 28.285436][ T362] ? console_emit_next_record+0x4c0/0x4c0 [ 28.285438][ T362] ? __lock_acquire+0x518/0xc20 [ 28.285443][ T362] console_unlock+0xee/0x1f0 [ 28.285445][ T362] ? console_flush_one_record+0x710/0x710 [ 28.285447][ T362] ? rcu_is_watching+0x16/0xd0 [ 28.285449][ T362] ? lock_acquire+0x60/0x160 [ 28.285453][ T362] ? __down_trylock_console_sem+0x5e/0xa0 [ 28.285455][ T362] ? vprintk_emit+0x320/0x3e0 [ 28.285458][ T362] vprintk_emit+0x37c/0x3e0 [ 28.285462][ T362] ? wake_up_klogd_work_func+0x90/0x90 [ 28.285467][ T362] ? xfrm_user_exit+0xd90/0xd90 [xfrm_user] [ 28.285471][ T362] _printk+0xc7/0x100 [ 28.285475][ T362] ? snapshot_read.cold+0x21/0x21 [ 28.285481][ T362] ? do_one_initcall+0x113/0x4f0 [ 28.285484][ T362] xfrm_user_init+0x15/0x1000 [xfrm_user] [ 28.285487][ T362] do_one_initcall+0x124/0x4f0 [ 28.285490][ T362] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 28.285494][ T362] ? do_init_module+0xae/0x8a0 [ 28.285497][ T362] ? kasan_unpoison+0x44/0x70 [ 28.285502][ T362] do_init_module+0x2ad/0x8a0 [ 28.285505][ T362] ? lockdep_hardirqs_on+0x91/0x130 [ 28.285510][ T362] ? free_module+0x470/0x470 [ 28.285513][ T362] ? kfree+0x123/0x590 [ 28.285517][ T362] load_module+0x1424/0x1bb0 [ 28.285524][ T362] ? layout_and_allocate.isra.0+0x680/0x680 [ 28.285529][ T362] ? backing_file_read_iter+0x541/0x790 [ 28.285532][ T362] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 28.285536][ T362] init_module_from_file+0x11f/0x1a0 [ 28.285539][ T362] ? __do_sys_init_module+0x220/0x220 [ 28.285547][ T362] ? __rwlock_init+0x150/0x150 [ 28.285551][ T362] ? do_raw_spin_unlock+0x59/0x250 [ 28.285554][ T362] idempotent_init_module+0x37b/0x7c0 [ 28.285557][ T362] ? init_module_from_file+0x1a0/0x1a0 [ 28.285563][ T362] ? rcu_is_watching+0x16/0xd0 [ 28.285565][ T362] ? cap_capable+0x1d7/0x3d0 [ 28.285571][ T362] __x64_sys_finit_module+0xdf/0x190 [ 28.285573][ T362] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 28.285577][ T362] do_syscall_64+0xff/0x530 [ 28.285579][ T362] ? exc_page_fault+0xee/0x100 [ 28.285581][ T362] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 28.285584][ T362] RIP: 0033:0x7f4cc313737d [ 28.285588][ T362] Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 4b aa 0f 00 f7 d8 64 89 01 48 [ 28.285589][ T362] RSP: 002b:00007fff07a90928 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 28.285592][ T362] RAX: ffffffffffffffda RBX: 0000557976785810 RCX: 00007f4cc313737d [ 28.285594][ T362] RDX: 0000000000000000 RSI: 00005579457abffd RDI: 0000000000000000 [ 28.285595][ T362] RBP: 00007fff07a909c0 R08: 0000000000000000 R09: 0000000000000000 [ 28.285595][ T362] R10: 0000000000000000 R11: 0000000000000246 R12: 00005579457abffd [ 28.285596][ T362] R13: 0000557976785960 R14: 0000000000040000 R15: 0000000000000000 [ 28.285603][ T362]