[ 9.448461][ T146] tr (146) used greatest stack depth: 24512 bytes left [ 9.448481][ T146] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 9.448484][ T146] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 146, name: tr [ 9.448485][ T146] preempt_count: 2, expected: 0 [ 9.448486][ T146] RCU nest depth: 0, expected: 0 [ 9.448487][ T146] locks held by tr/146: 5, last CPU#1: [ 9.448490][ T146] #0: ffffffffa6c027b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 9.448503][ T146] #1: ffffffffa6d69cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 9.448508][ T146] #2: ffffffffa6d69d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 9.448512][ T146] #3: ffffffffa6c89660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 9.448515][ T146] #4: ffffffffa6c89560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 9.448519][ T146] irq event stamp: 22528 [ 9.448519][ T146] hardirqs last enabled at (22527): [] __down_trylock_console_sem+0x86/0xa0 [ 9.448523][ T146] hardirqs last disabled at (22528): [] console_emit_next_record+0x3d4/0x4c0 [ 9.448525][ T146] softirqs last enabled at (20644): [] handle_softirqs+0x67c/0x900 [ 9.448527][ T146] softirqs last disabled at (20399): [] __irq_exit_rcu+0x145/0x1c0 [ 9.448529][ T146] Preemption disabled at: [ 9.448530][ T146] [<0000000000000000>] 0x0 [ 9.448537][ T146] CPU: 1 UID: 0 PID: 146 Comm: tr Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 9.448540][ T146] Tainted: [W]=WARN [ 9.448541][ T146] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 9.448543][ T146] Call Trace: [ 9.448545][ T146] [ 9.448546][ T146] dump_stack_lvl+0x6f/0xa0 [ 9.448552][ T146] __might_resched.cold+0x1fe/0x2c1 [ 9.448557][ T146] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 9.448560][ T146] ? __kmalloc_noprof+0xdb/0x760 [ 9.448566][ T146] __kmalloc_noprof+0x443/0x760 [ 9.448568][ T146] ? alloc_buf.isra.0+0x4b/0x260 [ 9.448574][ T146] ? do_raw_spin_unlock+0x59/0x250 [ 9.448577][ T146] alloc_buf.isra.0+0x4b/0x260 [ 9.448581][ T146] put_chars+0x1e1/0x2f0 [ 9.448583][ T146] ? __send_to_port+0x420/0x420 [ 9.448585][ T146] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 9.448589][ T146] ? validate_chain+0x38b/0xc20 [ 9.448595][ T146] hvc_console_print+0x292/0x780 [ 9.448602][ T146] ? hvc_write+0x3a0/0x3a0 [ 9.448604][ T146] ? rcu_is_watching+0x16/0xd0 [ 9.448606][ T146] ? lock_acquire+0x13c/0x160 [ 9.448610][ T146] console_emit_next_record+0x22f/0x4c0 [ 9.448614][ T146] ? devkmsg_read+0x4b0/0x4b0 [ 9.448615][ T146] ? console_flush_one_record+0x106/0x710 [ 9.448617][ T146] ? rcu_is_watching+0x16/0xd0 [ 9.448619][ T146] ? lock_acquire+0x13c/0x160 [ 9.448623][ T146] console_flush_one_record+0x46f/0x710 [ 9.448627][ T146] ? console_emit_next_record+0x4c0/0x4c0 [ 9.448628][ T146] ? __lock_acquire+0x518/0xc20 [ 9.448633][ T146] console_unlock+0xee/0x1f0 [ 9.448636][ T146] ? console_flush_one_record+0x710/0x710 [ 9.448637][ T146] ? rcu_is_watching+0x16/0xd0 [ 9.448639][ T146] ? lock_acquire+0x60/0x160 [ 9.448643][ T146] ? __down_trylock_console_sem+0x5e/0xa0 [ 9.448644][ T146] ? vprintk_emit+0x320/0x3e0 [ 9.448647][ T146] vprintk_emit+0x37c/0x3e0 [ 9.448650][ T146] ? wake_up_klogd_work_func+0x90/0x90 [ 9.448653][ T146] ? __lock_acquire+0x518/0xc20 [ 9.448657][ T146] _printk+0xc7/0x100 [ 9.448661][ T146] ? snapshot_read.cold+0x21/0x21 [ 9.448664][ T146] ? do_raw_spin_lock+0x131/0x280 [ 9.448667][ T146] ? __rwlock_init+0x150/0x150 [ 9.448670][ T146] ? do_raw_spin_lock+0x131/0x280 [ 9.448673][ T146] do_exit.cold+0x82/0x9c [ 9.448677][ T146] ? exit_notify+0x890/0x890 [ 9.448678][ T146] ? __lock_release.isra.0+0x69/0x1a0 [ 9.448681][ T146] ? rcu_is_watching+0x16/0xd0 [ 9.448685][ T146] do_group_exit+0xb8/0x370 [ 9.448688][ T146] __x64_sys_exit_group+0x3c/0x50 [ 9.448690][ T146] x64_sys_call+0x1567/0x1570 [ 9.448692][ T146] do_syscall_64+0xff/0x530 [ 9.448696][ T146] ? exc_page_fault+0xee/0x100 [ 9.448700][ T146] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 9.448702][ T146] RIP: 0033:0x7f46abab11b8 [ 9.448704][ T146] Code: Unable to access opcode bytes at 0x7f46abab118e. [ 9.448705][ T146] RSP: 002b:00007fffa8d71c58 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 9.448707][ T146] RAX: ffffffffffffffda RBX: 00007f46abbe1f88 RCX: 00007f46abab11b8 [ 9.448709][ T146] RDX: 00007f46ab9eea48 RSI: ffffffffffffffb0 RDI: 0000000000000000 [ 9.448710][ T146] RBP: 00007fffa8d71cb0 R08: 0000000000000000 R09: 0000000000001010 [ 9.448711][ T146] R10: 00007fffa8d71b10 R11: 0000000000000246 R12: 0000000000000002 [ 9.448711][ T146] R13: 0000000000000000 R14: 00007f46abbe0680 R15: 00007f46abbe1fa0 [ 9.448718][ T146]