[ 10.162543][ T187] ip (187) used greatest stack depth: 23848 bytes left [ 10.162560][ T187] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.162562][ T187] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 187, name: ip [ 10.162564][ T187] preempt_count: 2, expected: 0 [ 10.162565][ T187] RCU nest depth: 0, expected: 0 [ 10.162566][ T187] locks held by ip/187: 5, last CPU#3: [ 10.162568][ T187] #0: ffffffffb46027b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 10.162581][ T187] #1: ffffffffb4769cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.162587][ T187] #2: ffffffffb4769d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.162591][ T187] #3: ffffffffb4689660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.162595][ T187] #4: ffffffffb4689560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 10.162599][ T187] irq event stamp: 47992 [ 10.162599][ T187] hardirqs last enabled at (47991): [] __down_trylock_console_sem+0x86/0xa0 [ 10.162602][ T187] hardirqs last disabled at (47992): [] console_emit_next_record+0x3d4/0x4c0 [ 10.162604][ T187] softirqs last enabled at (47550): [] handle_softirqs+0x67c/0x900 [ 10.162606][ T187] softirqs last disabled at (47545): [] __irq_exit_rcu+0x145/0x1c0 [ 10.162608][ T187] Preemption disabled at: [ 10.162609][ T187] [<0000000000000000>] 0x0 [ 10.162616][ T187] CPU: 3 UID: 0 PID: 187 Comm: ip Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.162619][ T187] Tainted: [W]=WARN [ 10.162620][ T187] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.162622][ T187] Call Trace: [ 10.162624][ T187] [ 10.162625][ T187] dump_stack_lvl+0x6f/0xa0 [ 10.162631][ T187] __might_resched.cold+0x1fe/0x2c1 [ 10.162636][ T187] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.162640][ T187] ? __kmalloc_noprof+0xdb/0x760 [ 10.162645][ T187] __kmalloc_noprof+0x443/0x760 [ 10.162648][ T187] ? alloc_buf.isra.0+0x4b/0x260 [ 10.162653][ T187] ? do_raw_spin_unlock+0x59/0x250 [ 10.162656][ T187] alloc_buf.isra.0+0x4b/0x260 [ 10.162659][ T187] put_chars+0x1e1/0x2f0 [ 10.162662][ T187] ? __send_to_port+0x420/0x420 [ 10.162663][ T187] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.162668][ T187] ? validate_chain+0x38b/0xc20 [ 10.162673][ T187] hvc_console_print+0x292/0x780 [ 10.162680][ T187] ? hvc_write+0x3a0/0x3a0 [ 10.162682][ T187] ? rcu_is_watching+0x16/0xd0 [ 10.162684][ T187] ? lock_acquire+0x13c/0x160 [ 10.162688][ T187] console_emit_next_record+0x22f/0x4c0 [ 10.162692][ T187] ? devkmsg_read+0x4b0/0x4b0 [ 10.162694][ T187] ? console_flush_one_record+0x106/0x710 [ 10.162697][ T187] ? rcu_is_watching+0x16/0xd0 [ 10.162699][ T187] ? lock_acquire+0x13c/0x160 [ 10.162703][ T187] console_flush_one_record+0x46f/0x710 [ 10.162707][ T187] ? console_emit_next_record+0x4c0/0x4c0 [ 10.162709][ T187] ? __lock_acquire+0x518/0xc20 [ 10.162714][ T187] console_unlock+0xee/0x1f0 [ 10.162717][ T187] ? console_flush_one_record+0x710/0x710 [ 10.162719][ T187] ? rcu_is_watching+0x16/0xd0 [ 10.162721][ T187] ? lock_acquire+0x60/0x160 [ 10.162724][ T187] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.162726][ T187] ? vprintk_emit+0x320/0x3e0 [ 10.162729][ T187] vprintk_emit+0x37c/0x3e0 [ 10.162733][ T187] ? wake_up_klogd_work_func+0x90/0x90 [ 10.162736][ T187] ? __lock_acquire+0x518/0xc20 [ 10.162740][ T187] _printk+0xc7/0x100 [ 10.162744][ T187] ? snapshot_read.cold+0x21/0x21 [ 10.162747][ T187] ? do_raw_spin_lock+0x131/0x280 [ 10.162749][ T187] ? __rwlock_init+0x150/0x150 [ 10.162753][ T187] ? do_raw_spin_lock+0x131/0x280 [ 10.162756][ T187] do_exit.cold+0x82/0x9c [ 10.162759][ T187] ? exit_notify+0x890/0x890 [ 10.162761][ T187] ? __lock_release.isra.0+0x69/0x1a0 [ 10.162764][ T187] ? rcu_is_watching+0x16/0xd0 [ 10.162768][ T187] do_group_exit+0xb8/0x370 [ 10.162771][ T187] __x64_sys_exit_group+0x3c/0x50 [ 10.162773][ T187] x64_sys_call+0x1567/0x1570 [ 10.162775][ T187] do_syscall_64+0xff/0x530 [ 10.162778][ T187] ? exc_page_fault+0xee/0x100 [ 10.162781][ T187] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.162784][ T187] RIP: 0033:0x7fa2b46a91b8 [ 10.162786][ T187] Code: Unable to access opcode bytes at 0x7fa2b46a918e. [ 10.162787][ T187] RSP: 002b:00007ffcf4f70678 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 10.162796][ T187] RAX: ffffffffffffffda RBX: 00007fa2b47d9f88 RCX: 00007fa2b46a91b8 [ 10.162797][ T187] RDX: 00007fa2b43f3fc8 RSI: fffffffffffffeb8 RDI: 0000000000000000 [ 10.162798][ T187] RBP: 00007ffcf4f706d0 R08: 0000000000000000 R09: 0000000000008010 [ 10.162799][ T187] R10: 00007ffcf4f70490 R11: 0000000000000246 R12: 0000000000000001 [ 10.162800][ T187] R13: 0000000000000000 R14: 00007fa2b47d8680 R15: 00007fa2b47d9fa0 [ 10.162807][ T187] [ 29.179179][ T361] Initializing XFRM netlink socket [ 29.179198][ T361] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 29.179201][ T361] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 361, name: modprobe [ 29.179202][ T361] preempt_count: 1, expected: 0 [ 29.179203][ T361] RCU nest depth: 0, expected: 0 [ 29.179204][ T361] locks held by modprobe/361: 4, last CPU#0: [ 29.179207][ T361] #0: ffffffffb4769cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 29.179219][ T361] #1: ffffffffb4769d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 29.179223][ T361] #2: ffffffffb4689660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 29.179227][ T361] #3: ffffffffb4689560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 29.179231][ T361] irq event stamp: 36410 [ 29.179232][ T361] hardirqs last enabled at (36409): [] __down_trylock_console_sem+0x86/0xa0 [ 29.179234][ T361] hardirqs last disabled at (36410): [] console_emit_next_record+0x3d4/0x4c0 [ 29.179237][ T361] softirqs last enabled at (34346): [] handle_softirqs+0x67c/0x900 [ 29.179240][ T361] softirqs last disabled at (34339): [] __irq_exit_rcu+0x145/0x1c0 [ 29.179242][ T361] Preemption disabled at: [ 29.179242][ T361] [] vprintk_emit+0x31b/0x3e0 [ 29.179248][ T361] CPU: 0 UID: 0 PID: 361 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 29.179252][ T361] Tainted: [W]=WARN [ 29.179252][ T361] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 29.179254][ T361] Call Trace: [ 29.179255][ T361] [ 29.179257][ T361] dump_stack_lvl+0x6f/0xa0 [ 29.179263][ T361] ? vprintk_emit+0x31b/0x3e0 [ 29.179265][ T361] __might_resched.cold+0x1fe/0x2c1 [ 29.179269][ T361] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 29.179273][ T361] ? __kmalloc_noprof+0xdb/0x760 [ 29.179278][ T361] __kmalloc_noprof+0x443/0x760 [ 29.179280][ T361] ? alloc_buf.isra.0+0x4b/0x260 [ 29.179286][ T361] ? do_raw_spin_unlock+0x59/0x250 [ 29.179289][ T361] alloc_buf.isra.0+0x4b/0x260 [ 29.179292][ T361] put_chars+0x1e1/0x2f0 [ 29.179294][ T361] ? desc_read_finalized_seq+0x79/0x120 [ 29.179297][ T361] ? __send_to_port+0x420/0x420 [ 29.179300][ T361] ? rcu_read_lock_any_held+0x3c/0x90 [ 29.179303][ T361] ? validate_chain+0x38b/0xc20 [ 29.179307][ T361] hvc_console_print+0x292/0x780 [ 29.179310][ T361] ? __lock_acquire+0x518/0xc20 [ 29.179311][ T361] ? __lock_acquire+0x518/0xc20 [ 29.179316][ T361] ? hvc_write+0x3a0/0x3a0 [ 29.179317][ T361] ? console_emit_next_record+0x1df/0x4c0 [ 29.179320][ T361] ? rcu_is_watching+0x16/0xd0 [ 29.179323][ T361] ? lock_acquire+0x13c/0x160 [ 29.179327][ T361] console_emit_next_record+0x22f/0x4c0 [ 29.179331][ T361] ? devkmsg_read+0x4b0/0x4b0 [ 29.179333][ T361] ? console_flush_one_record+0x106/0x710 [ 29.179336][ T361] ? rcu_is_watching+0x16/0xd0 [ 29.179338][ T361] ? lock_acquire+0x13c/0x160 [ 29.179342][ T361] console_flush_one_record+0x46f/0x710 [ 29.179346][ T361] ? console_emit_next_record+0x4c0/0x4c0 [ 29.179348][ T361] ? __lock_acquire+0x518/0xc20 [ 29.179354][ T361] console_unlock+0xee/0x1f0 [ 29.179356][ T361] ? console_flush_one_record+0x710/0x710 [ 29.179358][ T361] ? rcu_is_watching+0x16/0xd0 [ 29.179361][ T361] ? lock_acquire+0x60/0x160 [ 29.179364][ T361] ? __down_trylock_console_sem+0x5e/0xa0 [ 29.179366][ T361] ? vprintk_emit+0x320/0x3e0 [ 29.179369][ T361] vprintk_emit+0x37c/0x3e0 [ 29.179373][ T361] ? wake_up_klogd_work_func+0x90/0x90 [ 29.179379][ T361] ? xfrm_user_exit+0xd90/0xd90 [xfrm_user] [ 29.179382][ T361] _printk+0xc7/0x100 [ 29.179386][ T361] ? snapshot_read.cold+0x21/0x21 [ 29.179393][ T361] ? do_one_initcall+0x113/0x4f0 [ 29.179396][ T361] xfrm_user_init+0x15/0x1000 [xfrm_user] [ 29.179399][ T361] do_one_initcall+0x124/0x4f0 [ 29.179401][ T361] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 29.179406][ T361] ? do_init_module+0xae/0x8a0 [ 29.179409][ T361] ? kasan_unpoison+0x44/0x70 [ 29.179414][ T361] do_init_module+0x2ad/0x8a0 [ 29.179417][ T361] ? lockdep_hardirqs_on+0x91/0x130 [ 29.179422][ T361] ? free_module+0x470/0x470 [ 29.179425][ T361] ? kfree+0x123/0x590 [ 29.179429][ T361] load_module+0x1424/0x1bb0 [ 29.179436][ T361] ? layout_and_allocate.isra.0+0x680/0x680 [ 29.179441][ T361] ? backing_file_read_iter+0x541/0x790 [ 29.179445][ T361] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 29.179449][ T361] init_module_from_file+0x11f/0x1a0 [ 29.179452][ T361] ? __do_sys_init_module+0x220/0x220 [ 29.179460][ T361] ? __rwlock_init+0x150/0x150 [ 29.179464][ T361] ? do_raw_spin_unlock+0x59/0x250 [ 29.179467][ T361] idempotent_init_module+0x37b/0x7c0 [ 29.179470][ T361] ? init_module_from_file+0x1a0/0x1a0 [ 29.179476][ T361] ? rcu_is_watching+0x16/0xd0 [ 29.179479][ T361] ? cap_capable+0x1d7/0x3d0 [ 29.179485][ T361] __x64_sys_finit_module+0xdf/0x190 [ 29.179487][ T361] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 29.179491][ T361] do_syscall_64+0xff/0x530 [ 29.179492][ T361] ? exc_page_fault+0xee/0x100 [ 29.179495][ T361] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 29.179497][ T361] RIP: 0033:0x7f8ed90a537d [ 29.179501][ T361] 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.179502][ T361] RSP: 002b:00007ffdfd555248 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 29.179505][ T361] RAX: ffffffffffffffda RBX: 00005574a069f810 RCX: 00007f8ed90a537d [ 29.179507][ T361] RDX: 0000000000000000 RSI: 0000557466e1fffd RDI: 0000000000000000 [ 29.179508][ T361] RBP: 00007ffdfd5552e0 R08: 0000000000000000 R09: 0000000000000000 [ 29.179509][ T361] R10: 0000000000000000 R11: 0000000000000246 R12: 0000557466e1fffd [ 29.179509][ T361] R13: 00005574a069f960 R14: 0000000000040000 R15: 0000000000000000 [ 29.179516][ T361]