[ 10.175332][ T187] ip (187) used greatest stack depth: 24336 bytes left [ 10.175349][ T187] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.175351][ T187] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 187, name: ip [ 10.175353][ T187] preempt_count: 2, expected: 0 [ 10.175353][ T187] RCU nest depth: 0, expected: 0 [ 10.175354][ T187] locks held by ip/187: 5, last CPU#3: [ 10.175357][ T187] #0: ffffffff878027b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 10.175369][ T187] #1: ffffffff87969cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.175375][ T187] #2: ffffffff87969d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.175379][ T187] #3: ffffffff87889660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.175383][ T187] #4: ffffffff87889560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 10.175387][ T187] irq event stamp: 45130 [ 10.175387][ T187] hardirqs last enabled at (45129): [] __down_trylock_console_sem+0x86/0xa0 [ 10.175390][ T187] hardirqs last disabled at (45130): [] console_emit_next_record+0x3d4/0x4c0 [ 10.175392][ T187] softirqs last enabled at (44724): [] handle_softirqs+0x67c/0x900 [ 10.175394][ T187] softirqs last disabled at (43295): [] __irq_exit_rcu+0x145/0x1c0 [ 10.175396][ T187] Preemption disabled at: [ 10.175397][ T187] [<0000000000000000>] 0x0 [ 10.175403][ T187] CPU: 3 UID: 0 PID: 187 Comm: ip Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.175407][ T187] Tainted: [W]=WARN [ 10.175408][ T187] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.175410][ T187] Call Trace: [ 10.175412][ T187] [ 10.175414][ T187] dump_stack_lvl+0x6f/0xa0 [ 10.175422][ T187] __might_resched.cold+0x1fe/0x2c1 [ 10.175428][ T187] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.175432][ T187] ? __kmalloc_noprof+0xdb/0x760 [ 10.175437][ T187] __kmalloc_noprof+0x443/0x760 [ 10.175440][ T187] ? alloc_buf.isra.0+0x4b/0x260 [ 10.175446][ T187] ? do_raw_spin_unlock+0x59/0x250 [ 10.175448][ T187] alloc_buf.isra.0+0x4b/0x260 [ 10.175451][ T187] put_chars+0x1e1/0x2f0 [ 10.175454][ T187] ? __send_to_port+0x420/0x420 [ 10.175456][ T187] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.175460][ T187] ? validate_chain+0x38b/0xc20 [ 10.175465][ T187] hvc_console_print+0x292/0x780 [ 10.175471][ T187] ? hvc_write+0x3a0/0x3a0 [ 10.175473][ T187] ? rcu_is_watching+0x16/0xd0 [ 10.175476][ T187] ? lock_acquire+0x13c/0x160 [ 10.175480][ T187] console_emit_next_record+0x22f/0x4c0 [ 10.175483][ T187] ? devkmsg_read+0x4b0/0x4b0 [ 10.175485][ T187] ? console_flush_one_record+0x106/0x710 [ 10.175488][ T187] ? rcu_is_watching+0x16/0xd0 [ 10.175491][ T187] ? lock_acquire+0x13c/0x160 [ 10.175495][ T187] console_flush_one_record+0x46f/0x710 [ 10.175499][ T187] ? console_emit_next_record+0x4c0/0x4c0 [ 10.175500][ T187] ? __lock_acquire+0x518/0xc20 [ 10.175505][ T187] console_unlock+0xee/0x1f0 [ 10.175508][ T187] ? console_flush_one_record+0x710/0x710 [ 10.175510][ T187] ? rcu_is_watching+0x16/0xd0 [ 10.175512][ T187] ? lock_acquire+0x60/0x160 [ 10.175516][ T187] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.175517][ T187] ? vprintk_emit+0x320/0x3e0 [ 10.175521][ T187] vprintk_emit+0x37c/0x3e0 [ 10.175524][ T187] ? wake_up_klogd_work_func+0x90/0x90 [ 10.175528][ T187] ? __lock_acquire+0x518/0xc20 [ 10.175531][ T187] _printk+0xc7/0x100 [ 10.175535][ T187] ? snapshot_read.cold+0x21/0x21 [ 10.175538][ T187] ? do_raw_spin_lock+0x131/0x280 [ 10.175540][ T187] ? __rwlock_init+0x150/0x150 [ 10.175544][ T187] ? do_raw_spin_lock+0x131/0x280 [ 10.175547][ T187] do_exit.cold+0x82/0x9c [ 10.175550][ T187] ? exit_notify+0x890/0x890 [ 10.175552][ T187] ? __lock_release.isra.0+0x69/0x1a0 [ 10.175555][ T187] ? rcu_is_watching+0x16/0xd0 [ 10.175559][ T187] do_group_exit+0xb8/0x370 [ 10.175562][ T187] __x64_sys_exit_group+0x3c/0x50 [ 10.175563][ T187] x64_sys_call+0x1567/0x1570 [ 10.175566][ T187] do_syscall_64+0xff/0x530 [ 10.175569][ T187] ? exc_page_fault+0xee/0x100 [ 10.175572][ T187] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.175574][ T187] RIP: 0033:0x7f300a70f1b8 [ 10.175576][ T187] Code: Unable to access opcode bytes at 0x7f300a70f18e. [ 10.175577][ T187] RSP: 002b:00007ffcb14933f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 10.175580][ T187] RAX: ffffffffffffffda RBX: 00007f300a83ff88 RCX: 00007f300a70f1b8 [ 10.175582][ T187] RDX: 00007f300a459fc8 RSI: fffffffffffffeb8 RDI: 0000000000000000 [ 10.175583][ T187] RBP: 00007ffcb1493450 R08: 0000000000000000 R09: 0000000000008010 [ 10.175583][ T187] R10: 00007ffcb1493210 R11: 0000000000000246 R12: 0000000000000001 [ 10.175584][ T187] R13: 0000000000000000 R14: 00007f300a83e680 R15: 00007f300a83ffa0 [ 10.175591][ T187] [ 29.174081][ T362] Initializing XFRM netlink socket [ 29.174100][ T362] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 29.174103][ T362] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 362, name: modprobe [ 29.174104][ T362] preempt_count: 1, expected: 0 [ 29.174106][ T362] RCU nest depth: 0, expected: 0 [ 29.174109][ T362] locks held by modprobe/362: 4, last CPU#0: [ 29.174111][ T362] #0: ffffffff87969cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 29.174124][ T362] #1: ffffffff87969d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 29.174129][ T362] #2: ffffffff87889660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 29.174132][ T362] #3: ffffffff87889560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 29.174137][ T362] irq event stamp: 23374 [ 29.174138][ T362] hardirqs last enabled at (23373): [] __down_trylock_console_sem+0x86/0xa0 [ 29.174141][ T362] hardirqs last disabled at (23374): [] console_emit_next_record+0x3d4/0x4c0 [ 29.174142][ T362] softirqs last enabled at (21254): [] handle_softirqs+0x67c/0x900 [ 29.174146][ T362] softirqs last disabled at (20331): [] __irq_exit_rcu+0x145/0x1c0 [ 29.174148][ T362] Preemption disabled at: [ 29.174148][ T362] [] vprintk_emit+0x31b/0x3e0 [ 29.174154][ T362] CPU: 0 UID: 0 PID: 362 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 29.174158][ T362] Tainted: [W]=WARN [ 29.174159][ T362] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 29.174160][ T362] Call Trace: [ 29.174162][ T362] [ 29.174163][ T362] dump_stack_lvl+0x6f/0xa0 [ 29.174169][ T362] ? vprintk_emit+0x31b/0x3e0 [ 29.174171][ T362] __might_resched.cold+0x1fe/0x2c1 [ 29.174176][ T362] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 29.174180][ T362] ? __kmalloc_noprof+0xdb/0x760 [ 29.174185][ T362] __kmalloc_noprof+0x443/0x760 [ 29.174187][ T362] ? alloc_buf.isra.0+0x4b/0x260 [ 29.174193][ T362] ? do_raw_spin_unlock+0x59/0x250 [ 29.174196][ T362] alloc_buf.isra.0+0x4b/0x260 [ 29.174199][ T362] put_chars+0x1e1/0x2f0 [ 29.174201][ T362] ? desc_read_finalized_seq+0x79/0x120 [ 29.174203][ T362] ? __send_to_port+0x420/0x420 [ 29.174206][ T362] ? rcu_read_lock_any_held+0x3c/0x90 [ 29.174210][ T362] ? validate_chain+0x38b/0xc20 [ 29.174214][ T362] hvc_console_print+0x292/0x780 [ 29.174216][ T362] ? __lock_acquire+0x518/0xc20 [ 29.174218][ T362] ? __lock_acquire+0x518/0xc20 [ 29.174222][ T362] ? hvc_write+0x3a0/0x3a0 [ 29.174224][ T362] ? console_emit_next_record+0x1df/0x4c0 [ 29.174227][ T362] ? rcu_is_watching+0x16/0xd0 [ 29.174230][ T362] ? lock_acquire+0x13c/0x160 [ 29.174234][ T362] console_emit_next_record+0x22f/0x4c0 [ 29.174237][ T362] ? devkmsg_read+0x4b0/0x4b0 [ 29.174239][ T362] ? console_flush_one_record+0x106/0x710 [ 29.174242][ T362] ? rcu_is_watching+0x16/0xd0 [ 29.174245][ T362] ? lock_acquire+0x13c/0x160 [ 29.174253][ T362] console_flush_one_record+0x46f/0x710 [ 29.174258][ T362] ? console_emit_next_record+0x4c0/0x4c0 [ 29.174259][ T362] ? __lock_acquire+0x518/0xc20 [ 29.174264][ T362] console_unlock+0xee/0x1f0 [ 29.174267][ T362] ? console_flush_one_record+0x710/0x710 [ 29.174269][ T362] ? rcu_is_watching+0x16/0xd0 [ 29.174271][ T362] ? lock_acquire+0x60/0x160 [ 29.174275][ T362] ? __down_trylock_console_sem+0x5e/0xa0 [ 29.174276][ T362] ? vprintk_emit+0x320/0x3e0 [ 29.174280][ T362] vprintk_emit+0x37c/0x3e0 [ 29.174284][ T362] ? wake_up_klogd_work_func+0x90/0x90 [ 29.174289][ T362] ? xfrm_user_exit+0xd90/0xd90 [xfrm_user] [ 29.174294][ T362] _printk+0xc7/0x100 [ 29.174298][ T362] ? snapshot_read.cold+0x21/0x21 [ 29.174304][ T362] ? do_one_initcall+0x113/0x4f0 [ 29.174307][ T362] xfrm_user_init+0x15/0x1000 [xfrm_user] [ 29.174311][ T362] do_one_initcall+0x124/0x4f0 [ 29.174314][ T362] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 29.174318][ T362] ? do_init_module+0xae/0x8a0 [ 29.174321][ T362] ? kasan_unpoison+0x44/0x70 [ 29.174326][ T362] do_init_module+0x2ad/0x8a0 [ 29.174330][ T362] ? lockdep_hardirqs_on+0x91/0x130 [ 29.174334][ T362] ? free_module+0x470/0x470 [ 29.174337][ T362] ? kfree+0x123/0x590 [ 29.174342][ T362] load_module+0x1424/0x1bb0 [ 29.174349][ T362] ? layout_and_allocate.isra.0+0x680/0x680 [ 29.174354][ T362] ? backing_file_read_iter+0x541/0x790 [ 29.174357][ T362] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 29.174361][ T362] init_module_from_file+0x11f/0x1a0 [ 29.174364][ T362] ? __do_sys_init_module+0x220/0x220 [ 29.174372][ T362] ? __rwlock_init+0x150/0x150 [ 29.174375][ T362] ? do_raw_spin_unlock+0x59/0x250 [ 29.174378][ T362] idempotent_init_module+0x37b/0x7c0 [ 29.174382][ T362] ? init_module_from_file+0x1a0/0x1a0 [ 29.174388][ T362] ? rcu_is_watching+0x16/0xd0 [ 29.174390][ T362] ? cap_capable+0x1d7/0x3d0 [ 29.174396][ T362] __x64_sys_finit_module+0xdf/0x190 [ 29.174398][ T362] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 29.174402][ T362] do_syscall_64+0xff/0x530 [ 29.174403][ T362] ? exc_page_fault+0xee/0x100 [ 29.174406][ T362] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 29.174408][ T362] RIP: 0033:0x7f512411037d [ 29.174412][ 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.174414][ T362] RSP: 002b:00007ffe9084c968 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 29.174416][ T362] RAX: ffffffffffffffda RBX: 000055f021e9a810 RCX: 00007f512411037d [ 29.174418][ T362] RDX: 0000000000000000 RSI: 000055f012d3cffd RDI: 0000000000000000 [ 29.174419][ T362] RBP: 00007ffe9084ca00 R08: 0000000000000000 R09: 0000000000000000 [ 29.174419][ T362] R10: 0000000000000000 R11: 0000000000000246 R12: 000055f012d3cffd [ 29.174420][ T362] R13: 000055f021e9a960 R14: 0000000000040000 R15: 0000000000000000 [ 29.174427][ T362]