[ 140.313818][ T1244] ip (1244) used greatest stack depth: 23392 bytes left [ 140.313838][ T1244] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 140.313841][ T1244] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 1244, name: ip [ 140.313842][ T1244] preempt_count: 2, expected: 0 [ 140.313843][ T1244] RCU nest depth: 0, expected: 0 [ 140.313844][ T1244] locks held by ip/1244: 5, last CPU#1: [ 140.313846][ T1244] #0: ffffffff9fc027b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 140.313858][ T1244] #1: ffffffff9fd69cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 140.313864][ T1244] #2: ffffffff9fd69d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 140.313867][ T1244] #3: ffffffff9fc89660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 140.313871][ T1244] #4: ffffffff9fc89560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 140.313875][ T1244] irq event stamp: 20330 [ 140.313875][ T1244] hardirqs last enabled at (20329): [] __down_trylock_console_sem+0x86/0xa0 [ 140.313878][ T1244] hardirqs last disabled at (20330): [] console_emit_next_record+0x3d4/0x4c0 [ 140.313880][ T1244] softirqs last enabled at (20158): [] handle_softirqs+0x67c/0x900 [ 140.313882][ T1244] softirqs last disabled at (20153): [] __irq_exit_rcu+0x145/0x1c0 [ 140.313884][ T1244] Preemption disabled at: [ 140.313885][ T1244] [<0000000000000000>] 0x0 [ 140.313892][ T1244] CPU: 1 UID: 0 PID: 1244 Comm: ip Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 140.313895][ T1244] Tainted: [W]=WARN [ 140.313896][ T1244] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 140.313898][ T1244] Call Trace: [ 140.313900][ T1244] [ 140.313902][ T1244] dump_stack_lvl+0x6f/0xa0 [ 140.313908][ T1244] __might_resched.cold+0x1fe/0x2c1 [ 140.313912][ T1244] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 140.313923][ T1244] ? __kmalloc_noprof+0xdb/0x760 [ 140.313928][ T1244] __kmalloc_noprof+0x443/0x760 [ 140.313931][ T1244] ? alloc_buf.isra.0+0x4b/0x260 [ 140.313936][ T1244] ? do_raw_spin_unlock+0x59/0x250 [ 140.313939][ T1244] alloc_buf.isra.0+0x4b/0x260 [ 140.313942][ T1244] put_chars+0x1e1/0x2f0 [ 140.313944][ T1244] ? __send_to_port+0x420/0x420 [ 140.313945][ T1244] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 140.313950][ T1244] ? validate_chain+0x38b/0xc20 [ 140.313955][ T1244] hvc_console_print+0x292/0x780 [ 140.313961][ T1244] ? hvc_write+0x3a0/0x3a0 [ 140.313963][ T1244] ? rcu_is_watching+0x16/0xd0 [ 140.313965][ T1244] ? lock_acquire+0x13c/0x160 [ 140.313969][ T1244] console_emit_next_record+0x22f/0x4c0 [ 140.313972][ T1244] ? devkmsg_read+0x4b0/0x4b0 [ 140.313974][ T1244] ? console_flush_one_record+0x106/0x710 [ 140.313977][ T1244] ? rcu_is_watching+0x16/0xd0 [ 140.313980][ T1244] ? lock_acquire+0x13c/0x160 [ 140.313983][ T1244] console_flush_one_record+0x46f/0x710 [ 140.313988][ T1244] ? console_emit_next_record+0x4c0/0x4c0 [ 140.313989][ T1244] ? __lock_acquire+0x518/0xc20 [ 140.313994][ T1244] console_unlock+0xee/0x1f0 [ 140.313997][ T1244] ? console_flush_one_record+0x710/0x710 [ 140.313999][ T1244] ? rcu_is_watching+0x16/0xd0 [ 140.314001][ T1244] ? lock_acquire+0x60/0x160 [ 140.314005][ T1244] ? __down_trylock_console_sem+0x5e/0xa0 [ 140.314006][ T1244] ? vprintk_emit+0x320/0x3e0 [ 140.314009][ T1244] vprintk_emit+0x37c/0x3e0 [ 140.314013][ T1244] ? wake_up_klogd_work_func+0x90/0x90 [ 140.314016][ T1244] ? __lock_acquire+0x518/0xc20 [ 140.314020][ T1244] _printk+0xc7/0x100 [ 140.314023][ T1244] ? snapshot_read.cold+0x21/0x21 [ 140.314026][ T1244] ? do_raw_spin_lock+0x131/0x280 [ 140.314028][ T1244] ? __rwlock_init+0x150/0x150 [ 140.314032][ T1244] ? do_raw_spin_lock+0x131/0x280 [ 140.314034][ T1244] do_exit.cold+0x82/0x9c [ 140.314038][ T1244] ? exit_notify+0x890/0x890 [ 140.314040][ T1244] ? __lock_release.isra.0+0x69/0x1a0 [ 140.314043][ T1244] ? rcu_is_watching+0x16/0xd0 [ 140.314047][ T1244] do_group_exit+0xb8/0x370 [ 140.314049][ T1244] __x64_sys_exit_group+0x3c/0x50 [ 140.314051][ T1244] x64_sys_call+0x1567/0x1570 [ 140.314053][ T1244] do_syscall_64+0xff/0x530 [ 140.314056][ T1244] ? exc_page_fault+0xee/0x100 [ 140.314059][ T1244] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 140.314061][ T1244] RIP: 0033:0x7f5a8afb41b8 [ 140.314064][ T1244] Code: Unable to access opcode bytes at 0x7f5a8afb418e. [ 140.314065][ T1244] RSP: 002b:00007ffcc9f23e08 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 140.314067][ T1244] RAX: ffffffffffffffda RBX: 00007f5a8b0e4f88 RCX: 00007f5a8afb41b8 [ 140.314068][ T1244] RDX: 00007f5a8acfefc8 RSI: fffffffffffffeb8 RDI: 0000000000000000 [ 140.314069][ T1244] RBP: 00007ffcc9f23e60 R08: 0000000000000000 R09: 0000000000008010 [ 140.314070][ T1244] R10: 00007ffcc9f23c20 R11: 0000000000000246 R12: 0000000000000001 [ 140.314071][ T1244] R13: 0000000000000000 R14: 00007f5a8b0e3680 R15: 00007f5a8b0e4fa0 [ 140.314077][ T1244]