[ 9.895199][ T185] ip (185) used greatest stack depth: 23552 bytes left [ 9.895221][ T185] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 9.895223][ T185] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 185, name: ip [ 9.895226][ T185] preempt_count: 2, expected: 0 [ 9.895227][ T185] RCU nest depth: 0, expected: 0 [ 9.895228][ T185] locks held by ip/185: 5, last CPU#3: [ 9.895231][ T185] #0: ffffffff9ba267b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 9.895248][ T185] #1: ffffffff9bb8dcc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 9.895255][ T185] #2: ffffffff9bb8dd38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 9.895261][ T185] #3: ffffffff9baad660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 9.895267][ T185] #4: ffffffff9baad560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 9.895272][ T185] irq event stamp: 30520 [ 9.895274][ T185] hardirqs last enabled at (30519): [] __down_trylock_console_sem+0x86/0xa0 [ 9.895277][ T185] hardirqs last disabled at (30520): [] console_emit_next_record+0x3d4/0x4c0 [ 9.895280][ T185] softirqs last enabled at (29644): [] handle_softirqs+0x67c/0x900 [ 9.895282][ T185] softirqs last disabled at (29639): [] __irq_exit_rcu+0x145/0x1c0 [ 9.895285][ T185] Preemption disabled at: [ 9.895286][ T185] [<0000000000000000>] 0x0 [ 9.895295][ T185] CPU: 3 UID: 0 PID: 185 Comm: ip Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 9.895299][ T185] Tainted: [W]=WARN [ 9.895301][ T185] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 9.895303][ T185] Call Trace: [ 9.895305][ T185] [ 9.895307][ T185] dump_stack_lvl+0x6f/0xa0 [ 9.895315][ T185] __might_resched.cold+0x1fe/0x2c1 [ 9.895323][ T185] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 9.895329][ T185] ? __kmalloc_noprof+0xdb/0x760 [ 9.895336][ T185] __kmalloc_noprof+0x443/0x760 [ 9.895339][ T185] ? alloc_buf.isra.0+0x4b/0x260 [ 9.895349][ T185] ? do_raw_spin_unlock+0x59/0x250 [ 9.895353][ T185] alloc_buf.isra.0+0x4b/0x260 [ 9.895359][ T185] put_chars+0x1e1/0x2f0 [ 9.895364][ T185] ? __send_to_port+0x420/0x420 [ 9.895366][ T185] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 9.895373][ T185] ? validate_chain+0x38b/0xc20 [ 9.895382][ T185] hvc_console_print+0x292/0x780 [ 9.895394][ T185] ? hvc_write+0x3a0/0x3a0 [ 9.895398][ T185] ? rcu_is_watching+0x16/0xd0 [ 9.895401][ T185] ? lock_acquire+0x13c/0x160 [ 9.895408][ T185] console_emit_next_record+0x22f/0x4c0 [ 9.895414][ T185] ? devkmsg_read+0x4b0/0x4b0 [ 9.895417][ T185] ? console_flush_one_record+0x106/0x710 [ 9.895422][ T185] ? rcu_is_watching+0x16/0xd0 [ 9.895425][ T185] ? lock_acquire+0x13c/0x160 [ 9.895432][ T185] console_flush_one_record+0x46f/0x710 [ 9.895438][ T185] ? console_emit_next_record+0x4c0/0x4c0 [ 9.895441][ T185] ? __lock_acquire+0x518/0xc20 [ 9.895450][ T185] console_unlock+0xee/0x1f0 [ 9.895454][ T185] ? console_flush_one_record+0x710/0x710 [ 9.895456][ T185] ? rcu_is_watching+0x16/0xd0 [ 9.895460][ T185] ? lock_acquire+0x60/0x160 [ 9.895466][ T185] ? __down_trylock_console_sem+0x5e/0xa0 [ 9.895468][ T185] ? vprintk_emit+0x320/0x3e0 [ 9.895474][ T185] vprintk_emit+0x37c/0x3e0 [ 9.895479][ T185] ? wake_up_klogd_work_func+0x90/0x90 [ 9.895485][ T185] ? __lock_acquire+0x518/0xc20 [ 9.895491][ T185] _printk+0xc7/0x100 [ 9.895496][ T185] ? snapshot_read.cold+0x21/0x21 [ 9.895500][ T185] ? do_raw_spin_lock+0x131/0x280 [ 9.895505][ T185] ? __rwlock_init+0x150/0x150 [ 9.895511][ T185] ? do_raw_spin_lock+0x131/0x280 [ 9.895515][ T185] do_exit.cold+0x82/0x9c [ 9.895520][ T185] ? exit_notify+0x890/0x890 [ 9.895523][ T185] ? __lock_release.isra.0+0x69/0x1a0 [ 9.895527][ T185] ? rcu_is_watching+0x16/0xd0 [ 9.895534][ T185] do_group_exit+0xb8/0x370 [ 9.895540][ T185] __x64_sys_exit_group+0x3c/0x50 [ 9.895543][ T185] x64_sys_call+0x1567/0x1570 [ 9.895546][ T185] do_syscall_64+0xff/0x530 [ 9.895550][ T185] ? exc_page_fault+0xee/0x100 [ 9.895555][ T185] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 9.895558][ T185] RIP: 0033:0x7f9e6ce321b8 [ 9.895562][ T185] Code: Unable to access opcode bytes at 0x7f9e6ce3218e. [ 9.895563][ T185] RSP: 002b:00007fff59b03368 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 9.895566][ T185] RAX: ffffffffffffffda RBX: 00007f9e6cf62f88 RCX: 00007f9e6ce321b8 [ 9.895568][ T185] RDX: 00007f9e6cb7cfc8 RSI: fffffffffffffeb8 RDI: 0000000000000000 [ 9.895569][ T185] RBP: 00007fff59b033c0 R08: 0000000000000000 R09: 0000000000000050 [ 9.895571][ T185] R10: 00007fff59b03180 R11: 0000000000000246 R12: 0000000000000001 [ 9.895572][ T185] R13: 0000000000000000 R14: 00007f9e6cf61680 R15: 00007f9e6cf62fa0 [ 9.895584][ T185] [ 118.457486][ C0] clocksource: Watchdog remote CPU 3 read timed out [ 118.457561][ C0] [ 118.457563][ C0] ======================================================== [ 118.457564][ C0] WARNING: possible irq lock inversion dependency detected [ 118.457566][ C0] 7.2.0-virtme #1 Tainted: G W [ 118.457568][ C0] -------------------------------------------------------- [ 118.457569][ C0] perl/163 just changed the state of lock: [ 118.457570][ C0] ffffffff9baad660 (console_owner){..-.}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 118.457582][ C0] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 118.457583][ C0] (fs_reclaim){+.+.}-{0:0} [ 118.457584][ C0] [ 118.457584][ C0] [ 118.457584][ C0] and interrupts could create inverse lock ordering between them. [ 118.457584][ C0] [ 118.457585][ C0] [ 118.457585][ C0] other info that might help us debug this: [ 118.457586][ C0] Possible interrupt unsafe locking scenario: [ 118.457586][ C0] [ 118.457586][ C0] CPU0 CPU1 [ 118.457587][ C0] ---- ---- [ 118.457587][ C0] lock(fs_reclaim); [ 118.457588][ C0] local_irq_disable(); [ 118.457588][ C0] lock(console_owner); [ 118.457589][ C0] lock(fs_reclaim); [ 118.457590][ C0] [ 118.457590][ C0] lock(console_owner); [ 118.457591][ C0] [ 118.457591][ C0] *** DEADLOCK *** [ 118.457591][ C0] [ 118.457592][ C0] locks held by perl/163: 8, last CPU#0: [ 118.457593][ C0] #0: ff11000013e068a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x28/0x80 [ 118.457598][ C0] #1: ff11000013e06928 (&tty->atomic_write_lock){+.+.}-{4:4}, at: iterate_tty_write+0x9f/0x590 [ 118.457602][ C0] #2: ff11000013e06ac8 (&tty->termios_rwsem){++++}-{4:4}, at: n_tty_write+0x1ad/0x8f0 [ 118.457606][ C0] #3: ffa000000006b370 (&ldata->output_lock){+.+.}-{4:4}, at: process_output_block+0x59/0x6d0 [ 118.457609][ C0] #4: ffa0000000007c90 ((&watchdog_timer)){+.-.}-{0:0}, at: call_timer_fn+0x110/0x4d0 [ 118.457614][ C0] #5: ffffffff9bbf28b8 (watchdog_lock){+.-.}-{3:3}, at: clocksource_watchdog+0x15/0x30 [ 118.457618][ C0] #6: ffffffff9bb8dcc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 118.457621][ C0] #7: ffffffff9bb8dd38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 118.457624][ C0] [ 118.457624][ C0] the shortest dependencies between 2nd lock and 1st lock: [ 118.457628][ C0] -> (fs_reclaim){+.+.}-{0:0} { [ 118.457630][ C0] HARDIRQ-ON-W at: [ 118.457631][ C0] __lock_acquire+0x388/0xc20 [ 118.457634][ C0] lock_acquire.part.0+0xd4/0x280 [ 118.457635][ C0] fs_reclaim_acquire+0xd5/0x120 [ 118.457639][ C0] __kmalloc_cache_noprof+0x6e/0x620 [ 118.457641][ C0] kthread_create_worker_on_node+0xea/0x210 [ 118.457643][ C0] workqueue_init+0x2a/0x680 [ 118.457647][ C0] kernel_init_freeable+0x2fe/0x630 [ 118.457649][ C0] kernel_init+0x21/0x150 [ 118.457653][ C0] ret_from_fork+0x474/0x6b0 [ 118.457656][ C0] ret_from_fork_asm+0x11/0x20 [ 118.457659][ C0] SOFTIRQ-ON-W at: [ 118.457660][ C0] __lock_acquire+0x388/0xc20 [ 118.457661][ C0] lock_acquire.part.0+0xd4/0x280 [ 118.457662][ C0] fs_reclaim_acquire+0xd5/0x120 [ 118.457664][ C0] __kmalloc_cache_noprof+0x6e/0x620 [ 118.457665][ C0] kthread_create_worker_on_node+0xea/0x210 [ 118.457666][ C0] workqueue_init+0x2a/0x680 [ 118.457667][ C0] kernel_init_freeable+0x2fe/0x630 [ 118.457668][ C0] kernel_init+0x21/0x150 [ 118.457670][ C0] ret_from_fork+0x474/0x6b0 [ 118.457671][ C0] ret_from_fork_asm+0x11/0x20 [ 118.457672][ C0] INITIAL USE at: [ 118.457673][ C0] __lock_acquire+0x388/0xc20 [ 118.457674][ C0] lock_acquire.part.0+0xd4/0x280 [ 118.457675][ C0] fs_reclaim_acquire+0xd5/0x120 [ 118.457677][ C0] __kmalloc_cache_noprof+0x6e/0x620 [ 118.457678][ C0] kthread_create_worker_on_node+0xea/0x210 [ 118.457679][ C0] workqueue_init+0x2a/0x680 [ 118.457680][ C0] kernel_init_freeable+0x2fe/0x630 [ 118.457681][ C0] kernel_init+0x21/0x150 [ 118.457683][ C0] ret_from_fork+0x474/0x6b0 [ 118.457684][ C0] ret_from_fork_asm+0x11/0x20 [ 118.457685][ C0] } [ 118.457686][ C0] ... key at: [] __fs_reclaim_map+0x0/0xbe0 [ 118.457689][ C0] ... acquired at: [ 118.457690][ C0] __lock_acquire+0x518/0xc20 [ 118.457691][ C0] lock_acquire.part.0+0xd4/0x280 [ 118.457692][ C0] fs_reclaim_acquire+0xd5/0x120 [ 118.457694][ C0] __kmalloc_noprof+0xd3/0x760 [ 118.457695][ C0] alloc_buf.isra.0+0x4b/0x260 [ 118.457698][ C0] put_chars+0x1e1/0x2f0 [ 118.457700][ C0] hvc_console_print+0x292/0x780 [ 118.457702][ C0] console_emit_next_record+0x22f/0x4c0 [ 118.457704][ C0] console_flush_one_record+0x46f/0x710 [ 118.457705][ C0] console_unlock+0xee/0x1f0 [ 118.457706][ C0] vprintk_emit+0x37c/0x3e0 [ 118.457708][ C0] dev_vprintk_emit+0x27f/0x2c0 [ 118.457711][ C0] dev_printk_emit+0xb9/0xee [ 118.457712][ C0] _dev_info+0xe2/0x116 [ 118.457713][ C0] __devm_rtc_register_device.cold+0xc3/0x3a8 [ 118.457716][ C0] cmos_do_probe+0x73b/0x98a [ 118.457717][ C0] platform_probe+0xfe/0x1f0 [ 118.457719][ C0] call_driver_probe+0x61/0x1c0 [ 118.457721][ C0] really_probe+0x199/0x760 [ 118.457722][ C0] __driver_probe_device+0x24f/0x440 [ 118.457724][ C0] driver_probe_device+0x4a/0xf0 [ 118.457725][ C0] __driver_attach+0x1b8/0x540 [ 118.457726][ C0] bus_for_each_dev+0x130/0x1e0 [ 118.457727][ C0] bus_add_driver+0x2c8/0x530 [ 118.457728][ C0] driver_register+0x1a3/0x390 [ 118.457730][ C0] __platform_driver_probe+0x13f/0x270 [ 118.457731][ C0] cmos_init+0x31/0x40 [ 118.457734][ C0] do_one_initcall+0x124/0x4f0 [ 118.457735][ C0] kernel_init_freeable+0x596/0x630 [ 118.457736][ C0] kernel_init+0x21/0x150 [ 118.457738][ C0] ret_from_fork+0x474/0x6b0 [ 118.457739][ C0] ret_from_fork_asm+0x11/0x20 [ 118.457740][ C0] [ 118.457741][ C0] -> (console_owner){..-.}-{0:0} { [ 118.457742][ C0] IN-SOFTIRQ-W at: [ 118.457743][ C0] __lock_acquire+0x388/0xc20 [ 118.457744][ C0] lock_acquire.part.0+0xd4/0x280 [ 118.457745][ C0] console_lock_spinning_enable+0x5c/0x60 [ 118.457747][ C0] console_emit_next_record+0x1d1/0x4c0 [ 118.457748][ C0] console_flush_one_record+0x46f/0x710 [ 118.457750][ C0] console_unlock+0xee/0x1f0 [ 118.457751][ C0] vprintk_emit+0x37c/0x3e0 [ 118.457752][ C0] _printk+0xc7/0x100 [ 118.457755][ C0] clocksource_watchdog.part.0.cold+0x105/0x1dd [ 118.457757][ C0] call_timer_fn+0x160/0x4d0 [ 118.457759][ C0] __run_timers+0x68f/0xaa0 [ 118.457760][ C0] run_timer_softirq+0xf0/0x160 [ 118.457761][ C0] handle_softirqs+0x1d3/0x900 [ 118.457764][ C0] __irq_exit_rcu+0x145/0x1c0 [ 118.457765][ C0] irq_exit_rcu+0xe/0x30 [ 118.457766][ C0] sysvec_apic_timer_interrupt+0x9d/0xe0 [ 118.457768][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 118.457769][ C0] _raw_spin_unlock_irqrestore+0x36/0x80 [ 118.457771][ C0] uart_write+0x231/0x990 [ 118.457773][ C0] process_output_block+0x113/0x6d0 [ 118.457774][ C0] n_tty_write+0x3b4/0x8f0 [ 118.457776][ C0] iterate_tty_write+0x291/0x590 [ 118.457777][ C0] file_tty_write.isra.0+0x1bd/0x290 [ 118.457779][ C0] new_sync_write+0x33e/0x760 [ 118.457781][ C0] vfs_write+0x6a2/0xbd0 [ 118.457783][ C0] ksys_write+0x116/0x250 [ 118.457784][ C0] do_syscall_64+0xff/0x530 [ 118.457785][ C0] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 118.457787][ C0] INITIAL USE at: [ 118.457787][ C0] } [ 118.457788][ C0] ... key at: [] console_owner_dep_map+0x0/0x60 [ 118.457790][ C0] ... acquired at: [ 118.457791][ C0] mark_lock+0x1d7/0xa00 [ 118.457792][ C0] mark_usage+0x42/0x170 [ 118.457794][ C0] __lock_acquire+0x388/0xc20 [ 118.457795][ C0] lock_acquire.part.0+0xd4/0x280 [ 118.457796][ C0] console_lock_spinning_enable+0x5c/0x60 [ 118.457797][ C0] console_emit_next_record+0x1d1/0x4c0 [ 118.457798][ C0] console_flush_one_record+0x46f/0x710 [ 118.457800][ C0] console_unlock+0xee/0x1f0 [ 118.457801][ C0] vprintk_emit+0x37c/0x3e0 [ 118.457802][ C0] _printk+0xc7/0x100 [ 118.457804][ C0] clocksource_watchdog.part.0.cold+0x105/0x1dd [ 118.457805][ C0] call_timer_fn+0x160/0x4d0 [ 118.457806][ C0] __run_timers+0x68f/0xaa0 [ 118.457807][ C0] run_timer_softirq+0xf0/0x160 [ 118.457808][ C0] handle_softirqs+0x1d3/0x900 [ 118.457810][ C0] __irq_exit_rcu+0x145/0x1c0 [ 118.457810][ C0] irq_exit_rcu+0xe/0x30 [ 118.457811][ C0] sysvec_apic_timer_interrupt+0x9d/0xe0 [ 118.457813][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 118.457814][ C0] _raw_spin_unlock_irqrestore+0x36/0x80 [ 118.457815][ C0] uart_write+0x231/0x990 [ 118.457816][ C0] process_output_block+0x113/0x6d0 [ 118.457818][ C0] n_tty_write+0x3b4/0x8f0 [ 118.457819][ C0] iterate_tty_write+0x291/0x590 [ 118.457821][ C0] file_tty_write.isra.0+0x1bd/0x290 [ 118.457822][ C0] new_sync_write+0x33e/0x760 [ 118.457823][ C0] vfs_write+0x6a2/0xbd0 [ 118.457825][ C0] ksys_write+0x116/0x250 [ 118.457826][ C0] do_syscall_64+0xff/0x530 [ 118.457827][ C0] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 118.457828][ C0] [ 118.457828][ C0] [ 118.457828][ C0] stack backtrace: [ 118.457831][ C0] CPU: 0 UID: 0 PID: 163 Comm: perl Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 118.457834][ C0] Tainted: [W]=WARN [ 118.457835][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 118.457836][ C0] Call Trace: [ 118.457838][ C0] [ 118.457839][ C0] dump_stack_lvl+0x6f/0xa0 [ 118.457842][ C0] print_irq_inversion_bug.part.0.cold+0xe6/0x143 [ 118.457844][ C0] mark_lock_irq+0x989/0x9c0 [ 118.457846][ C0] ? add_lock_to_list+0x2c/0x1a0 [ 118.457848][ C0] mark_lock+0x1d7/0xa00 [ 118.457850][ C0] mark_usage+0x42/0x170 [ 118.457851][ C0] __lock_acquire+0x388/0xc20 [ 118.457853][ C0] lock_acquire.part.0+0xd4/0x280 [ 118.457855][ C0] ? console_lock_spinning_enable+0x40/0x60 [ 118.457856][ C0] ? rcu_is_watching+0x16/0xd0 [ 118.457859][ C0] ? lock_acquire+0x13c/0x160 [ 118.457861][ C0] console_lock_spinning_enable+0x5c/0x60 [ 118.457862][ C0] ? console_lock_spinning_enable+0x40/0x60 [ 118.457864][ C0] console_emit_next_record+0x1d1/0x4c0 [ 118.457866][ C0] ? devkmsg_read+0x4b0/0x4b0 [ 118.457867][ C0] ? console_flush_one_record+0x106/0x710 [ 118.457869][ C0] ? rcu_is_watching+0x16/0xd0 [ 118.457870][ C0] ? lock_acquire+0x13c/0x160 [ 118.457872][ C0] console_flush_one_record+0x46f/0x710 [ 118.457874][ C0] ? console_emit_next_record+0x4c0/0x4c0 [ 118.457876][ C0] ? __lock_acquire+0x518/0xc20 [ 118.457878][ C0] console_unlock+0xee/0x1f0 [ 118.457879][ C0] ? console_flush_one_record+0x710/0x710 [ 118.457881][ C0] ? rcu_is_watching+0x16/0xd0 [ 118.457882][ C0] ? lock_acquire+0x60/0x160 [ 118.457884][ C0] ? __down_trylock_console_sem+0x5e/0xa0 [ 118.457885][ C0] ? vprintk_emit+0x320/0x3e0 [ 118.457887][ C0] vprintk_emit+0x37c/0x3e0 [ 118.457889][ C0] ? wake_up_klogd_work_func+0x90/0x90 [ 118.457891][ C0] ? clocksource_watchdog.part.0+0x450/0x540 [ 118.457893][ C0] _printk+0xc7/0x100 [ 118.457894][ C0] ? snapshot_read.cold+0x21/0x21 [ 118.457896][ C0] ? clocksource_watchdog.part.0+0x450/0x540 [ 118.457898][ C0] ? __lock_release.isra.0+0x69/0x1a0 [ 118.457900][ C0] clocksource_watchdog.part.0.cold+0x105/0x1dd [ 118.457901][ C0] ? clocksource_watchdog.part.0+0x540/0x540 [ 118.457903][ C0] ? clocksource_watchdog.part.0+0x540/0x540 [ 118.457904][ C0] call_timer_fn+0x160/0x4d0 [ 118.457906][ C0] ? detach_if_pending+0x1d0/0x1d0 [ 118.457907][ C0] ? debug_object_active_state+0x430/0x430 [ 118.457910][ C0] ? find_held_lock+0x2b/0x80 [ 118.457913][ C0] ? __lock_release.isra.0+0x69/0x1a0 [ 118.457914][ C0] ? mark_held_locks+0x40/0x70 [ 118.457916][ C0] __run_timers+0x68f/0xaa0 [ 118.457917][ C0] ? clocksource_watchdog.part.0+0x540/0x540 [ 118.457919][ C0] ? __bpf_trace_itimer_expire+0x10/0x10 [ 118.457921][ C0] ? __lock_acquire+0x518/0xc20 [ 118.457923][ C0] ? __rwlock_init+0x150/0x150 [ 118.457925][ C0] run_timer_softirq+0xf0/0x160 [ 118.457927][ C0] ? __run_timers+0xaa0/0xaa0 [ 118.457928][ C0] ? handle_softirqs+0x19c/0x900 [ 118.457929][ C0] ? rcu_is_watching+0x16/0xd0 [ 118.457931][ C0] handle_softirqs+0x1d3/0x900 [ 118.457933][ C0] ? __lock_release.isra.0+0x69/0x1a0 [ 118.457934][ C0] ? _local_bh_enable+0xc0/0xc0 [ 118.457936][ C0] __irq_exit_rcu+0x145/0x1c0 [ 118.457937][ C0] irq_exit_rcu+0xe/0x30 [ 118.457938][ C0] sysvec_apic_timer_interrupt+0x9d/0xe0 [ 118.457940][ C0] [ 118.457940][ C0] [ 118.457941][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 118.457943][ C0] RIP: 0010:_raw_spin_unlock_irqrestore+0x36/0x80 [ 118.457945][ C0] Code: f5 53 48 8b 74 24 10 48 89 fb 48 83 c7 18 e8 c1 1f af fd 48 89 df e8 c9 75 af fd f7 c5 00 02 00 00 75 1f 9c 58 f6 c4 02 75 2f 01 00 00 00 e8 70 3f a1 fd 65 48 83 3d af cb 0d 02 00 74 12 5b [ 118.457947][ C0] RSP: 0018:ffa0000001817a78 EFLAGS: 00000246 [ 118.457950][ C0] RAX: 0000000000000092 RBX: ffffffff9e9fad00 RCX: ffffffff9ac64483 [ 118.457951][ C0] RDX: ff11000013f02380 RSI: ffffffff9b657571 RDI: ffffffff9b08d8e0 [ 118.457952][ C0] RBP: 0000000000000286 R08: 0000000000000000 R09: 0000000000000000 [ 118.457953][ C0] R10: 0000000000000000 R11: 0000000000000001 R12: ffffffff9e9fae20 [ 118.457953][ C0] R13: 0000000000000001 R14: ffffffff9e9fae58 R15: ff11000011629000 [ 118.457955][ C0] ? _raw_spin_unlock_irqrestore+0x53/0x80 [ 118.457957][ C0] uart_write+0x231/0x990 [ 118.457959][ C0] process_output_block+0x113/0x6d0 [ 118.457961][ C0] n_tty_write+0x3b4/0x8f0 [ 118.457964][ C0] ? n_tty_receive_signal_char+0x110/0x110 [ 118.457966][ C0] ? _mutex_trylock_nest_lock+0x235/0x390 [ 118.457967][ C0] ? add_wait_queue_priority_exclusive+0x1b0/0x1b0 [ 118.457970][ C0] ? tty_ldisc_ref_wait+0x28/0x80 [ 118.457972][ C0] iterate_tty_write+0x291/0x590 [ 118.457974][ C0] ? tty_ldisc_ref_wait+0x28/0x80 [ 118.457976][ C0] file_tty_write.isra.0+0x1bd/0x290 [ 118.457977][ C0] ? redirected_tty_write+0xd0/0xd0 [ 118.457979][ C0] new_sync_write+0x33e/0x760 [ 118.457981][ C0] ? new_sync_read+0x750/0x750 [ 118.457982][ C0] ? generic_write_checks_count+0x480/0x480 [ 118.457985][ C0] vfs_write+0x6a2/0xbd0 [ 118.457987][ C0] ? vfs_read+0x3dd/0x7b0 [ 118.457989][ C0] ksys_write+0x116/0x250 [ 118.457990][ C0] ? __ia32_sys_read+0xc0/0xc0 [ 118.457992][ C0] ? restore_fpregs_from_fpstate+0x44/0x130 [ 118.457994][ C0] ? rcu_is_watching+0x16/0xd0 [ 118.457995][ C0] do_syscall_64+0xff/0x530 [ 118.457997][ C0] ? irq_exit_rcu+0x1a/0x30 [ 118.457998][ C0] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 118.457999][ C0] RIP: 0033:0x7ff8c3d4554e [ 118.458002][ C0] Code: 4d 89 d8 e8 b4 bd 00 00 4c 8b 5d f8 41 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 11 c9 c3 0f 1f 80 00 00 00 00 48 8b 45 10 0f 05 c3 83 e2 39 83 fa 08 75 e7 e8 03 ff ff ff 0f 1f 00 f3 0f 1e fa [ 118.458003][ C0] RSP: 002b:00007fffecd16c10 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 118.458004][ C0] RAX: ffffffffffffffda RBX: 00005617815761d0 RCX: 00007ff8c3d4554e [ 118.458005][ C0] RDX: 0000000000000001 RSI: 00005617815761d0 RDI: 0000000000000001 [ 118.458006][ C0] RBP: 00007fffecd16c20 R08: 0000000000000000 R09: 0000000000000000 [ 118.458006][ C0] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000001 [ 118.458007][ C0] R13: 000056178153d010 R14: 0000000000000001 R15: 00005617815761d0 [ 118.458009][ C0] [ 118.458013][ C0] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 118.458015][ C0] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 163, name: perl [ 118.458016][ C0] preempt_count: 103, expected: 0 [ 118.458017][ C0] RCU nest depth: 0, expected: 0 [ 118.458018][ C0] INFO: lockdep is turned off. [ 118.458018][ C0] irq event stamp: 90747 [ 118.458019][ C0] hardirqs last enabled at (90746): [] __down_trylock_console_sem+0x86/0xa0 [ 118.458021][ C0] hardirqs last disabled at (90747): [] console_emit_next_record+0x3d4/0x4c0 [ 118.458022][ C0] softirqs last enabled at (89880): [] handle_softirqs+0x67c/0x900 [ 118.458024][ C0] softirqs last disabled at (90725): [] __irq_exit_rcu+0x145/0x1c0 [ 118.458025][ C0] Preemption disabled at: [ 118.458026][ C0] [<0000000000000000>] 0x0 [ 118.458028][ C0] CPU: 0 UID: 0 PID: 163 Comm: perl Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 118.458030][ C0] Tainted: [W]=WARN [ 118.458030][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 118.458031][ C0] Call Trace: [ 118.458031][ C0] [ 118.458032][ C0] dump_stack_lvl+0x6f/0xa0 [ 118.458034][ C0] __might_resched.cold+0x1fe/0x2c1 [ 118.458036][ C0] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 118.458039][ C0] ? rcu_is_watching+0x16/0xd0 [ 118.458041][ C0] __kmalloc_noprof+0x443/0x760 [ 118.458042][ C0] ? __rwlock_init+0x150/0x150 [ 118.458044][ C0] ? alloc_buf.isra.0+0x4b/0x260 [ 118.458046][ C0] ? do_raw_spin_unlock+0x59/0x250 [ 118.458047][ C0] alloc_buf.isra.0+0x4b/0x260 [ 118.458049][ C0] put_chars+0x1e1/0x2f0 [ 118.458051][ C0] ? __send_to_port+0x420/0x420 [ 118.458054][ C0] ? mark_lock+0x1d7/0xa00 [ 118.458055][ C0] hvc_console_print+0x292/0x780 [ 118.458058][ C0] ? hvc_write+0x3a0/0x3a0 [ 118.458060][ C0] ? rcu_is_watching+0x16/0xd0 [ 118.458061][ C0] ? rcu_is_watching+0x16/0xd0 [ 118.458064][ C0] console_emit_next_record+0x22f/0x4c0 [ 118.458065][ C0] ? devkmsg_read+0x4b0/0x4b0 [ 118.458067][ C0] ? console_flush_one_record+0x106/0x710 [ 118.458068][ C0] ? rcu_is_watching+0x16/0xd0 [ 118.458070][ C0] ? lock_acquire+0x13c/0x160 [ 118.458072][ C0] console_flush_one_record+0x46f/0x710 [ 118.458074][ C0] ? console_emit_next_record+0x4c0/0x4c0 [ 118.458075][ C0] ? __lock_acquire+0x518/0xc20 [ 118.458077][ C0] console_unlock+0xee/0x1f0 [ 118.458079][ C0] ? console_flush_one_record+0x710/0x710 [ 118.458080][ C0] ? rcu_is_watching+0x16/0xd0 [ 118.458081][ C0] ? lock_acquire+0x60/0x160 [ 118.458090][ C0] ? __down_trylock_console_sem+0x5e/0xa0 [ 118.458091][ C0] ? vprintk_emit+0x320/0x3e0 [ 118.458093][ C0] vprintk_emit+0x37c/0x3e0 [ 118.458095][ C0] ? wake_up_klogd_work_func+0x90/0x90 [ 118.458097][ C0] ? clocksource_watchdog.part.0+0x450/0x540 [ 118.458098][ C0] _printk+0xc7/0x100 [ 118.458100][ C0] ? snapshot_read.cold+0x21/0x21 [ 118.458102][ C0] ? clocksource_watchdog.part.0+0x450/0x540 [ 118.458103][ C0] ? __lock_release.isra.0+0x69/0x1a0 [ 118.458105][ C0] clocksource_watchdog.part.0.cold+0x105/0x1dd [ 118.458107][ C0] ? clocksource_watchdog.part.0+0x540/0x540 [ 118.458108][ C0] ? clocksource_watchdog.part.0+0x540/0x540 [ 118.458109][ C0] call_timer_fn+0x160/0x4d0 [ 118.458111][ C0] ? detach_if_pending+0x1d0/0x1d0 [ 118.458112][ C0] ? debug_object_active_state+0x430/0x430 [ 118.458114][ C0] ? find_held_lock+0x2b/0x80 [ 118.458116][ C0] ? __lock_release.isra.0+0x69/0x1a0 [ 118.458117][ C0] ? mark_held_locks+0x40/0x70 [ 118.458119][ C0] __run_timers+0x68f/0xaa0 [ 118.458120][ C0] ? clocksource_watchdog.part.0+0x540/0x540 [ 118.458122][ C0] ? __bpf_trace_itimer_expire+0x10/0x10 [ 118.458123][ C0] ? __lock_acquire+0x518/0xc20 [ 118.458126][ C0] ? __rwlock_init+0x150/0x150 [ 118.458128][ C0] run_timer_softirq+0xf0/0x160 [ 118.458129][ C0] ? __run_timers+0xaa0/0xaa0 [ 118.458131][ C0] ? handle_softirqs+0x19c/0x900 [ 118.458132][ C0] ? rcu_is_watching+0x16/0xd0 [ 118.458133][ C0] handle_softirqs+0x1d3/0x900 [ 118.458135][ C0] ? __lock_release.isra.0+0x69/0x1a0 [ 118.458136][ C0] ? _local_bh_enable+0xc0/0xc0 [ 118.458138][ C0] __irq_exit_rcu+0x145/0x1c0 [ 118.458139][ C0] irq_exit_rcu+0xe/0x30 [ 118.458140][ C0] sysvec_apic_timer_interrupt+0x9d/0xe0 [ 118.458142][ C0] [ 118.458143][ C0] [ 118.458143][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 118.458145][ C0] RIP: 0010:_raw_spin_unlock_irqrestore+0x36/0x80 [ 118.458146][ C0] Code: f5 53 48 8b 74 24 10 48 89 fb 48 83 c7 18 e8 c1 1f af fd 48 89 df e8 c9 75 af fd f7 c5 00 02 00 00 75 1f 9c 58 f6 c4 02 75 2f 01 00 00 00 e8 70 3f a1 fd 65 48 83 3d af cb 0d 02 00 74 12 5b [ 118.458147][ C0] RSP: 0018:ffa0000001817a78 EFLAGS: 00000246 [ 118.458148][ C0] RAX: 0000000000000092 RBX: ffffffff9e9fad00 RCX: ffffffff9ac64483 [ 118.458149][ C0] RDX: ff11000013f02380 RSI: ffffffff9b657571 RDI: ffffffff9b08d8e0 [ 118.458150][ C0] RBP: 0000000000000286 R08: 0000000000000000 R09: 0000000000000000 [ 118.458151][ C0] R10: 0000000000000000 R11: 0000000000000001 R12: ffffffff9e9fae20 [ 118.458151][ C0] R13: 0000000000000001 R14: ffffffff9e9fae58 R15: ff11000011629000 [ 118.458153][ C0] ? _raw_spin_unlock_irqrestore+0x53/0x80 [ 118.458155][ C0] uart_write+0x231/0x990 [ 118.458157][ C0] process_output_block+0x113/0x6d0 [ 118.458159][ C0] n_tty_write+0x3b4/0x8f0 [ 118.458161][ C0] ? n_tty_receive_signal_char+0x110/0x110 [ 118.458163][ C0] ? _mutex_trylock_nest_lock+0x235/0x390 [ 118.458165][ C0] ? add_wait_queue_priority_exclusive+0x1b0/0x1b0 [ 118.458167][ C0] ? tty_ldisc_ref_wait+0x28/0x80 [ 118.458169][ C0] iterate_tty_write+0x291/0x590 [ 118.458171][ C0] ? tty_ldisc_ref_wait+0x28/0x80 [ 118.458172][ C0] file_tty_write.isra.0+0x1bd/0x290 [ 118.458174][ C0] ? redirected_tty_write+0xd0/0xd0 [ 118.458175][ C0] new_sync_write+0x33e/0x760 [ 118.458177][ C0] ? new_sync_read+0x750/0x750 [ 118.458179][ C0] ? generic_write_checks_count+0x480/0x480 [ 118.458182][ C0] vfs_write+0x6a2/0xbd0 [ 118.458183][ C0] ? vfs_read+0x3dd/0x7b0 [ 118.458185][ C0] ksys_write+0x116/0x250 [ 118.458187][ C0] ? __ia32_sys_read+0xc0/0xc0 [ 118.458188][ C0] ? restore_fpregs_from_fpstate+0x44/0x130 [ 118.458190][ C0] ? rcu_is_watching+0x16/0xd0 [ 118.458192][ C0] do_syscall_64+0xff/0x530 [ 118.458193][ C0] ? irq_exit_rcu+0x1a/0x30 [ 118.458194][ C0] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 118.458196][ C0] RIP: 0033:0x7ff8c3d4554e [ 118.458197][ C0] Code: 4d 89 d8 e8 b4 bd 00 00 4c 8b 5d f8 41 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 11 c9 c3 0f 1f 80 00 00 00 00 48 8b 45 10 0f 05 c3 83 e2 39 83 fa 08 75 e7 e8 03 ff ff ff 0f 1f 00 f3 0f 1e fa [ 118.458197][ C0] RSP: 002b:00007fffecd16c10 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 118.458199][ C0] RAX: ffffffffffffffda RBX: 00005617815761d0 RCX: 00007ff8c3d4554e [ 118.458199][ C0] RDX: 0000000000000001 RSI: 00005617815761d0 RDI: 0000000000000001 [ 118.458200][ C0] RBP: 00007fffecd16c20 R08: 0000000000000000 R09: 0000000000000000 [ 118.458201][ C0] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000001 [ 118.458201][ C0] R13: 000056178153d010 R14: 0000000000000001 R15: 00005617815761d0 [ 118.458203][ C0]