[ 19.908894][ T326] ip (326) used greatest stack depth: 24080 bytes left [ 19.908914][ T326] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 19.908916][ T326] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 326, name: ip [ 19.908918][ T326] preempt_count: 2, expected: 0 [ 19.908919][ T326] RCU nest depth: 0, expected: 0 [ 19.908920][ T326] locks held by ip/326: 5, last CPU#3: [ 19.908922][ T326] #0: ffffffffaae027b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 19.908935][ T326] #1: ffffffffaaf69cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 19.908940][ T326] #2: ffffffffaaf69d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 19.908944][ T326] #3: ffffffffaae89660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 19.908948][ T326] #4: ffffffffaae89560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 19.908952][ T326] irq event stamp: 22062 [ 19.908953][ T326] hardirqs last enabled at (22061): [] __down_trylock_console_sem+0x86/0xa0 [ 19.908956][ T326] hardirqs last disabled at (22062): [] console_emit_next_record+0x3d4/0x4c0 [ 19.908958][ T326] softirqs last enabled at (21252): [] handle_softirqs+0x67c/0x900 [ 19.908960][ T326] softirqs last disabled at (21241): [] __irq_exit_rcu+0x145/0x1c0 [ 19.908962][ T326] Preemption disabled at: [ 19.908962][ T326] [<0000000000000000>] 0x0 [ 19.908969][ T326] CPU: 3 UID: 0 PID: 326 Comm: ip Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 19.908973][ T326] Tainted: [W]=WARN [ 19.908974][ T326] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 19.908976][ T326] Call Trace: [ 19.908977][ T326] [ 19.908979][ T326] dump_stack_lvl+0x6f/0xa0 [ 19.908985][ T326] __might_resched.cold+0x1fe/0x2c1 [ 19.908989][ T326] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 19.908994][ T326] ? __kmalloc_noprof+0xdb/0x760 [ 19.908999][ T326] __kmalloc_noprof+0x443/0x760 [ 19.909001][ T326] ? alloc_buf.isra.0+0x4b/0x260 [ 19.909007][ T326] ? do_raw_spin_unlock+0x59/0x250 [ 19.909010][ T326] alloc_buf.isra.0+0x4b/0x260 [ 19.909013][ T326] put_chars+0x1e1/0x2f0 [ 19.909016][ T326] ? __send_to_port+0x420/0x420 [ 19.909017][ T326] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 19.909022][ T326] ? validate_chain+0x38b/0xc20 [ 19.909027][ T326] hvc_console_print+0x292/0x780 [ 19.909034][ T326] ? hvc_write+0x3a0/0x3a0 [ 19.909036][ T326] ? rcu_is_watching+0x16/0xd0 [ 19.909038][ T326] ? lock_acquire+0x13c/0x160 [ 19.909042][ T326] console_emit_next_record+0x22f/0x4c0 [ 19.909046][ T326] ? devkmsg_read+0x4b0/0x4b0 [ 19.909048][ T326] ? console_flush_one_record+0x106/0x710 [ 19.909051][ T326] ? rcu_is_watching+0x16/0xd0 [ 19.909053][ T326] ? lock_acquire+0x13c/0x160 [ 19.909057][ T326] console_flush_one_record+0x46f/0x710 [ 19.909061][ T326] ? console_emit_next_record+0x4c0/0x4c0 [ 19.909063][ T326] ? __lock_acquire+0x518/0xc20 [ 19.909068][ T326] console_unlock+0xee/0x1f0 [ 19.909071][ T326] ? console_flush_one_record+0x710/0x710 [ 19.909073][ T326] ? rcu_is_watching+0x16/0xd0 [ 19.909075][ T326] ? lock_acquire+0x60/0x160 [ 19.909079][ T326] ? __down_trylock_console_sem+0x5e/0xa0 [ 19.909081][ T326] ? vprintk_emit+0x320/0x3e0 [ 19.909084][ T326] vprintk_emit+0x37c/0x3e0 [ 19.909088][ T326] ? wake_up_klogd_work_func+0x90/0x90 [ 19.909091][ T326] ? __lock_acquire+0x518/0xc20 [ 19.909095][ T326] _printk+0xc7/0x100 [ 19.909099][ T326] ? snapshot_read.cold+0x21/0x21 [ 19.909101][ T326] ? do_raw_spin_lock+0x131/0x280 [ 19.909104][ T326] ? __rwlock_init+0x150/0x150 [ 19.909108][ T326] ? do_raw_spin_lock+0x131/0x280 [ 19.909111][ T326] do_exit.cold+0x82/0x9c [ 19.909114][ T326] ? exit_notify+0x890/0x890 [ 19.909116][ T326] ? __lock_release.isra.0+0x69/0x1a0 [ 19.909119][ T326] ? rcu_is_watching+0x16/0xd0 [ 19.909123][ T326] do_group_exit+0xb8/0x370 [ 19.909126][ T326] __x64_sys_exit_group+0x3c/0x50 [ 19.909127][ T326] x64_sys_call+0x1567/0x1570 [ 19.909129][ T326] do_syscall_64+0xff/0x530 [ 19.909133][ T326] ? exc_page_fault+0xee/0x100 [ 19.909136][ T326] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 19.909139][ T326] RIP: 0033:0x7f349d1181b8 [ 19.909141][ T326] Code: Unable to access opcode bytes at 0x7f349d11818e. [ 19.909142][ T326] RSP: 002b:00007ffcc57a5978 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 19.909145][ T326] RAX: ffffffffffffffda RBX: 00007f349d248f88 RCX: 00007f349d1181b8 [ 19.909146][ T326] RDX: 00007f349ce62fc8 RSI: fffffffffffffeb8 RDI: 0000000000000000 [ 19.909147][ T326] RBP: 00007ffcc57a59d0 R08: 0000000000000000 R09: 0000000000000050 [ 19.909148][ T326] R10: 00007ffcc57a5790 R11: 0000000000000246 R12: 0000000000000001 [ 19.909149][ T326] R13: 0000000000000000 R14: 00007f349d247680 R15: 00007f349d248fa0 [ 19.909155][ T326]