[ 10.120685][ T229] ip (229) used greatest stack depth: 23664 bytes left [ 10.120701][ T229] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.120703][ T229] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 229, name: ip [ 10.120704][ T229] preempt_count: 2, expected: 0 [ 10.120705][ T229] RCU nest depth: 0, expected: 0 [ 10.120706][ T229] locks held by ip/229: 5, last CPU#2: [ 10.120708][ T229] #0: ffffffff870167b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 10.120719][ T229] #1: ffffffff8717ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.120724][ T229] #2: ffffffff8717de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.120728][ T229] #3: ffffffff8709d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.120731][ T229] #4: ffffffff8709d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 10.120735][ T229] irq event stamp: 40238 [ 10.120736][ T229] hardirqs last enabled at (40237): [] __down_trylock_console_sem+0x86/0xa0 [ 10.120739][ T229] hardirqs last disabled at (40238): [] console_emit_next_record+0x3d4/0x4c0 [ 10.120741][ T229] softirqs last enabled at (38992): [] handle_softirqs+0x67c/0x900 [ 10.120743][ T229] softirqs last disabled at (37821): [] __irq_exit_rcu+0x145/0x1c0 [ 10.120746][ T229] Preemption disabled at: [ 10.120746][ T229] [<0000000000000000>] 0x0 [ 10.120753][ T229] CPU: 2 UID: 0 PID: 229 Comm: ip Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.120756][ T229] Tainted: [W]=WARN [ 10.120757][ T229] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.120759][ T229] Call Trace: [ 10.120760][ T229] [ 10.120762][ T229] dump_stack_lvl+0x6f/0xa0 [ 10.120768][ T229] __might_resched.cold+0x1fe/0x2c1 [ 10.120772][ T229] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.120776][ T229] ? __kmalloc_noprof+0xdb/0x760 [ 10.120780][ T229] __kmalloc_noprof+0x443/0x760 [ 10.120782][ T229] ? alloc_buf.isra.0+0x4b/0x260 [ 10.120789][ T229] ? do_raw_spin_unlock+0x59/0x250 [ 10.120791][ T229] alloc_buf.isra.0+0x4b/0x260 [ 10.120795][ T229] put_chars+0x1e1/0x2f0 [ 10.120797][ T229] ? __send_to_port+0x420/0x420 [ 10.120798][ T229] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.120801][ T229] ? validate_chain+0x38b/0xc20 [ 10.120807][ T229] hvc_console_print+0x292/0x780 [ 10.120814][ T229] ? hvc_write+0x3a0/0x3a0 [ 10.120817][ T229] ? rcu_is_watching+0x16/0xd0 [ 10.120819][ T229] ? lock_acquire+0x13c/0x160 [ 10.120823][ T229] console_emit_next_record+0x22f/0x4c0 [ 10.120827][ T229] ? devkmsg_read+0x4b0/0x4b0 [ 10.120828][ T229] ? console_flush_one_record+0x106/0x710 [ 10.120831][ T229] ? rcu_is_watching+0x16/0xd0 [ 10.120833][ T229] ? lock_acquire+0x13c/0x160 [ 10.120837][ T229] console_flush_one_record+0x46f/0x710 [ 10.120841][ T229] ? console_emit_next_record+0x4c0/0x4c0 [ 10.120843][ T229] ? __lock_acquire+0x518/0xc20 [ 10.120848][ T229] console_unlock+0xee/0x1f0 [ 10.120851][ T229] ? console_flush_one_record+0x710/0x710 [ 10.120853][ T229] ? rcu_is_watching+0x16/0xd0 [ 10.120854][ T229] ? lock_acquire+0xe0/0x160 [ 10.120858][ T229] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.120860][ T229] ? vprintk_emit+0x320/0x3e0 [ 10.120862][ T229] vprintk_emit+0x37c/0x3e0 [ 10.120865][ T229] ? wake_up_klogd_work_func+0x90/0x90 [ 10.120868][ T229] ? __lock_acquire+0x518/0xc20 [ 10.120872][ T229] _printk+0xc7/0x100 [ 10.120875][ T229] ? snapshot_read.cold+0x21/0x21 [ 10.120878][ T229] ? do_raw_spin_lock+0x131/0x280 [ 10.120880][ T229] ? __rwlock_init+0x150/0x150 [ 10.120884][ T229] ? do_raw_spin_lock+0x131/0x280 [ 10.120887][ T229] do_exit.cold+0x82/0x9c [ 10.120890][ T229] ? exit_notify+0x890/0x890 [ 10.120891][ T229] ? __lock_release.isra.0+0x69/0x1a0 [ 10.120894][ T229] ? rcu_is_watching+0x16/0xd0 [ 10.120898][ T229] do_group_exit+0xb8/0x370 [ 10.120900][ T229] __x64_sys_exit_group+0x3c/0x50 [ 10.120906][ T229] x64_sys_call+0x1567/0x1570 [ 10.120908][ T229] do_syscall_64+0xff/0x530 [ 10.120912][ T229] ? exc_page_fault+0xee/0x100 [ 10.120915][ T229] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.120917][ T229] RIP: 0033:0x7f59fa9581b8 [ 10.120920][ T229] Code: Unable to access opcode bytes at 0x7f59fa95818e. [ 10.120921][ T229] RSP: 002b:00007fff2aa9ded8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 10.120923][ T229] RAX: ffffffffffffffda RBX: 00007f59faa88f88 RCX: 00007f59fa9581b8 [ 10.120924][ T229] RDX: 00007f59fa6a2fc8 RSI: fffffffffffffeb8 RDI: 0000000000000000 [ 10.120925][ T229] RBP: 00007fff2aa9df30 R08: 0000000000000000 R09: 0000000000000000 [ 10.120926][ T229] R10: 00007fff2aa9dcf0 R11: 0000000000000246 R12: 0000000000000001 [ 10.120927][ T229] R13: 0000000000000000 R14: 00007f59faa87680 R15: 00007f59faa88fa0 [ 10.120933][ T229]