[ 28.950687][ T364] Initializing XFRM netlink socket [ 28.950706][ T364] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 28.950708][ T364] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 364, name: modprobe [ 28.950710][ T364] preempt_count: 1, expected: 0 [ 28.950711][ T364] RCU nest depth: 0, expected: 0 [ 28.950712][ T364] locks held by modprobe/364: 4, last CPU#0: [ 28.950714][ T364] #0: ffffffffa4f69cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 28.950727][ T364] #1: ffffffffa4f69d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 28.950732][ T364] #2: ffffffffa4e89660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 28.950736][ T364] #3: ffffffffa4e89560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 28.950740][ T364] irq event stamp: 35760 [ 28.950741][ T364] hardirqs last enabled at (35759): [] __down_trylock_console_sem+0x86/0xa0 [ 28.950743][ T364] hardirqs last disabled at (35760): [] console_emit_next_record+0x3d4/0x4c0 [ 28.950745][ T364] softirqs last enabled at (27420): [] handle_softirqs+0x67c/0x900 [ 28.950748][ T364] softirqs last disabled at (27415): [] __irq_exit_rcu+0x145/0x1c0 [ 28.950750][ T364] Preemption disabled at: [ 28.950751][ T364] [] vprintk_emit+0x31b/0x3e0 [ 28.950757][ T364] CPU: 0 UID: 0 PID: 364 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 28.950761][ T364] Tainted: [W]=WARN [ 28.950762][ T364] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 28.950764][ T364] Call Trace: [ 28.950765][ T364] [ 28.950767][ T364] dump_stack_lvl+0x6f/0xa0 [ 28.950773][ T364] ? vprintk_emit+0x31b/0x3e0 [ 28.950775][ T364] __might_resched.cold+0x1fe/0x2c1 [ 28.950779][ T364] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 28.950783][ T364] ? __kmalloc_noprof+0xdb/0x760 [ 28.950789][ T364] __kmalloc_noprof+0x443/0x760 [ 28.950791][ T364] ? alloc_buf.isra.0+0x4b/0x260 [ 28.950797][ T364] ? do_raw_spin_unlock+0x59/0x250 [ 28.950800][ T364] alloc_buf.isra.0+0x4b/0x260 [ 28.950803][ T364] put_chars+0x1e1/0x2f0 [ 28.950805][ T364] ? desc_read_finalized_seq+0x79/0x120 [ 28.950807][ T364] ? __send_to_port+0x420/0x420 [ 28.950810][ T364] ? rcu_read_lock_any_held+0x3c/0x90 [ 28.950813][ T364] ? validate_chain+0x38b/0xc20 [ 28.950818][ T364] hvc_console_print+0x292/0x780 [ 28.950820][ T364] ? __lock_acquire+0x518/0xc20 [ 28.950822][ T364] ? __lock_acquire+0x518/0xc20 [ 28.950827][ T364] ? hvc_write+0x3a0/0x3a0 [ 28.950828][ T364] ? console_emit_next_record+0x1df/0x4c0 [ 28.950831][ T364] ? rcu_is_watching+0x16/0xd0 [ 28.950834][ T364] ? lock_acquire+0x13c/0x160 [ 28.950839][ T364] console_emit_next_record+0x22f/0x4c0 [ 28.950842][ T364] ? devkmsg_read+0x4b0/0x4b0 [ 28.950844][ T364] ? console_flush_one_record+0x106/0x710 [ 28.950847][ T364] ? rcu_is_watching+0x16/0xd0 [ 28.950850][ T364] ? lock_acquire+0x13c/0x160 [ 28.950854][ T364] console_flush_one_record+0x46f/0x710 [ 28.950858][ T364] ? console_emit_next_record+0x4c0/0x4c0 [ 28.950860][ T364] ? __lock_acquire+0x518/0xc20 [ 28.950865][ T364] console_unlock+0xee/0x1f0 [ 28.950868][ T364] ? console_flush_one_record+0x710/0x710 [ 28.950869][ T364] ? rcu_is_watching+0x16/0xd0 [ 28.950872][ T364] ? lock_acquire+0x60/0x160 [ 28.950875][ T364] ? __down_trylock_console_sem+0x5e/0xa0 [ 28.950877][ T364] ? vprintk_emit+0x320/0x3e0 [ 28.950880][ T364] vprintk_emit+0x37c/0x3e0 [ 28.950884][ T364] ? wake_up_klogd_work_func+0x90/0x90 [ 28.950890][ T364] ? xfrm_user_exit+0xd90/0xd90 [xfrm_user] [ 28.950894][ T364] _printk+0xc7/0x100 [ 28.950898][ T364] ? snapshot_read.cold+0x21/0x21 [ 28.950904][ T364] ? do_one_initcall+0x113/0x4f0 [ 28.950907][ T364] xfrm_user_init+0x15/0x1000 [xfrm_user] [ 28.950910][ T364] do_one_initcall+0x124/0x4f0 [ 28.950913][ T364] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 28.950917][ T364] ? do_init_module+0xae/0x8a0 [ 28.950920][ T364] ? kasan_unpoison+0x44/0x70 [ 28.950925][ T364] do_init_module+0x2ad/0x8a0 [ 28.950929][ T364] ? lockdep_hardirqs_on+0x91/0x130 [ 28.950933][ T364] ? free_module+0x470/0x470 [ 28.950937][ T364] ? kfree+0x123/0x590 [ 28.950941][ T364] load_module+0x1424/0x1bb0 [ 28.950948][ T364] ? layout_and_allocate.isra.0+0x680/0x680 [ 28.950953][ T364] ? backing_file_read_iter+0x541/0x790 [ 28.950957][ T364] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 28.950961][ T364] init_module_from_file+0x11f/0x1a0 [ 28.950964][ T364] ? __do_sys_init_module+0x220/0x220 [ 28.950972][ T364] ? __rwlock_init+0x150/0x150 [ 28.950976][ T364] ? do_raw_spin_unlock+0x59/0x250 [ 28.950979][ T364] idempotent_init_module+0x37b/0x7c0 [ 28.950983][ T364] ? init_module_from_file+0x1a0/0x1a0 [ 28.950989][ T364] ? rcu_is_watching+0x16/0xd0 [ 28.950991][ T364] ? cap_capable+0x1d7/0x3d0 [ 28.950997][ T364] __x64_sys_finit_module+0xdf/0x190 [ 28.951000][ T364] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 28.951004][ T364] do_syscall_64+0xff/0x530 [ 28.951006][ T364] ? exc_page_fault+0xee/0x100 [ 28.951008][ T364] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 28.951011][ T364] RIP: 0033:0x7fdcc8caf37d [ 28.951014][ T364] 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.951021][ T364] RSP: 002b:00007ffdb6284698 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 28.951024][ T364] RAX: ffffffffffffffda RBX: 0000563e495e4810 RCX: 00007fdcc8caf37d [ 28.951026][ T364] RDX: 0000000000000000 RSI: 0000563e19be8ffd RDI: 0000000000000000 [ 28.951027][ T364] RBP: 00007ffdb6284730 R08: 0000000000000000 R09: 0000000000000000 [ 28.951028][ T364] R10: 0000000000000000 R11: 0000000000000246 R12: 0000563e19be8ffd [ 28.951028][ T364] R13: 0000563e495e4960 R14: 0000000000040000 R15: 0000000000000000 [ 28.951035][ T364]