[ 10.382338][ T187] ip (187) used greatest stack depth: 24216 bytes left [ 10.382354][ T187] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.382356][ T187] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 187, name: ip [ 10.382358][ T187] preempt_count: 2, expected: 0 [ 10.382359][ T187] RCU nest depth: 0, expected: 0 [ 10.382360][ T187] locks held by ip/187: 5, last CPU#1: [ 10.382362][ T187] #0: ffffffffa58027b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 10.382374][ T187] #1: ffffffffa5969cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.382380][ T187] #2: ffffffffa5969d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.382383][ T187] #3: ffffffffa5889660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.382387][ T187] #4: ffffffffa5889560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 10.382392][ T187] irq event stamp: 53540 [ 10.382393][ T187] hardirqs last enabled at (53539): [] __down_trylock_console_sem+0x86/0xa0 [ 10.382395][ T187] hardirqs last disabled at (53540): [] console_emit_next_record+0x3d4/0x4c0 [ 10.382397][ T187] softirqs last enabled at (52248): [] netlink_release+0x17b/0xcf0 [ 10.382401][ T187] softirqs last disabled at (52246): [] netlink_release+0xd2/0xcf0 [ 10.382403][ T187] Preemption disabled at: [ 10.382404][ T187] [<0000000000000000>] 0x0 [ 10.382411][ T187] CPU: 1 UID: 0 PID: 187 Comm: ip Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.382414][ T187] Tainted: [W]=WARN [ 10.382415][ T187] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.382417][ T187] Call Trace: [ 10.382419][ T187] [ 10.382420][ T187] dump_stack_lvl+0x6f/0xa0 [ 10.382426][ T187] __might_resched.cold+0x1fe/0x2c1 [ 10.382431][ T187] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.382435][ T187] ? __kmalloc_noprof+0xdb/0x760 [ 10.382440][ T187] __kmalloc_noprof+0x443/0x760 [ 10.382443][ T187] ? alloc_buf.isra.0+0x4b/0x260 [ 10.382448][ T187] ? do_raw_spin_unlock+0x59/0x250 [ 10.382451][ T187] alloc_buf.isra.0+0x4b/0x260 [ 10.382454][ T187] put_chars+0x1e1/0x2f0 [ 10.382457][ T187] ? __send_to_port+0x420/0x420 [ 10.382458][ T187] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.382463][ T187] ? validate_chain+0x38b/0xc20 [ 10.382468][ T187] hvc_console_print+0x292/0x780 [ 10.382475][ T187] ? hvc_write+0x3a0/0x3a0 [ 10.382477][ T187] ? rcu_is_watching+0x16/0xd0 [ 10.382479][ T187] ? lock_acquire+0x13c/0x160 [ 10.382483][ T187] console_emit_next_record+0x22f/0x4c0 [ 10.382487][ T187] ? devkmsg_read+0x4b0/0x4b0 [ 10.382489][ T187] ? console_flush_one_record+0x106/0x710 [ 10.382492][ T187] ? rcu_is_watching+0x16/0xd0 [ 10.382494][ T187] ? lock_acquire+0x13c/0x160 [ 10.382498][ T187] console_flush_one_record+0x46f/0x710 [ 10.382502][ T187] ? console_emit_next_record+0x4c0/0x4c0 [ 10.382504][ T187] ? __lock_acquire+0x518/0xc20 [ 10.382509][ T187] console_unlock+0xee/0x1f0 [ 10.382512][ T187] ? console_flush_one_record+0x710/0x710 [ 10.382514][ T187] ? rcu_is_watching+0x16/0xd0 [ 10.382516][ T187] ? lock_acquire+0x60/0x160 [ 10.382520][ T187] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.382521][ T187] ? vprintk_emit+0x320/0x3e0 [ 10.382525][ T187] vprintk_emit+0x37c/0x3e0 [ 10.382528][ T187] ? wake_up_klogd_work_func+0x90/0x90 [ 10.382532][ T187] ? __lock_acquire+0x518/0xc20 [ 10.382535][ T187] _printk+0xc7/0x100 [ 10.382539][ T187] ? snapshot_read.cold+0x21/0x21 [ 10.382542][ T187] ? do_raw_spin_lock+0x131/0x280 [ 10.382545][ T187] ? __rwlock_init+0x150/0x150 [ 10.382548][ T187] ? do_raw_spin_lock+0x131/0x280 [ 10.382551][ T187] do_exit.cold+0x82/0x9c [ 10.382555][ T187] ? exit_notify+0x890/0x890 [ 10.382557][ T187] ? __lock_release.isra.0+0x69/0x1a0 [ 10.382560][ T187] ? rcu_is_watching+0x16/0xd0 [ 10.382564][ T187] do_group_exit+0xb8/0x370 [ 10.382567][ T187] __x64_sys_exit_group+0x3c/0x50 [ 10.382568][ T187] x64_sys_call+0x1567/0x1570 [ 10.382571][ T187] do_syscall_64+0xff/0x530 [ 10.382574][ T187] ? exc_page_fault+0xee/0x100 [ 10.382577][ T187] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.382579][ T187] RIP: 0033:0x7f2c8a0181b8 [ 10.382581][ T187] Code: Unable to access opcode bytes at 0x7f2c8a01818e. [ 10.382582][ T187] RSP: 002b:00007ffef8197888 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 10.382585][ T187] RAX: ffffffffffffffda RBX: 00007f2c8a148f88 RCX: 00007f2c8a0181b8 [ 10.382586][ T187] RDX: 00007f2c89d62fc8 RSI: fffffffffffffeb8 RDI: 0000000000000000 [ 10.382587][ T187] RBP: 00007ffef81978e0 R08: 0000000000000000 R09: 0000000000008010 [ 10.382588][ T187] R10: 00007ffef81976a0 R11: 0000000000000246 R12: 0000000000000001 [ 10.382588][ T187] R13: 0000000000000000 R14: 00007f2c8a147680 R15: 00007f2c8a148fa0 [ 10.382595][ T187] [ 29.088147][ T362] Initializing XFRM netlink socket [ 29.088165][ T362] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 29.088167][ T362] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 362, name: modprobe [ 29.088169][ T362] preempt_count: 1, expected: 0 [ 29.088171][ T362] RCU nest depth: 0, expected: 0 [ 29.088171][ T362] locks held by modprobe/362: 4, last CPU#3: [ 29.088174][ T362] #0: ffffffffa5969cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 29.088187][ T362] #1: ffffffffa5969d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 29.088191][ T362] #2: ffffffffa5889660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 29.088196][ T362] #3: ffffffffa5889560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 29.088200][ T362] irq event stamp: 23522 [ 29.088201][ T362] hardirqs last enabled at (23521): [] __down_trylock_console_sem+0x86/0xa0 [ 29.088203][ T362] hardirqs last disabled at (23522): [] console_emit_next_record+0x3d4/0x4c0 [ 29.088206][ T362] softirqs last enabled at (23136): [] handle_softirqs+0x67c/0x900 [ 29.088209][ T362] softirqs last disabled at (22557): [] __irq_exit_rcu+0x145/0x1c0 [ 29.088211][ T362] Preemption disabled at: [ 29.088212][ T362] [] vprintk_emit+0x31b/0x3e0 [ 29.088218][ T362] CPU: 3 UID: 0 PID: 362 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 29.088222][ T362] Tainted: [W]=WARN [ 29.088223][ T362] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 29.088225][ T362] Call Trace: [ 29.088226][ T362] [ 29.088228][ T362] dump_stack_lvl+0x6f/0xa0 [ 29.088234][ T362] ? vprintk_emit+0x31b/0x3e0 [ 29.088236][ T362] __might_resched.cold+0x1fe/0x2c1 [ 29.088241][ T362] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 29.088245][ T362] ? __kmalloc_noprof+0xdb/0x760 [ 29.088250][ T362] __kmalloc_noprof+0x443/0x760 [ 29.088252][ T362] ? alloc_buf.isra.0+0x4b/0x260 [ 29.088258][ T362] ? do_raw_spin_unlock+0x59/0x250 [ 29.088261][ T362] alloc_buf.isra.0+0x4b/0x260 [ 29.088264][ T362] put_chars+0x1e1/0x2f0 [ 29.088266][ T362] ? desc_read_finalized_seq+0x79/0x120 [ 29.088268][ T362] ? __send_to_port+0x420/0x420 [ 29.088272][ T362] ? rcu_read_lock_any_held+0x3c/0x90 [ 29.088275][ T362] ? validate_chain+0x38b/0xc20 [ 29.088279][ T362] hvc_console_print+0x292/0x780 [ 29.088282][ T362] ? __lock_acquire+0x518/0xc20 [ 29.088283][ T362] ? __lock_acquire+0x518/0xc20 [ 29.088288][ T362] ? hvc_write+0x3a0/0x3a0 [ 29.088289][ T362] ? console_emit_next_record+0x1df/0x4c0 [ 29.088293][ T362] ? rcu_is_watching+0x16/0xd0 [ 29.088296][ T362] ? lock_acquire+0x13c/0x160 [ 29.088300][ T362] console_emit_next_record+0x22f/0x4c0 [ 29.088304][ T362] ? devkmsg_read+0x4b0/0x4b0 [ 29.088305][ T362] ? console_flush_one_record+0x106/0x710 [ 29.088309][ T362] ? rcu_is_watching+0x16/0xd0 [ 29.088311][ T362] ? lock_acquire+0x13c/0x160 [ 29.088315][ T362] console_flush_one_record+0x46f/0x710 [ 29.088319][ T362] ? console_emit_next_record+0x4c0/0x4c0 [ 29.088321][ T362] ? __lock_acquire+0x518/0xc20 [ 29.088326][ T362] console_unlock+0xee/0x1f0 [ 29.088329][ T362] ? console_flush_one_record+0x710/0x710 [ 29.088331][ T362] ? rcu_is_watching+0x16/0xd0 [ 29.088333][ T362] ? lock_acquire+0x60/0x160 [ 29.088337][ T362] ? __down_trylock_console_sem+0x5e/0xa0 [ 29.088339][ T362] ? vprintk_emit+0x320/0x3e0 [ 29.088342][ T362] vprintk_emit+0x37c/0x3e0 [ 29.088346][ T362] ? wake_up_klogd_work_func+0x90/0x90 [ 29.088352][ T362] ? xfrm_user_exit+0xd90/0xd90 [xfrm_user] [ 29.088356][ T362] _printk+0xc7/0x100 [ 29.088359][ T362] ? snapshot_read.cold+0x21/0x21 [ 29.088366][ T362] ? do_one_initcall+0x113/0x4f0 [ 29.088369][ T362] xfrm_user_init+0x15/0x1000 [xfrm_user] [ 29.088372][ T362] do_one_initcall+0x124/0x4f0 [ 29.088375][ T362] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 29.088379][ T362] ? do_init_module+0xae/0x8a0 [ 29.088382][ T362] ? kasan_unpoison+0x44/0x70 [ 29.088387][ T362] do_init_module+0x2ad/0x8a0 [ 29.088391][ T362] ? lockdep_hardirqs_on+0x91/0x130 [ 29.088395][ T362] ? free_module+0x470/0x470 [ 29.088398][ T362] ? kfree+0x123/0x590 [ 29.088403][ T362] load_module+0x1424/0x1bb0 [ 29.088410][ T362] ? layout_and_allocate.isra.0+0x680/0x680 [ 29.088415][ T362] ? find_held_lock+0x2b/0x80 [ 29.088416][ T362] ? backing_file_read_iter+0x541/0x790 [ 29.088420][ T362] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 29.088424][ T362] init_module_from_file+0x11f/0x1a0 [ 29.088427][ T362] ? __do_sys_init_module+0x220/0x220 [ 29.088435][ T362] ? __rwlock_init+0x150/0x150 [ 29.088439][ T362] ? do_raw_spin_unlock+0x59/0x250 [ 29.088442][ T362] idempotent_init_module+0x37b/0x7c0 [ 29.088446][ T362] ? init_module_from_file+0x1a0/0x1a0 [ 29.088452][ T362] ? rcu_is_watching+0x16/0xd0 [ 29.088455][ T362] ? cap_capable+0x1d7/0x3d0 [ 29.088461][ T362] __x64_sys_finit_module+0xdf/0x190 [ 29.088463][ T362] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 29.088466][ T362] do_syscall_64+0xff/0x530 [ 29.088468][ T362] ? exc_page_fault+0xee/0x100 [ 29.088471][ T362] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 29.088473][ T362] RIP: 0033:0x7fc86a19b37d [ 29.088477][ 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.088479][ T362] RSP: 002b:00007ffd68e35248 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 29.088481][ T362] RAX: ffffffffffffffda RBX: 00005590a7a85810 RCX: 00007fc86a19b37d [ 29.088483][ T362] RDX: 0000000000000000 RSI: 00005590a1bbcffd RDI: 0000000000000000 [ 29.088484][ T362] RBP: 00007ffd68e352e0 R08: 0000000000000000 R09: 0000000000000000 [ 29.088485][ T362] R10: 0000000000000000 R11: 0000000000000246 R12: 00005590a1bbcffd [ 29.088486][ T362] R13: 00005590a7a85960 R14: 0000000000040000 R15: 0000000000000000 [ 29.088493][ T362]