[ 12.470400][ T274] ip (274) used greatest stack depth: 24208 bytes left [ 12.470416][ T274] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 12.470418][ T274] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 274, name: ip [ 12.470420][ T274] preempt_count: 2, expected: 0 [ 12.470421][ T274] RCU nest depth: 0, expected: 0 [ 12.470422][ T274] locks held by ip/274: 5, last CPU#3: [ 12.470424][ T274] #0: ffffffffb0c167b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 12.470436][ T274] #1: ffffffffb0d7ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 12.470441][ T274] #2: ffffffffb0d7de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 12.470445][ T274] #3: ffffffffb0c9d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 12.470449][ T274] #4: ffffffffb0c9d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 12.470453][ T274] irq event stamp: 32002 [ 12.470454][ T274] hardirqs last enabled at (32001): [] __down_trylock_console_sem+0x86/0xa0 [ 12.470458][ T274] hardirqs last disabled at (32002): [] console_emit_next_record+0x3d4/0x4c0 [ 12.470460][ T274] softirqs last enabled at (30820): [] handle_softirqs+0x67c/0x900 [ 12.470462][ T274] softirqs last disabled at (29915): [] __irq_exit_rcu+0x145/0x1c0 [ 12.470465][ T274] Preemption disabled at: [ 12.470465][ T274] [<0000000000000000>] 0x0 [ 12.470473][ T274] CPU: 3 UID: 0 PID: 274 Comm: ip Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 12.470476][ T274] Tainted: [W]=WARN [ 12.470477][ T274] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.470479][ T274] Call Trace: [ 12.470480][ T274] [ 12.470482][ T274] dump_stack_lvl+0x6f/0xa0 [ 12.470488][ T274] __might_resched.cold+0x1fe/0x2c1 [ 12.470498][ T274] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 12.470502][ T274] ? __kmalloc_noprof+0xdb/0x760 [ 12.470506][ T274] __kmalloc_noprof+0x443/0x760 [ 12.470509][ T274] ? alloc_buf.isra.0+0x4b/0x260 [ 12.470516][ T274] ? do_raw_spin_unlock+0x59/0x250 [ 12.470519][ T274] alloc_buf.isra.0+0x4b/0x260 [ 12.470523][ T274] put_chars+0x1e1/0x2f0 [ 12.470526][ T274] ? __send_to_port+0x420/0x420 [ 12.470527][ T274] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 12.470531][ T274] ? validate_chain+0x38b/0xc20 [ 12.470537][ T274] hvc_console_print+0x292/0x780 [ 12.470545][ T274] ? hvc_write+0x3a0/0x3a0 [ 12.470547][ T274] ? rcu_is_watching+0x16/0xd0 [ 12.470550][ T274] ? lock_acquire+0x13c/0x160 [ 12.470554][ T274] console_emit_next_record+0x22f/0x4c0 [ 12.470558][ T274] ? devkmsg_read+0x4b0/0x4b0 [ 12.470560][ T274] ? console_flush_one_record+0x106/0x710 [ 12.470563][ T274] ? rcu_is_watching+0x16/0xd0 [ 12.470565][ T274] ? lock_acquire+0x13c/0x160 [ 12.470569][ T274] console_flush_one_record+0x46f/0x710 [ 12.470574][ T274] ? console_emit_next_record+0x4c0/0x4c0 [ 12.470576][ T274] ? __lock_acquire+0x518/0xc20 [ 12.470582][ T274] console_unlock+0xee/0x1f0 [ 12.470585][ T274] ? console_flush_one_record+0x710/0x710 [ 12.470587][ T274] ? rcu_is_watching+0x16/0xd0 [ 12.470589][ T274] ? lock_acquire+0xe0/0x160 [ 12.470593][ T274] ? __down_trylock_console_sem+0x5e/0xa0 [ 12.470595][ T274] ? vprintk_emit+0x320/0x3e0 [ 12.470598][ T274] vprintk_emit+0x37c/0x3e0 [ 12.470601][ T274] ? wake_up_klogd_work_func+0x90/0x90 [ 12.470604][ T274] ? __lock_acquire+0x518/0xc20 [ 12.470608][ T274] _printk+0xc7/0x100 [ 12.470612][ T274] ? snapshot_read.cold+0x21/0x21 [ 12.470615][ T274] ? do_raw_spin_lock+0x131/0x280 [ 12.470618][ T274] ? __rwlock_init+0x150/0x150 [ 12.470622][ T274] ? do_raw_spin_lock+0x131/0x280 [ 12.470625][ T274] do_exit.cold+0x82/0x9c [ 12.470633][ T274] ? exit_notify+0x890/0x890 [ 12.470635][ T274] ? __lock_release.isra.0+0x69/0x1a0 [ 12.470639][ T274] ? rcu_is_watching+0x16/0xd0 [ 12.470643][ T274] do_group_exit+0xb8/0x370 [ 12.470647][ T274] __x64_sys_exit_group+0x3c/0x50 [ 12.470649][ T274] x64_sys_call+0x1567/0x1570 [ 12.470652][ T274] do_syscall_64+0xff/0x530 [ 12.470657][ T274] ? exc_page_fault+0xee/0x100 [ 12.470660][ T274] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 12.470662][ T274] RIP: 0033:0x7f993ddd51b8 [ 12.470665][ T274] Code: Unable to access opcode bytes at 0x7f993ddd518e. [ 12.470666][ T274] RSP: 002b:00007ffc51e14288 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 12.470669][ T274] RAX: ffffffffffffffda RBX: 00007f993df05f88 RCX: 00007f993ddd51b8 [ 12.470670][ T274] RDX: 00007f993db1ffc8 RSI: fffffffffffffeb8 RDI: 0000000000000000 [ 12.470672][ T274] RBP: 00007ffc51e142e0 R08: 0000000000000000 R09: 0000000000000050 [ 12.470673][ T274] R10: 00007ffc51e140a0 R11: 0000000000000246 R12: 0000000000000001 [ 12.470674][ T274] R13: 0000000000000000 R14: 00007f993df04680 R15: 00007f993df05fa0 [ 12.470682][ T274]