[ 12.213452][ T269] Initializing XFRM netlink socket [ 12.213469][ T269] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 12.213471][ T269] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 269, name: modprobe [ 12.213473][ T269] preempt_count: 1, expected: 0 [ 12.213474][ T269] RCU nest depth: 0, expected: 0 [ 12.213475][ T269] locks held by modprobe/269: 4, last CPU#0: [ 12.213477][ T269] #0: ffffffffa7d7ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 12.213489][ T269] #1: ffffffffa7d7de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 12.213494][ T269] #2: ffffffffa7c9d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 12.213498][ T269] #3: ffffffffa7c9d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 12.213503][ T269] irq event stamp: 29844 [ 12.213504][ T269] hardirqs last enabled at (29843): [] __down_trylock_console_sem+0x86/0xa0 [ 12.213507][ T269] hardirqs last disabled at (29844): [] console_emit_next_record+0x3d4/0x4c0 [ 12.213509][ T269] softirqs last enabled at (27830): [] handle_softirqs+0x67c/0x900 [ 12.213512][ T269] softirqs last disabled at (27301): [] __irq_exit_rcu+0x145/0x1c0 [ 12.213515][ T269] Preemption disabled at: [ 12.213516][ T269] [] vprintk_emit+0x31b/0x3e0 [ 12.213521][ T269] CPU: 0 UID: 0 PID: 269 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 12.213525][ T269] Tainted: [W]=WARN [ 12.213526][ T269] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.213527][ T269] Call Trace: [ 12.213529][ T269] [ 12.213530][ T269] dump_stack_lvl+0x6f/0xa0 [ 12.213536][ T269] ? vprintk_emit+0x31b/0x3e0 [ 12.213538][ T269] __might_resched.cold+0x1fe/0x2c1 [ 12.213542][ T269] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 12.213547][ T269] ? __kmalloc_noprof+0xdb/0x760 [ 12.213551][ T269] __kmalloc_noprof+0x443/0x760 [ 12.213553][ T269] ? alloc_buf.isra.0+0x4b/0x260 [ 12.213560][ T269] ? do_raw_spin_unlock+0x59/0x250 [ 12.213563][ T269] alloc_buf.isra.0+0x4b/0x260 [ 12.213567][ T269] put_chars+0x1e1/0x2f0 [ 12.213569][ T269] ? desc_read_finalized_seq+0x79/0x120 [ 12.213571][ T269] ? __send_to_port+0x420/0x420 [ 12.213574][ T269] ? rcu_read_lock_any_held+0x3c/0x90 [ 12.213577][ T269] ? validate_chain+0x38b/0xc20 [ 12.213582][ T269] hvc_console_print+0x292/0x780 [ 12.213587][ T269] ? __lock_acquire+0x518/0xc20 [ 12.213590][ T269] ? __lock_acquire+0x518/0xc20 [ 12.213598][ T269] ? hvc_write+0x3a0/0x3a0 [ 12.213601][ T269] ? console_emit_next_record+0x1df/0x4c0 [ 12.213605][ T269] ? rcu_is_watching+0x16/0xd0 [ 12.213607][ T269] ? lock_acquire+0x13c/0x160 [ 12.213611][ T269] console_emit_next_record+0x22f/0x4c0 [ 12.213616][ T269] ? devkmsg_read+0x4b0/0x4b0 [ 12.213617][ T269] ? console_flush_one_record+0x106/0x710 [ 12.213621][ T269] ? rcu_is_watching+0x16/0xd0 [ 12.213622][ T269] ? lock_acquire+0x13c/0x160 [ 12.213627][ T269] console_flush_one_record+0x46f/0x710 [ 12.213631][ T269] ? console_emit_next_record+0x4c0/0x4c0 [ 12.213633][ T269] ? __lock_acquire+0x518/0xc20 [ 12.213638][ T269] console_unlock+0xee/0x1f0 [ 12.213641][ T269] ? console_flush_one_record+0x710/0x710 [ 12.213643][ T269] ? rcu_is_watching+0x16/0xd0 [ 12.213645][ T269] ? lock_acquire+0xe0/0x160 [ 12.213649][ T269] ? __down_trylock_console_sem+0x5e/0xa0 [ 12.213650][ T269] ? vprintk_emit+0x320/0x3e0 [ 12.213653][ T269] vprintk_emit+0x37c/0x3e0 [ 12.213657][ T269] ? wake_up_klogd_work_func+0x90/0x90 [ 12.213662][ T269] ? nft_chain_route_fini+0xcc0/0xcc0 [nf_tables] [ 12.213671][ T269] _printk+0xc7/0x100 [ 12.213675][ T269] ? snapshot_read.cold+0x21/0x21 [ 12.213681][ T269] ? do_one_initcall+0x113/0x4f0 [ 12.213685][ T269] xfrm_user_init+0x15/0x1000 [xfrm_user] [ 12.213689][ T269] do_one_initcall+0x124/0x4f0 [ 12.213691][ T269] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 12.213696][ T269] ? do_init_module+0xae/0x8a0 [ 12.213699][ T269] ? kasan_unpoison+0x44/0x70 [ 12.213705][ T269] do_init_module+0x2ad/0x8a0 [ 12.213708][ T269] ? lockdep_hardirqs_on+0x91/0x130 [ 12.213712][ T269] ? free_module+0x470/0x470 [ 12.213714][ T269] ? kfree+0x123/0x590 [ 12.213718][ T269] load_module+0x1424/0x1bb0 [ 12.213724][ T269] ? security_kernel_post_read_file+0x2f/0x60 [ 12.213728][ T269] ? layout_and_allocate.isra.0+0x680/0x680 [ 12.213733][ T269] ? backing_file_read_iter+0x541/0x790 [ 12.213737][ T269] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 12.213741][ T269] init_module_from_file+0x11f/0x1a0 [ 12.213743][ T269] ? __do_sys_init_module+0x270/0x270 [ 12.213751][ T269] ? __rwlock_init+0x150/0x150 [ 12.213755][ T269] ? do_raw_spin_unlock+0x59/0x250 [ 12.213758][ T269] idempotent_init_module+0x37b/0x7c0 [ 12.213761][ T269] ? init_module_from_file+0x1a0/0x1a0 [ 12.213766][ T269] ? cap_capable+0x1d7/0x3d0 [ 12.213769][ T269] ? __x64_sys_pread64+0x18d/0x250 [ 12.213774][ T269] __x64_sys_finit_module+0xdf/0x190 [ 12.213776][ T269] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 12.213780][ T269] do_syscall_64+0xff/0x530 [ 12.213783][ T269] ? exc_page_fault+0xee/0x100 [ 12.213785][ T269] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 12.213788][ T269] RIP: 0033:0x7fb98bf1f37d [ 12.213791][ T269] 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 [ 12.213793][ T269] RSP: 002b:00007fffdb0967c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 12.213796][ T269] RAX: ffffffffffffffda RBX: 000055bf4cde6810 RCX: 00007fb98bf1f37d [ 12.213797][ T269] RDX: 0000000000000000 RSI: 000055bf4c10dffd RDI: 0000000000000000 [ 12.213798][ T269] RBP: 00007fffdb096860 R08: 0000000000000000 R09: 0000000000000000 [ 12.213799][ T269] R10: 0000000000000000 R11: 0000000000000246 R12: 000055bf4c10dffd [ 12.213800][ T269] R13: 000055bf4cde6960 R14: 0000000000040000 R15: 0000000000000000 [ 12.213813][ T269]