[ 8.957802][ T165] tr (165) used greatest stack depth: 24560 bytes left [ 8.957821][ T165] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 8.957823][ T165] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 165, name: tr [ 8.957824][ T165] preempt_count: 2, expected: 0 [ 8.957825][ T165] RCU nest depth: 0, expected: 0 [ 8.957826][ T165] locks held by tr/165: 5, last CPU#3: [ 8.957828][ T165] #0: ffffffff866167b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 8.957839][ T165] #1: ffffffff8677ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 8.957844][ T165] #2: ffffffff8677de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 8.957848][ T165] #3: ffffffff8669d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 8.957852][ T165] #4: ffffffff8669d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 8.957856][ T165] irq event stamp: 14888 [ 8.957857][ T165] hardirqs last enabled at (14887): [] __down_trylock_console_sem+0x86/0xa0 [ 8.957860][ T165] hardirqs last disabled at (14888): [] console_emit_next_record+0x3d4/0x4c0 [ 8.957862][ T165] softirqs last enabled at (14702): [] handle_softirqs+0x67c/0x900 [ 8.957864][ T165] softirqs last disabled at (14697): [] __irq_exit_rcu+0x145/0x1c0 [ 8.957867][ T165] Preemption disabled at: [ 8.957867][ T165] [<0000000000000000>] 0x0 [ 8.957874][ T165] CPU: 3 UID: 0 PID: 165 Comm: tr Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 8.957877][ T165] Tainted: [W]=WARN [ 8.957878][ T165] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 8.957880][ T165] Call Trace: [ 8.957881][ T165] [ 8.957883][ T165] dump_stack_lvl+0x6f/0xa0 [ 8.957889][ T165] __might_resched.cold+0x1fe/0x2c1 [ 8.957894][ T165] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 8.957897][ T165] ? __kmalloc_noprof+0xdb/0x760 [ 8.957902][ T165] __kmalloc_noprof+0x443/0x760 [ 8.957903][ T165] ? alloc_buf.isra.0+0x4b/0x260 [ 8.957910][ T165] ? do_raw_spin_unlock+0x59/0x250 [ 8.957913][ T165] alloc_buf.isra.0+0x4b/0x260 [ 8.957916][ T165] put_chars+0x1e1/0x2f0 [ 8.957919][ T165] ? __send_to_port+0x420/0x420 [ 8.957920][ T165] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 8.957923][ T165] ? validate_chain+0x38b/0xc20 [ 8.957928][ T165] hvc_console_print+0x292/0x780 [ 8.957936][ T165] ? hvc_write+0x3a0/0x3a0 [ 8.957938][ T165] ? rcu_is_watching+0x16/0xd0 [ 8.957940][ T165] ? lock_acquire+0x13c/0x160 [ 8.957944][ T165] console_emit_next_record+0x22f/0x4c0 [ 8.957951][ T165] ? devkmsg_read+0x4b0/0x4b0 [ 8.957953][ T165] ? console_flush_one_record+0x106/0x710 [ 8.957956][ T165] ? rcu_is_watching+0x16/0xd0 [ 8.957958][ T165] ? lock_acquire+0x13c/0x160 [ 8.957962][ T165] console_flush_one_record+0x46f/0x710 [ 8.957966][ T165] ? console_emit_next_record+0x4c0/0x4c0 [ 8.957968][ T165] ? __lock_acquire+0x518/0xc20 [ 8.957973][ T165] console_unlock+0xee/0x1f0 [ 8.957976][ T165] ? console_flush_one_record+0x710/0x710 [ 8.957977][ T165] ? rcu_is_watching+0x16/0xd0 [ 8.957979][ T165] ? lock_acquire+0xe0/0x160 [ 8.957983][ T165] ? __down_trylock_console_sem+0x5e/0xa0 [ 8.957984][ T165] ? vprintk_emit+0x320/0x3e0 [ 8.957987][ T165] vprintk_emit+0x37c/0x3e0 [ 8.957990][ T165] ? wake_up_klogd_work_func+0x90/0x90 [ 8.957993][ T165] ? __lock_acquire+0x518/0xc20 [ 8.957996][ T165] _printk+0xc7/0x100 [ 8.958000][ T165] ? snapshot_read.cold+0x21/0x21 [ 8.958003][ T165] ? do_raw_spin_lock+0x131/0x280 [ 8.958005][ T165] ? __rwlock_init+0x150/0x150 [ 8.958009][ T165] ? do_raw_spin_lock+0x131/0x280 [ 8.958012][ T165] do_exit.cold+0x82/0x9c [ 8.958015][ T165] ? exit_notify+0x890/0x890 [ 8.958017][ T165] ? __lock_release.isra.0+0x69/0x1a0 [ 8.958019][ T165] ? rcu_is_watching+0x16/0xd0 [ 8.958023][ T165] do_group_exit+0xb8/0x370 [ 8.958025][ T165] __x64_sys_exit_group+0x3c/0x50 [ 8.958027][ T165] x64_sys_call+0x1567/0x1570 [ 8.958030][ T165] do_syscall_64+0xff/0x530 [ 8.958033][ T165] ? exc_page_fault+0xee/0x100 [ 8.958036][ T165] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 8.958038][ T165] RIP: 0033:0x7f5cffad21b8 [ 8.958040][ T165] Code: Unable to access opcode bytes at 0x7f5cffad218e. [ 8.958041][ T165] RSP: 002b:00007fff58074f88 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 8.958043][ T165] RAX: ffffffffffffffda RBX: 00007f5cffc02f88 RCX: 00007f5cffad21b8 [ 8.958045][ T165] RDX: 00007f5cffa0fa48 RSI: ffffffffffffffb0 RDI: 0000000000000000 [ 8.958045][ T165] RBP: 00007fff58074fe0 R08: 0000000000000000 R09: 0000000000001010 [ 8.958046][ T165] R10: 00007fff58074e40 R11: 0000000000000246 R12: 0000000000000002 [ 8.958047][ T165] R13: 0000000000000000 R14: 00007f5cffc01680 R15: 00007f5cffc02fa0 [ 8.958054][ T165] [ 9.199994][ T196] ip (196) used greatest stack depth: 23872 bytes left