[ 29.600569][ T362] Initializing XFRM netlink socket [ 29.600591][ T362] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 29.600594][ T362] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 362, name: modprobe [ 29.600596][ T362] preempt_count: 1, expected: 0 [ 29.600597][ T362] RCU nest depth: 0, expected: 0 [ 29.600599][ T362] locks held by modprobe/362: 4, last CPU#2: [ 29.600602][ T362] #0: ffffffff90d69cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 29.600617][ T362] #1: ffffffff90d69d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 29.600623][ T362] #2: ffffffff90c89660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 29.600630][ T362] #3: ffffffff90c89560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 29.600636][ T362] irq event stamp: 30190 [ 29.600637][ T362] hardirqs last enabled at (30189): [] __down_trylock_console_sem+0x86/0xa0 [ 29.600640][ T362] hardirqs last disabled at (30190): [] console_emit_next_record+0x3d4/0x4c0 [ 29.600643][ T362] softirqs last enabled at (28384): [] handle_softirqs+0x67c/0x900 [ 29.600647][ T362] softirqs last disabled at (28377): [] __irq_exit_rcu+0x145/0x1c0 [ 29.600651][ T362] Preemption disabled at: [ 29.600651][ T362] [] vprintk_emit+0x31b/0x3e0 [ 29.600659][ T362] CPU: 2 UID: 0 PID: 362 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 29.600664][ T362] Tainted: [W]=WARN [ 29.600665][ T362] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 29.600667][ T362] Call Trace: [ 29.600669][ T362] [ 29.600671][ T362] dump_stack_lvl+0x6f/0xa0 [ 29.600679][ T362] ? vprintk_emit+0x31b/0x3e0 [ 29.600682][ T362] __might_resched.cold+0x1fe/0x2c1 [ 29.600688][ T362] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 29.600693][ T362] ? __kmalloc_noprof+0xdb/0x760 [ 29.600701][ T362] __kmalloc_noprof+0x443/0x760 [ 29.600704][ T362] ? alloc_buf.isra.0+0x4b/0x260 [ 29.600713][ T362] ? do_raw_spin_unlock+0x59/0x250 [ 29.600716][ T362] alloc_buf.isra.0+0x4b/0x260 [ 29.600722][ T362] put_chars+0x1e1/0x2f0 [ 29.600725][ T362] ? desc_read_finalized_seq+0x79/0x120 [ 29.600728][ T362] ? __send_to_port+0x420/0x420 [ 29.600733][ T362] ? rcu_read_lock_any_held+0x3c/0x90 [ 29.600738][ T362] ? validate_chain+0x38b/0xc20 [ 29.600745][ T362] hvc_console_print+0x292/0x780 [ 29.600749][ T362] ? __lock_acquire+0x518/0xc20 [ 29.600751][ T362] ? __lock_acquire+0x518/0xc20 [ 29.600759][ T362] ? hvc_write+0x3a0/0x3a0 [ 29.600761][ T362] ? console_emit_next_record+0x1df/0x4c0 [ 29.600766][ T362] ? rcu_is_watching+0x16/0xd0 [ 29.600771][ T362] ? lock_acquire+0x13c/0x160 [ 29.600777][ T362] console_emit_next_record+0x22f/0x4c0 [ 29.600783][ T362] ? devkmsg_read+0x4b0/0x4b0 [ 29.600786][ T362] ? console_flush_one_record+0x106/0x710 [ 29.600791][ T362] ? rcu_is_watching+0x16/0xd0 [ 29.600794][ T362] ? lock_acquire+0x13c/0x160 [ 29.600801][ T362] console_flush_one_record+0x46f/0x710 [ 29.600808][ T362] ? console_emit_next_record+0x4c0/0x4c0 [ 29.600811][ T362] ? __lock_acquire+0x518/0xc20 [ 29.600820][ T362] console_unlock+0xee/0x1f0 [ 29.600824][ T362] ? console_flush_one_record+0x710/0x710 [ 29.600827][ T362] ? rcu_is_watching+0x16/0xd0 [ 29.600830][ T362] ? lock_acquire+0x60/0x160 [ 29.600837][ T362] ? __down_trylock_console_sem+0x5e/0xa0 [ 29.600839][ T362] ? vprintk_emit+0x320/0x3e0 [ 29.600845][ T362] vprintk_emit+0x37c/0x3e0 [ 29.600851][ T362] ? wake_up_klogd_work_func+0x90/0x90 [ 29.600861][ T362] ? xfrm_user_exit+0xd90/0xd90 [xfrm_user] [ 29.600867][ T362] _printk+0xc7/0x100 [ 29.600872][ T362] ? snapshot_read.cold+0x21/0x21 [ 29.600883][ T362] ? do_one_initcall+0x113/0x4f0 [ 29.600888][ T362] xfrm_user_init+0x15/0x1000 [xfrm_user] [ 29.600892][ T362] do_one_initcall+0x124/0x4f0 [ 29.600896][ T362] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 29.600909][ T362] ? do_init_module+0xae/0x8a0 [ 29.600913][ T362] ? kasan_unpoison+0x44/0x70 [ 29.600921][ T362] do_init_module+0x2ad/0x8a0 [ 29.600927][ T362] ? lockdep_hardirqs_on+0x91/0x130 [ 29.600933][ T362] ? free_module+0x470/0x470 [ 29.600938][ T362] ? kfree+0x123/0x590 [ 29.600945][ T362] load_module+0x1424/0x1bb0 [ 29.600957][ T362] ? layout_and_allocate.isra.0+0x680/0x680 [ 29.600966][ T362] ? backing_file_read_iter+0x541/0x790 [ 29.600971][ T362] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 29.600977][ T362] init_module_from_file+0x11f/0x1a0 [ 29.600982][ T362] ? __do_sys_init_module+0x220/0x220 [ 29.600997][ T362] ? __rwlock_init+0x150/0x150 [ 29.601003][ T362] ? do_raw_spin_unlock+0x59/0x250 [ 29.601008][ T362] idempotent_init_module+0x37b/0x7c0 [ 29.601013][ T362] ? init_module_from_file+0x1a0/0x1a0 [ 29.601024][ T362] ? rcu_is_watching+0x16/0xd0 [ 29.601028][ T362] ? cap_capable+0x1d7/0x3d0 [ 29.601037][ T362] __x64_sys_finit_module+0xdf/0x190 [ 29.601040][ T362] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 29.601046][ T362] do_syscall_64+0xff/0x530 [ 29.601049][ T362] ? exc_page_fault+0xee/0x100 [ 29.601053][ T362] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 29.601056][ T362] RIP: 0033:0x7f3bcb88d37d [ 29.601062][ 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 [ 29.601064][ T362] RSP: 002b:00007fff97cea498 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 29.601069][ T362] RAX: ffffffffffffffda RBX: 000055e62958b810 RCX: 00007f3bcb88d37d [ 29.601072][ T362] RDX: 0000000000000000 RSI: 000055e5ea777ffd RDI: 0000000000000000 [ 29.601074][ T362] RBP: 00007fff97cea530 R08: 0000000000000000 R09: 0000000000000000 [ 29.601075][ T362] R10: 0000000000000000 R11: 0000000000000246 R12: 000055e5ea777ffd [ 29.601076][ T362] R13: 000055e62958b960 R14: 0000000000040000 R15: 0000000000000000 [ 29.601089][ T362]