[ 11.116653][ T187] ip (187) used greatest stack depth: 24504 bytes left [ 11.116669][ T187] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 11.116671][ T187] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 187, name: ip [ 11.116673][ T187] preempt_count: 2, expected: 0 [ 11.116674][ T187] RCU nest depth: 0, expected: 0 [ 11.116675][ T187] locks held by ip/187: 5, last CPU#3: [ 11.116678][ T187] #0: ffffffffa26027b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 11.116690][ T187] #1: ffffffffa2769cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 11.116696][ T187] #2: ffffffffa2769d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 11.116700][ T187] #3: ffffffffa2689660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 11.116704][ T187] #4: ffffffffa2689560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 11.116708][ T187] irq event stamp: 48520 [ 11.116709][ T187] hardirqs last enabled at (48519): [] __down_trylock_console_sem+0x86/0xa0 [ 11.116712][ T187] hardirqs last disabled at (48520): [] console_emit_next_record+0x3d4/0x4c0 [ 11.116714][ T187] softirqs last enabled at (48508): [] handle_softirqs+0x67c/0x900 [ 11.116715][ T187] softirqs last disabled at (48503): [] __irq_exit_rcu+0x145/0x1c0 [ 11.116718][ T187] Preemption disabled at: [ 11.116719][ T187] [<0000000000000000>] 0x0 [ 11.116725][ T187] CPU: 3 UID: 0 PID: 187 Comm: ip Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 11.116729][ T187] Tainted: [W]=WARN [ 11.116730][ T187] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 11.116732][ T187] Call Trace: [ 11.116733][ T187] [ 11.116735][ T187] dump_stack_lvl+0x6f/0xa0 [ 11.116741][ T187] __might_resched.cold+0x1fe/0x2c1 [ 11.116746][ T187] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 11.116750][ T187] ? __kmalloc_noprof+0xdb/0x760 [ 11.116755][ T187] __kmalloc_noprof+0x443/0x760 [ 11.116757][ T187] ? alloc_buf.isra.0+0x4b/0x260 [ 11.116763][ T187] ? do_raw_spin_unlock+0x59/0x250 [ 11.116766][ T187] alloc_buf.isra.0+0x4b/0x260 [ 11.116769][ T187] put_chars+0x1e1/0x2f0 [ 11.116772][ T187] ? __send_to_port+0x420/0x420 [ 11.116773][ T187] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 11.116778][ T187] ? validate_chain+0x38b/0xc20 [ 11.116783][ T187] hvc_console_print+0x292/0x780 [ 11.116789][ T187] ? hvc_write+0x3a0/0x3a0 [ 11.116792][ T187] ? rcu_is_watching+0x16/0xd0 [ 11.116794][ T187] ? lock_acquire+0x13c/0x160 [ 11.116798][ T187] console_emit_next_record+0x22f/0x4c0 [ 11.116802][ T187] ? devkmsg_read+0x4b0/0x4b0 [ 11.116804][ T187] ? console_flush_one_record+0x106/0x710 [ 11.116807][ T187] ? rcu_is_watching+0x16/0xd0 [ 11.116809][ T187] ? lock_acquire+0x13c/0x160 [ 11.116813][ T187] console_flush_one_record+0x46f/0x710 [ 11.116817][ T187] ? console_emit_next_record+0x4c0/0x4c0 [ 11.116819][ T187] ? __lock_acquire+0x518/0xc20 [ 11.116825][ T187] console_unlock+0xee/0x1f0 [ 11.116827][ T187] ? console_flush_one_record+0x710/0x710 [ 11.116829][ T187] ? rcu_is_watching+0x16/0xd0 [ 11.116832][ T187] ? lock_acquire+0x60/0x160 [ 11.116836][ T187] ? __down_trylock_console_sem+0x5e/0xa0 [ 11.116837][ T187] ? vprintk_emit+0x320/0x3e0 [ 11.116841][ T187] vprintk_emit+0x37c/0x3e0 [ 11.116845][ T187] ? wake_up_klogd_work_func+0x90/0x90 [ 11.116848][ T187] ? __lock_acquire+0x518/0xc20 [ 11.116852][ T187] _printk+0xc7/0x100 [ 11.116856][ T187] ? snapshot_read.cold+0x21/0x21 [ 11.116859][ T187] ? do_raw_spin_lock+0x131/0x280 [ 11.116862][ T187] ? __rwlock_init+0x150/0x150 [ 11.116865][ T187] ? do_raw_spin_lock+0x131/0x280 [ 11.116868][ T187] do_exit.cold+0x82/0x9c [ 11.116876][ T187] ? exit_notify+0x890/0x890 [ 11.116879][ T187] ? __lock_release.isra.0+0x69/0x1a0 [ 11.116881][ T187] ? rcu_is_watching+0x16/0xd0 [ 11.116886][ T187] do_group_exit+0xb8/0x370 [ 11.116889][ T187] __x64_sys_exit_group+0x3c/0x50 [ 11.116891][ T187] x64_sys_call+0x1567/0x1570 [ 11.116893][ T187] do_syscall_64+0xff/0x530 [ 11.116896][ T187] ? exc_page_fault+0xee/0x100 [ 11.116900][ T187] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 11.116902][ T187] RIP: 0033:0x7fe2513fe1b8 [ 11.116904][ T187] Code: Unable to access opcode bytes at 0x7fe2513fe18e. [ 11.116906][ T187] RSP: 002b:00007ffc53465eb8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 11.116908][ T187] RAX: ffffffffffffffda RBX: 00007fe25152ef88 RCX: 00007fe2513fe1b8 [ 11.116910][ T187] RDX: 00007fe251148fc8 RSI: fffffffffffffeb8 RDI: 0000000000000000 [ 11.116911][ T187] RBP: 00007ffc53465f10 R08: 0000000000000000 R09: 0000000000008010 [ 11.116912][ T187] R10: 00007ffc53465cd0 R11: 0000000000000246 R12: 0000000000000001 [ 11.116913][ T187] R13: 0000000000000000 R14: 00007fe25152d680 R15: 00007fe25152efa0 [ 11.116919][ T187] [ 11.273168][ T193] ip (193) used greatest stack depth: 24080 bytes left [ 29.819779][ T362] Initializing XFRM netlink socket [ 29.819797][ T362] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 29.819800][ T362] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 362, name: modprobe [ 29.819802][ T362] preempt_count: 1, expected: 0 [ 29.819802][ T362] RCU nest depth: 0, expected: 0 [ 29.819803][ T362] locks held by modprobe/362: 4, last CPU#3: [ 29.819806][ T362] #0: ffffffffa2769cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 29.819819][ T362] #1: ffffffffa2769d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 29.819823][ T362] #2: ffffffffa2689660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 29.819827][ T362] #3: ffffffffa2689560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 29.819832][ T362] irq event stamp: 34330 [ 29.819832][ T362] hardirqs last enabled at (34329): [] __down_trylock_console_sem+0x86/0xa0 [ 29.819835][ T362] hardirqs last disabled at (34330): [] console_emit_next_record+0x3d4/0x4c0 [ 29.819837][ T362] softirqs last enabled at (33542): [] handle_softirqs+0x67c/0x900 [ 29.819840][ T362] softirqs last disabled at (33535): [] __irq_exit_rcu+0x145/0x1c0 [ 29.819842][ T362] Preemption disabled at: [ 29.819843][ T362] [] vprintk_emit+0x31b/0x3e0 [ 29.819849][ T362] CPU: 3 UID: 0 PID: 362 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 29.819852][ T362] Tainted: [W]=WARN [ 29.819853][ T362] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 29.819854][ T362] Call Trace: [ 29.819856][ T362] [ 29.819857][ T362] dump_stack_lvl+0x6f/0xa0 [ 29.819863][ T362] ? vprintk_emit+0x31b/0x3e0 [ 29.819865][ T362] __might_resched.cold+0x1fe/0x2c1 [ 29.819870][ T362] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 29.819875][ T362] ? __kmalloc_noprof+0xdb/0x760 [ 29.819880][ T362] __kmalloc_noprof+0x443/0x760 [ 29.819882][ T362] ? alloc_buf.isra.0+0x4b/0x260 [ 29.819888][ T362] ? do_raw_spin_unlock+0x59/0x250 [ 29.819890][ T362] alloc_buf.isra.0+0x4b/0x260 [ 29.819894][ T362] put_chars+0x1e1/0x2f0 [ 29.819896][ T362] ? desc_read_finalized_seq+0x79/0x120 [ 29.819898][ T362] ? __send_to_port+0x420/0x420 [ 29.819901][ T362] ? rcu_read_lock_any_held+0x3c/0x90 [ 29.819904][ T362] ? validate_chain+0x38b/0xc20 [ 29.819909][ T362] hvc_console_print+0x292/0x780 [ 29.819911][ T362] ? __lock_acquire+0x518/0xc20 [ 29.819913][ T362] ? __lock_acquire+0x518/0xc20 [ 29.819917][ T362] ? hvc_write+0x3a0/0x3a0 [ 29.819919][ T362] ? console_emit_next_record+0x1df/0x4c0 [ 29.819922][ T362] ? rcu_is_watching+0x16/0xd0 [ 29.819930][ T362] ? lock_acquire+0x13c/0x160 [ 29.819934][ T362] console_emit_next_record+0x22f/0x4c0 [ 29.819938][ T362] ? devkmsg_read+0x4b0/0x4b0 [ 29.819940][ T362] ? console_flush_one_record+0x106/0x710 [ 29.819943][ T362] ? rcu_is_watching+0x16/0xd0 [ 29.819946][ T362] ? lock_acquire+0x13c/0x160 [ 29.819950][ T362] console_flush_one_record+0x46f/0x710 [ 29.819954][ T362] ? console_emit_next_record+0x4c0/0x4c0 [ 29.819955][ T362] ? __lock_acquire+0x518/0xc20 [ 29.819961][ T362] console_unlock+0xee/0x1f0 [ 29.819963][ T362] ? console_flush_one_record+0x710/0x710 [ 29.819965][ T362] ? rcu_is_watching+0x16/0xd0 [ 29.819968][ T362] ? lock_acquire+0x60/0x160 [ 29.819971][ T362] ? __down_trylock_console_sem+0x5e/0xa0 [ 29.819973][ T362] ? vprintk_emit+0x320/0x3e0 [ 29.819976][ T362] vprintk_emit+0x37c/0x3e0 [ 29.819980][ T362] ? wake_up_klogd_work_func+0x90/0x90 [ 29.819986][ T362] ? xfrm_user_exit+0xd90/0xd90 [xfrm_user] [ 29.819990][ T362] _printk+0xc7/0x100 [ 29.819994][ T362] ? snapshot_read.cold+0x21/0x21 [ 29.820000][ T362] ? do_one_initcall+0x113/0x4f0 [ 29.820003][ T362] xfrm_user_init+0x15/0x1000 [xfrm_user] [ 29.820006][ T362] do_one_initcall+0x124/0x4f0 [ 29.820009][ T362] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 29.820013][ T362] ? do_init_module+0xae/0x8a0 [ 29.820016][ T362] ? kasan_unpoison+0x44/0x70 [ 29.820021][ T362] do_init_module+0x2ad/0x8a0 [ 29.820025][ T362] ? lockdep_hardirqs_on+0x91/0x130 [ 29.820029][ T362] ? free_module+0x470/0x470 [ 29.820032][ T362] ? kfree+0x123/0x590 [ 29.820036][ T362] load_module+0x1424/0x1bb0 [ 29.820044][ T362] ? layout_and_allocate.isra.0+0x680/0x680 [ 29.820048][ T362] ? find_held_lock+0x2b/0x80 [ 29.820051][ T362] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 29.820055][ T362] init_module_from_file+0x11f/0x1a0 [ 29.820058][ T362] ? __do_sys_init_module+0x220/0x220 [ 29.820066][ T362] ? __rwlock_init+0x150/0x150 [ 29.820070][ T362] ? do_raw_spin_unlock+0x59/0x250 [ 29.820073][ T362] idempotent_init_module+0x37b/0x7c0 [ 29.820076][ T362] ? init_module_from_file+0x1a0/0x1a0 [ 29.820083][ T362] ? rcu_is_watching+0x16/0xd0 [ 29.820085][ T362] ? cap_capable+0x1d7/0x3d0 [ 29.820091][ T362] __x64_sys_finit_module+0xdf/0x190 [ 29.820094][ T362] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 29.820097][ T362] do_syscall_64+0xff/0x530 [ 29.820099][ T362] ? exc_page_fault+0xee/0x100 [ 29.820102][ T362] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 29.820105][ T362] RIP: 0033:0x7f222249837d [ 29.820108][ 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.820110][ T362] RSP: 002b:00007ffd58f67b98 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 29.820113][ T362] RAX: ffffffffffffffda RBX: 000055ffd0d12810 RCX: 00007f222249837d [ 29.820114][ T362] RDX: 0000000000000000 RSI: 000055ffac14affd RDI: 0000000000000000 [ 29.820115][ T362] RBP: 00007ffd58f67c30 R08: 0000000000000000 R09: 0000000000000000 [ 29.820116][ T362] R10: 0000000000000000 R11: 0000000000000246 R12: 000055ffac14affd [ 29.820117][ T362] R13: 000055ffd0d12960 R14: 0000000000040000 R15: 0000000000000000 [ 29.820124][ T362]