[ 9.233305][ T187] ip (187) used greatest stack depth: 24224 bytes left [ 9.233320][ T187] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 9.233322][ T187] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 187, name: ip [ 9.233324][ T187] preempt_count: 2, expected: 0 [ 9.233325][ T187] RCU nest depth: 0, expected: 0 [ 9.233325][ T187] locks held by ip/187: 5, last CPU#1: [ 9.233328][ T187] #0: ffffffff8b2027b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 9.233348][ T187] #1: ffffffff8b369cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 9.233354][ T187] #2: ffffffff8b369d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 9.233358][ T187] #3: ffffffff8b289660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 9.233361][ T187] #4: ffffffff8b289560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 9.233365][ T187] irq event stamp: 41496 [ 9.233366][ T187] hardirqs last enabled at (41495): [] __down_trylock_console_sem+0x86/0xa0 [ 9.233369][ T187] hardirqs last disabled at (41496): [] console_emit_next_record+0x3d4/0x4c0 [ 9.233371][ T187] softirqs last enabled at (40212): [] netlink_release+0x17b/0xcf0 [ 9.233375][ T187] softirqs last disabled at (40210): [] netlink_release+0xd2/0xcf0 [ 9.233377][ T187] Preemption disabled at: [ 9.233378][ T187] [<0000000000000000>] 0x0 [ 9.233385][ T187] CPU: 1 UID: 0 PID: 187 Comm: ip Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 9.233388][ T187] Tainted: [W]=WARN [ 9.233389][ T187] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 9.233391][ T187] Call Trace: [ 9.233392][ T187] [ 9.233394][ T187] dump_stack_lvl+0x6f/0xa0 [ 9.233400][ T187] __might_resched.cold+0x1fe/0x2c1 [ 9.233405][ T187] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 9.233409][ T187] ? __kmalloc_noprof+0xdb/0x760 [ 9.233414][ T187] __kmalloc_noprof+0x443/0x760 [ 9.233417][ T187] ? alloc_buf.isra.0+0x4b/0x260 [ 9.233422][ T187] ? do_raw_spin_unlock+0x59/0x250 [ 9.233425][ T187] alloc_buf.isra.0+0x4b/0x260 [ 9.233428][ T187] put_chars+0x1e1/0x2f0 [ 9.233431][ T187] ? __send_to_port+0x420/0x420 [ 9.233432][ T187] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 9.233437][ T187] ? validate_chain+0x38b/0xc20 [ 9.233442][ T187] hvc_console_print+0x292/0x780 [ 9.233449][ T187] ? hvc_write+0x3a0/0x3a0 [ 9.233451][ T187] ? rcu_is_watching+0x16/0xd0 [ 9.233453][ T187] ? lock_acquire+0x13c/0x160 [ 9.233457][ T187] console_emit_next_record+0x22f/0x4c0 [ 9.233461][ T187] ? devkmsg_read+0x4b0/0x4b0 [ 9.233463][ T187] ? console_flush_one_record+0x106/0x710 [ 9.233466][ T187] ? rcu_is_watching+0x16/0xd0 [ 9.233469][ T187] ? lock_acquire+0x13c/0x160 [ 9.233472][ T187] console_flush_one_record+0x46f/0x710 [ 9.233477][ T187] ? console_emit_next_record+0x4c0/0x4c0 [ 9.233478][ T187] ? __lock_acquire+0x518/0xc20 [ 9.233484][ T187] console_unlock+0xee/0x1f0 [ 9.233486][ T187] ? console_flush_one_record+0x710/0x710 [ 9.233488][ T187] ? rcu_is_watching+0x16/0xd0 [ 9.233491][ T187] ? lock_acquire+0x60/0x160 [ 9.233494][ T187] ? __down_trylock_console_sem+0x5e/0xa0 [ 9.233496][ T187] ? vprintk_emit+0x320/0x3e0 [ 9.233499][ T187] vprintk_emit+0x37c/0x3e0 [ 9.233503][ T187] ? wake_up_klogd_work_func+0x90/0x90 [ 9.233507][ T187] ? __lock_acquire+0x518/0xc20 [ 9.233510][ T187] _printk+0xc7/0x100 [ 9.233514][ T187] ? snapshot_read.cold+0x21/0x21 [ 9.233517][ T187] ? do_raw_spin_lock+0x131/0x280 [ 9.233520][ T187] ? __rwlock_init+0x150/0x150 [ 9.233523][ T187] ? do_raw_spin_lock+0x131/0x280 [ 9.233526][ T187] do_exit.cold+0x82/0x9c [ 9.233530][ T187] ? exit_notify+0x890/0x890 [ 9.233532][ T187] ? __lock_release.isra.0+0x69/0x1a0 [ 9.233535][ T187] ? rcu_is_watching+0x16/0xd0 [ 9.233539][ T187] do_group_exit+0xb8/0x370 [ 9.233542][ T187] __x64_sys_exit_group+0x3c/0x50 [ 9.233543][ T187] x64_sys_call+0x1567/0x1570 [ 9.233546][ T187] do_syscall_64+0xff/0x530 [ 9.233549][ T187] ? exc_page_fault+0xee/0x100 [ 9.233552][ T187] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 9.233554][ T187] RIP: 0033:0x7f1f53b611b8 [ 9.233556][ T187] Code: Unable to access opcode bytes at 0x7f1f53b6118e. [ 9.233557][ T187] RSP: 002b:00007fff60c7df28 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 9.233560][ T187] RAX: ffffffffffffffda RBX: 00007f1f53c91f88 RCX: 00007f1f53b611b8 [ 9.233561][ T187] RDX: 00007f1f538abfc8 RSI: fffffffffffffeb8 RDI: 0000000000000000 [ 9.233562][ T187] RBP: 00007fff60c7df80 R08: 0000000000000000 R09: 0000000000008010 [ 9.233563][ T187] R10: 00007fff60c7dd40 R11: 0000000000000246 R12: 0000000000000001 [ 9.233564][ T187] R13: 0000000000000000 R14: 00007f1f53c90680 R15: 00007f1f53c91fa0 [ 9.233571][ T187] [ 25.124944][ C0] clocksource: Marking clocksource tsc unstable due to frequency skew [ 25.124991][ C0] [ 25.124993][ C0] ======================================================== [ 25.124994][ C0] WARNING: possible irq lock inversion dependency detected [ 25.124997][ C0] 7.2.0-virtme #1 Tainted: G W [ 25.124999][ C0] -------------------------------------------------------- [ 25.125000][ C0] mausezahn/459 just changed the state of lock: [ 25.125001][ C0] ffffffff8b289660 (console_owner){..-.}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 25.125014][ C0] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 25.125016][ C0] (fs_reclaim){+.+.}-{0:0} [ 25.125017][ C0] [ 25.125017][ C0] [ 25.125017][ C0] and interrupts could create inverse lock ordering between them. [ 25.125017][ C0] [ 25.125018][ C0] [ 25.125018][ C0] other info that might help us debug this: [ 25.125019][ C0] Possible interrupt unsafe locking scenario: [ 25.125019][ C0] [ 25.125020][ C0] CPU0 CPU1 [ 25.125020][ C0] ---- ---- [ 25.125021][ C0] lock(fs_reclaim); [ 25.125022][ C0] local_irq_disable(); [ 25.125022][ C0] lock(console_owner); [ 25.125023][ C0] lock(fs_reclaim); [ 25.125024][ C0] [ 25.125024][ C0] lock(console_owner); [ 25.125025][ C0] [ 25.125025][ C0] *** DEADLOCK *** [ 25.125025][ C0] [ 25.125025][ C0] locks held by mausezahn/459: 4, last CPU#0: [ 25.125027][ C0] #0: ffa0000000007c90 ((&watchdog_timer)){+.-.}-{0:0}, at: call_timer_fn+0x110/0x4d0 [ 25.125032][ C0] #1: ffffffff8b3ce8b8 (watchdog_lock){+.-.}-{3:3}, at: clocksource_watchdog+0x15/0x30 [ 25.125036][ C0] #2: ffffffff8b369cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 25.125040][ C0] #3: ffffffff8b369d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 25.125043][ C0] [ 25.125043][ C0] the shortest dependencies between 2nd lock and 1st lock: [ 25.125048][ C0] -> (fs_reclaim){+.+.}-{0:0} { [ 25.125050][ C0] HARDIRQ-ON-W at: [ 25.125052][ C0] __lock_acquire+0x388/0xc20 [ 25.125055][ C0] lock_acquire.part.0+0xd4/0x280 [ 25.125057][ C0] fs_reclaim_acquire+0xd5/0x120 [ 25.125060][ C0] __kmalloc_cache_noprof+0x6e/0x620 [ 25.125062][ C0] kthread_create_worker_on_node+0xea/0x210 [ 25.125065][ C0] workqueue_init+0x2a/0x680 [ 25.125069][ C0] kernel_init_freeable+0x2fe/0x630 [ 25.125071][ C0] kernel_init+0x21/0x150 [ 25.125074][ C0] ret_from_fork+0x474/0x6b0 [ 25.125077][ C0] ret_from_fork_asm+0x11/0x20 [ 25.125080][ C0] SOFTIRQ-ON-W at: [ 25.125081][ C0] __lock_acquire+0x388/0xc20 [ 25.125082][ C0] lock_acquire.part.0+0xd4/0x280 [ 25.125084][ C0] fs_reclaim_acquire+0xd5/0x120 [ 25.125085][ C0] __kmalloc_cache_noprof+0x6e/0x620 [ 25.125086][ C0] kthread_create_worker_on_node+0xea/0x210 [ 25.125088][ C0] workqueue_init+0x2a/0x680 [ 25.125089][ C0] kernel_init_freeable+0x2fe/0x630 [ 25.125090][ C0] kernel_init+0x21/0x150 [ 25.125092][ C0] ret_from_fork+0x474/0x6b0 [ 25.125093][ C0] ret_from_fork_asm+0x11/0x20 [ 25.125094][ C0] INITIAL USE at: [ 25.125095][ C0] __lock_acquire+0x388/0xc20 [ 25.125096][ C0] lock_acquire.part.0+0xd4/0x280 [ 25.125097][ C0] fs_reclaim_acquire+0xd5/0x120 [ 25.125098][ C0] __kmalloc_cache_noprof+0x6e/0x620 [ 25.125100][ C0] kthread_create_worker_on_node+0xea/0x210 [ 25.125101][ C0] workqueue_init+0x2a/0x680 [ 25.125102][ C0] kernel_init_freeable+0x2fe/0x630 [ 25.125103][ C0] kernel_init+0x21/0x150 [ 25.125105][ C0] ret_from_fork+0x474/0x6b0 [ 25.125106][ C0] ret_from_fork_asm+0x11/0x20 [ 25.125107][ C0] } [ 25.125108][ C0] ... key at: [] __fs_reclaim_map+0x0/0xbe0 [ 25.125112][ C0] ... acquired at: [ 25.125113][ C0] __lock_acquire+0x518/0xc20 [ 25.125114][ C0] lock_acquire.part.0+0xd4/0x280 [ 25.125115][ C0] fs_reclaim_acquire+0xd5/0x120 [ 25.125116][ C0] __kmalloc_noprof+0xd3/0x760 [ 25.125118][ C0] alloc_buf.isra.0+0x4b/0x260 [ 25.125121][ C0] put_chars+0x1e1/0x2f0 [ 25.125122][ C0] hvc_console_print+0x292/0x780 [ 25.125124][ C0] console_emit_next_record+0x22f/0x4c0 [ 25.125126][ C0] console_flush_one_record+0x46f/0x710 [ 25.125127][ C0] console_unlock+0xee/0x1f0 [ 25.125129][ C0] vprintk_emit+0x37c/0x3e0 [ 25.125130][ C0] _printk+0xc7/0x100 [ 25.125134][ C0] loop_init+0x12a/0x130 [ 25.125137][ C0] do_one_initcall+0x124/0x4f0 [ 25.125138][ C0] kernel_init_freeable+0x596/0x630 [ 25.125139][ C0] kernel_init+0x21/0x150 [ 25.125140][ C0] ret_from_fork+0x474/0x6b0 [ 25.125141][ C0] ret_from_fork_asm+0x11/0x20 [ 25.125143][ C0] [ 25.125143][ C0] -> (console_owner){..-.}-{0:0} { [ 25.125145][ C0] IN-SOFTIRQ-W at: [ 25.125145][ C0] __lock_acquire+0x388/0xc20 [ 25.125147][ C0] lock_acquire.part.0+0xd4/0x280 [ 25.125148][ C0] console_lock_spinning_enable+0x5c/0x60 [ 25.125150][ C0] console_emit_next_record+0x1d1/0x4c0 [ 25.125151][ C0] console_flush_one_record+0x46f/0x710 [ 25.125153][ C0] console_unlock+0xee/0x1f0 [ 25.125155][ C0] vprintk_emit+0x37c/0x3e0 [ 25.125156][ C0] _printk+0xc7/0x100 [ 25.125158][ C0] clocksource_watchdog.part.0.cold+0x32/0x1dd [ 25.125160][ C0] call_timer_fn+0x160/0x4d0 [ 25.125162][ C0] __run_timers+0x68f/0xaa0 [ 25.125163][ C0] run_timer_softirq+0xf0/0x160 [ 25.125165][ C0] handle_softirqs+0x1d3/0x900 [ 25.125167][ C0] __irq_exit_rcu+0x145/0x1c0 [ 25.125169][ C0] irq_exit_rcu+0xe/0x30 [ 25.125170][ C0] sysvec_apic_timer_interrupt+0x9d/0xe0 [ 25.125172][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 25.125174][ C0] kasan_check_range+0x1a0/0x200 [ 25.125177][ C0] __asan_memset+0x27/0x50 [ 25.125178][ C0] __unwind_start+0x3e/0x900 [ 25.125180][ C0] arch_stack_walk+0xb3/0x130 [ 25.125182][ C0] stack_trace_save+0x93/0xc0 [ 25.125184][ C0] kasan_save_stack+0x2f/0x50 [ 25.125186][ C0] kasan_save_track+0x14/0x30 [ 25.125187][ C0] __kasan_slab_alloc+0x60/0x70 [ 25.125189][ C0] kmem_cache_alloc_node_noprof+0x25c/0x660 [ 25.125190][ C0] kmalloc_reserve+0x103/0x2d0 [ 25.125194][ C0] __alloc_skb+0x11e/0x5f0 [ 25.125195][ C0] alloc_skb_with_frags+0xcc/0x6c0 [ 25.125197][ C0] sock_alloc_send_pskb+0x327/0x3f0 [ 25.125199][ C0] raw_send_hdrinc+0x25a/0x1740 [ 25.125201][ C0] raw_sendmsg+0x12ba/0x1cc0 [ 25.125202][ C0] __sys_sendto+0x2aa/0x400 [ 25.125205][ C0] __x64_sys_sendto+0xe4/0x1f0 [ 25.125206][ C0] do_syscall_64+0xff/0x530 [ 25.125208][ C0] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 25.125209][ C0] INITIAL USE at: [ 25.125210][ C0] } [ 25.125210][ C0] ... key at: [] console_owner_dep_map+0x0/0x60 [ 25.125213][ C0] ... acquired at: [ 25.125214][ C0] mark_lock+0x1d7/0xa00 [ 25.125215][ C0] mark_usage+0x42/0x170 [ 25.125217][ C0] __lock_acquire+0x388/0xc20 [ 25.125218][ C0] lock_acquire.part.0+0xd4/0x280 [ 25.125219][ C0] console_lock_spinning_enable+0x5c/0x60 [ 25.125221][ C0] console_emit_next_record+0x1d1/0x4c0 [ 25.125222][ C0] console_flush_one_record+0x46f/0x710 [ 25.125224][ C0] console_unlock+0xee/0x1f0 [ 25.125225][ C0] vprintk_emit+0x37c/0x3e0 [ 25.125227][ C0] _printk+0xc7/0x100 [ 25.125228][ C0] clocksource_watchdog.part.0.cold+0x32/0x1dd [ 25.125229][ C0] call_timer_fn+0x160/0x4d0 [ 25.125231][ C0] __run_timers+0x68f/0xaa0 [ 25.125232][ C0] run_timer_softirq+0xf0/0x160 [ 25.125234][ C0] handle_softirqs+0x1d3/0x900 [ 25.125235][ C0] __irq_exit_rcu+0x145/0x1c0 [ 25.125236][ C0] irq_exit_rcu+0xe/0x30 [ 25.125237][ C0] sysvec_apic_timer_interrupt+0x9d/0xe0 [ 25.125239][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 25.125240][ C0] kasan_check_range+0x1a0/0x200 [ 25.125242][ C0] __asan_memset+0x27/0x50 [ 25.125243][ C0] __unwind_start+0x3e/0x900 [ 25.125244][ C0] arch_stack_walk+0xb3/0x130 [ 25.125245][ C0] stack_trace_save+0x93/0xc0 [ 25.125246][ C0] kasan_save_stack+0x2f/0x50 [ 25.125248][ C0] kasan_save_track+0x14/0x30 [ 25.125249][ C0] __kasan_slab_alloc+0x60/0x70 [ 25.125251][ C0] kmem_cache_alloc_node_noprof+0x25c/0x660 [ 25.125252][ C0] kmalloc_reserve+0x103/0x2d0 [ 25.125253][ C0] __alloc_skb+0x11e/0x5f0 [ 25.125255][ C0] alloc_skb_with_frags+0xcc/0x6c0 [ 25.125256][ C0] sock_alloc_send_pskb+0x327/0x3f0 [ 25.125258][ C0] raw_send_hdrinc+0x25a/0x1740 [ 25.125259][ C0] raw_sendmsg+0x12ba/0x1cc0 [ 25.125260][ C0] __sys_sendto+0x2aa/0x400 [ 25.125261][ C0] __x64_sys_sendto+0xe4/0x1f0 [ 25.125263][ C0] do_syscall_64+0xff/0x530 [ 25.125264][ C0] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 25.125265][ C0] [ 25.125265][ C0] [ 25.125265][ C0] stack backtrace: [ 25.125268][ C0] CPU: 0 UID: 0 PID: 459 Comm: mausezahn Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 25.125272][ C0] Tainted: [W]=WARN [ 25.125272][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 25.125274][ C0] Call Trace: [ 25.125276][ C0] [ 25.125277][ C0] dump_stack_lvl+0x6f/0xa0 [ 25.125281][ C0] print_irq_inversion_bug.part.0.cold+0xe6/0x143 [ 25.125283][ C0] mark_lock_irq+0x989/0x9c0 [ 25.125285][ C0] ? add_lock_to_list+0x2c/0x1a0 [ 25.125288][ C0] mark_lock+0x1d7/0xa00 [ 25.125290][ C0] mark_usage+0x42/0x170 [ 25.125291][ C0] __lock_acquire+0x388/0xc20 [ 25.125293][ C0] lock_acquire.part.0+0xd4/0x280 [ 25.125295][ C0] ? console_lock_spinning_enable+0x40/0x60 [ 25.125297][ C0] ? rcu_is_watching+0x16/0xd0 [ 25.125300][ C0] ? lock_acquire+0x13c/0x160 [ 25.125302][ C0] console_lock_spinning_enable+0x5c/0x60 [ 25.125304][ C0] ? console_lock_spinning_enable+0x40/0x60 [ 25.125306][ C0] console_emit_next_record+0x1d1/0x4c0 [ 25.125308][ C0] ? devkmsg_read+0x4b0/0x4b0 [ 25.125310][ C0] ? console_flush_one_record+0x106/0x710 [ 25.125312][ C0] ? rcu_is_watching+0x16/0xd0 [ 25.125313][ C0] ? lock_acquire+0x13c/0x160 [ 25.125315][ C0] console_flush_one_record+0x46f/0x710 [ 25.125318][ C0] ? console_emit_next_record+0x4c0/0x4c0 [ 25.125319][ C0] ? __lock_acquire+0x518/0xc20 [ 25.125322][ C0] console_unlock+0xee/0x1f0 [ 25.125324][ C0] ? console_flush_one_record+0x710/0x710 [ 25.125325][ C0] ? rcu_is_watching+0x16/0xd0 [ 25.125327][ C0] ? lock_acquire+0x60/0x160 [ 25.125329][ C0] ? __down_trylock_console_sem+0x5e/0xa0 [ 25.125331][ C0] ? vprintk_emit+0x320/0x3e0 [ 25.125333][ C0] vprintk_emit+0x37c/0x3e0 [ 25.125335][ C0] ? wake_up_klogd_work_func+0x90/0x90 [ 25.125336][ C0] ? rcu_read_lock_any_held+0x3c/0x90 [ 25.125339][ C0] ? validate_chain+0x38b/0xc20 [ 25.125340][ C0] ? validate_chain+0x38b/0xc20 [ 25.125342][ C0] ? clocksource_watchdog.part.0+0x450/0x540 [ 25.125343][ C0] _printk+0xc7/0x100 [ 25.125345][ C0] ? snapshot_read.cold+0x21/0x21 [ 25.125347][ C0] ? watchdog_check_freq+0x2d5/0x5c0 [ 25.125350][ C0] clocksource_watchdog.part.0.cold+0x32/0x1dd [ 25.125351][ C0] ? clocksource_watchdog.part.0+0x540/0x540 [ 25.125353][ C0] ? clocksource_watchdog.part.0+0x540/0x540 [ 25.125355][ C0] call_timer_fn+0x160/0x4d0 [ 25.125357][ C0] ? detach_if_pending+0x1d0/0x1d0 [ 25.125358][ C0] ? debug_object_active_state+0x430/0x430 [ 25.125362][ C0] ? find_held_lock+0x2b/0x80 [ 25.125364][ C0] ? __lock_release.isra.0+0x69/0x1a0 [ 25.125365][ C0] ? rcu_is_watching+0x16/0xd0 [ 25.125368][ C0] __run_timers+0x68f/0xaa0 [ 25.125369][ C0] ? clocksource_watchdog.part.0+0x540/0x540 [ 25.125371][ C0] ? __bpf_trace_itimer_expire+0x10/0x10 [ 25.125373][ C0] ? __lock_acquire+0x518/0xc20 [ 25.125376][ C0] ? __rwlock_init+0x150/0x150 [ 25.125378][ C0] run_timer_softirq+0xf0/0x160 [ 25.125380][ C0] ? __run_timers+0xaa0/0xaa0 [ 25.125382][ C0] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 25.125384][ C0] ? rcu_is_watching+0x16/0xd0 [ 25.125386][ C0] handle_softirqs+0x1d3/0x900 [ 25.125388][ C0] ? __lock_release.isra.0+0x69/0x1a0 [ 25.125390][ C0] ? _local_bh_enable+0xc0/0xc0 [ 25.125392][ C0] __irq_exit_rcu+0x145/0x1c0 [ 25.125393][ C0] irq_exit_rcu+0xe/0x30 [ 25.125394][ C0] sysvec_apic_timer_interrupt+0x9d/0xe0 [ 25.125396][ C0] [ 25.125397][ C0] [ 25.125398][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 25.125400][ C0] RIP: 0010:kasan_check_range+0x1a0/0x200 [ 25.125403][ C0] Code: 29 c9 e9 1b ff ff ff 4d 8d 1c 0b 48 85 c9 75 17 e9 68 ff ff ff 0f 1f 44 00 00 48 83 c0 01 4c 39 d8 0f 84 56 ff ff ff 80 38 00 <74> ee e9 47 ff ff ff b8 01 00 00 00 c3 4c 89 d1 48 29 c1 49 89 cb [ 25.125404][ C0] RSP: 0018:ffa0000001ec7398 EFLAGS: 00000246 [ 25.125407][ C0] RAX: fff3fc00003d8e89 RBX: fff3fc00003d8e92 RCX: 000000000000000e [ 25.125408][ C0] RDX: 0000000000000001 RSI: 0000000000000070 RDI: ffa0000001ec7428 [ 25.125409][ C0] RBP: ff1100000f550040 R08: ffffffff87f583fe R09: 1ff40000003d8e92 [ 25.125410][ C0] R10: fff3fc00003d8e93 R11: fff3fc00003d8e93 R12: 0000000000000000 [ 25.125411][ C0] R13: 0000000000000000 R14: ffa0000001ec7497 R15: ffa0000001ec7428 [ 25.125412][ C0] ? __unwind_start+0x3e/0x900 [ 25.125415][ C0] __asan_memset+0x27/0x50 [ 25.125416][ C0] __unwind_start+0x3e/0x900 [ 25.125417][ C0] ? find_held_lock+0x2b/0x80 [ 25.125419][ C0] ? write_profile+0xf0/0xf0 [ 25.125420][ C0] ? __lock_acquire+0x518/0xc20 [ 25.125422][ C0] arch_stack_walk+0xb3/0x130 [ 25.125425][ C0] stack_trace_save+0x93/0xc0 [ 25.125426][ C0] ? filter_irq_stacks+0xd0/0xd0 [ 25.125428][ C0] ? is_bpf_text_address+0x72/0x110 [ 25.125431][ C0] ? kernel_text_address+0x149/0x170 [ 25.125433][ C0] kasan_save_stack+0x2f/0x50 [ 25.125439][ C0] kasan_save_track+0x14/0x30 [ 25.125441][ C0] __kasan_slab_alloc+0x60/0x70 [ 25.125443][ C0] kmem_cache_alloc_node_noprof+0x25c/0x660 [ 25.125445][ C0] ? kmalloc_reserve+0x103/0x2d0 [ 25.125447][ C0] kmalloc_reserve+0x103/0x2d0 [ 25.125449][ C0] __alloc_skb+0x11e/0x5f0 [ 25.125450][ C0] ? __alloc_skb+0x4c2/0x5f0 [ 25.125452][ C0] ? napi_skb_cache_get+0x830/0x830 [ 25.125454][ C0] ? lock_acquire.part.0+0xd4/0x280 [ 25.125456][ C0] ? find_held_lock+0x2b/0x80 [ 25.125457][ C0] alloc_skb_with_frags+0xcc/0x6c0 [ 25.125459][ C0] ? rt_is_expired+0x11f/0x270 [ 25.125463][ C0] sock_alloc_send_pskb+0x327/0x3f0 [ 25.125465][ C0] raw_send_hdrinc+0x25a/0x1740 [ 25.125467][ C0] ? xfrm_bundle_lookup.constprop.0+0xba0/0xba0 [ 25.125471][ C0] ? nf_hook.constprop.0+0x340/0x340 [ 25.125472][ C0] ? __lock_release.isra.0+0x69/0x1a0 [ 25.125479][ C0] raw_sendmsg+0x12ba/0x1cc0 [ 25.125481][ C0] ? __rcu_read_lock+0x30/0x70 [ 25.125483][ C0] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 25.125484][ C0] ? raw_send_hdrinc+0x1740/0x1740 [ 25.125485][ C0] ? irqentry_exit+0x21c/0x790 [ 25.125487][ C0] ? irqentry_exit+0x21c/0x790 [ 25.125488][ C0] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 25.125492][ C0] ? __might_fault+0x97/0x140 [ 25.125496][ C0] ? __might_fault+0x97/0x140 [ 25.125498][ C0] ? __might_fault+0x97/0x140 [ 25.125500][ C0] __sys_sendto+0x2aa/0x400 [ 25.125501][ C0] ? __ia32_sys_getpeername+0xd0/0xd0 [ 25.125504][ C0] ? rcutree_report_cpu_dead+0x4a0/0x4a0 [ 25.125507][ C0] ? xfd_validate_state+0x2a/0x140 [ 25.125510][ C0] __x64_sys_sendto+0xe4/0x1f0 [ 25.125512][ C0] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 25.125513][ C0] ? lockdep_hardirqs_on+0x91/0x130 [ 25.125515][ C0] ? do_syscall_64+0xa6/0x530 [ 25.125516][ C0] do_syscall_64+0xff/0x530 [ 25.125517][ C0] ? irq_exit_rcu+0x1a/0x30 [ 25.125518][ C0] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 25.125520][ C0] RIP: 0033:0x7f20e4b9354e [ 25.125523][ 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 [ 25.125524][ C0] RSP: 002b:00007ffde32b2fb0 EFLAGS: 00000202 ORIG_RAX: 000000000000002c [ 25.125526][ C0] RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007f20e4b9354e [ 25.125527][ C0] RDX: 000000000000005c RSI: 0000559203ba0ac0 RDI: 0000000000000005 [ 25.125528][ C0] RBP: 00007ffde32b2fc0 R08: 00007ffde32b3010 R09: 0000000000000010 [ 25.125529][ C0] R10: 0000000000000000 R11: 0000000000000202 R12: 000000000000005c [ 25.125529][ C0] R13: 0000559203ba0830 R14: 0000000000000000 R15: 0000000000000000 [ 25.125532][ C0] [ 25.125536][ C0] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 25.125538][ C0] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 459, name: mausezahn [ 25.125539][ C0] preempt_count: 102, expected: 0 [ 25.125540][ C0] RCU nest depth: 0, expected: 0 [ 25.125541][ C0] INFO: lockdep is turned off. [ 25.125542][ C0] irq event stamp: 1520421 [ 25.125542][ C0] hardirqs last enabled at (1520420): [] __down_trylock_console_sem+0x86/0xa0 [ 25.125545][ C0] hardirqs last disabled at (1520421): [] console_emit_next_record+0x3d4/0x4c0 [ 25.125547][ C0] softirqs last enabled at (588136): [] __alloc_skb+0x4c2/0x5f0 [ 25.125548][ C0] softirqs last disabled at (588147): [] __irq_exit_rcu+0x145/0x1c0 [ 25.125550][ C0] Preemption disabled at: [ 25.125550][ C0] [] handle_softirqs+0xf6/0x900 [ 25.125553][ C0] CPU: 0 UID: 0 PID: 459 Comm: mausezahn Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 25.125555][ C0] Tainted: [W]=WARN [ 25.125555][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 25.125556][ C0] Call Trace: [ 25.125556][ C0] [ 25.125557][ C0] dump_stack_lvl+0x6f/0xa0 [ 25.125559][ C0] ? handle_softirqs+0xf6/0x900 [ 25.125561][ C0] __might_resched.cold+0x1fe/0x2c1 [ 25.125564][ C0] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 25.125567][ C0] ? rcu_is_watching+0x16/0xd0 [ 25.125569][ C0] __kmalloc_noprof+0x443/0x760 [ 25.125571][ C0] ? __rwlock_init+0x150/0x150 [ 25.125572][ C0] ? alloc_buf.isra.0+0x4b/0x260 [ 25.125574][ C0] ? do_raw_spin_unlock+0x59/0x250 [ 25.125575][ C0] alloc_buf.isra.0+0x4b/0x260 [ 25.125578][ C0] put_chars+0x1e1/0x2f0 [ 25.125580][ C0] ? __send_to_port+0x420/0x420 [ 25.125581][ C0] ? mark_lock+0x1d7/0xa00 [ 25.125583][ C0] hvc_console_print+0x292/0x780 [ 25.125586][ C0] ? hvc_write+0x3a0/0x3a0 [ 25.125587][ C0] ? rcu_is_watching+0x16/0xd0 [ 25.125589][ C0] ? rcu_is_watching+0x16/0xd0 [ 25.125591][ C0] console_emit_next_record+0x22f/0x4c0 [ 25.125594][ C0] ? devkmsg_read+0x4b0/0x4b0 [ 25.125595][ C0] ? console_flush_one_record+0x106/0x710 [ 25.125597][ C0] ? rcu_is_watching+0x16/0xd0 [ 25.125599][ C0] ? lock_acquire+0x13c/0x160 [ 25.125601][ C0] console_flush_one_record+0x46f/0x710 [ 25.125603][ C0] ? console_emit_next_record+0x4c0/0x4c0 [ 25.125605][ C0] ? __lock_acquire+0x518/0xc20 [ 25.125607][ C0] console_unlock+0xee/0x1f0 [ 25.125609][ C0] ? console_flush_one_record+0x710/0x710 [ 25.125611][ C0] ? rcu_is_watching+0x16/0xd0 [ 25.125612][ C0] ? lock_acquire+0x60/0x160 [ 25.125614][ C0] ? __down_trylock_console_sem+0x5e/0xa0 [ 25.125616][ C0] ? vprintk_emit+0x320/0x3e0 [ 25.125618][ C0] vprintk_emit+0x37c/0x3e0 [ 25.125620][ C0] ? wake_up_klogd_work_func+0x90/0x90 [ 25.125621][ C0] ? rcu_read_lock_any_held+0x3c/0x90 [ 25.125623][ C0] ? validate_chain+0x38b/0xc20 [ 25.125624][ C0] ? validate_chain+0x38b/0xc20 [ 25.125626][ C0] ? clocksource_watchdog.part.0+0x450/0x540 [ 25.125628][ C0] _printk+0xc7/0x100 [ 25.125629][ C0] ? snapshot_read.cold+0x21/0x21 [ 25.125631][ C0] ? watchdog_check_freq+0x2d5/0x5c0 [ 25.125634][ C0] clocksource_watchdog.part.0.cold+0x32/0x1dd [ 25.125635][ C0] ? clocksource_watchdog.part.0+0x540/0x540 [ 25.125637][ C0] ? clocksource_watchdog.part.0+0x540/0x540 [ 25.125638][ C0] call_timer_fn+0x160/0x4d0 [ 25.125640][ C0] ? detach_if_pending+0x1d0/0x1d0 [ 25.125642][ C0] ? debug_object_active_state+0x430/0x430 [ 25.125644][ C0] ? find_held_lock+0x2b/0x80 [ 25.125645][ C0] ? __lock_release.isra.0+0x69/0x1a0 [ 25.125647][ C0] ? rcu_is_watching+0x16/0xd0 [ 25.125649][ C0] __run_timers+0x68f/0xaa0 [ 25.125651][ C0] ? clocksource_watchdog.part.0+0x540/0x540 [ 25.125653][ C0] ? __bpf_trace_itimer_expire+0x10/0x10 [ 25.125655][ C0] ? __lock_acquire+0x518/0xc20 [ 25.125657][ C0] ? __rwlock_init+0x150/0x150 [ 25.125660][ C0] run_timer_softirq+0xf0/0x160 [ 25.125662][ C0] ? __run_timers+0xaa0/0xaa0 [ 25.125663][ C0] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 25.125665][ C0] ? rcu_is_watching+0x16/0xd0 [ 25.125666][ C0] handle_softirqs+0x1d3/0x900 [ 25.125668][ C0] ? __lock_release.isra.0+0x69/0x1a0 [ 25.125670][ C0] ? _local_bh_enable+0xc0/0xc0 [ 25.125672][ C0] __irq_exit_rcu+0x145/0x1c0 [ 25.125673][ C0] irq_exit_rcu+0xe/0x30 [ 25.125674][ C0] sysvec_apic_timer_interrupt+0x9d/0xe0 [ 25.125676][ C0] [ 25.125677][ C0] [ 25.125677][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 25.125679][ C0] RIP: 0010:kasan_check_range+0x1a0/0x200 [ 25.125681][ C0] Code: 29 c9 e9 1b ff ff ff 4d 8d 1c 0b 48 85 c9 75 17 e9 68 ff ff ff 0f 1f 44 00 00 48 83 c0 01 4c 39 d8 0f 84 56 ff ff ff 80 38 00 <74> ee e9 47 ff ff ff b8 01 00 00 00 c3 4c 89 d1 48 29 c1 49 89 cb [ 25.125682][ C0] RSP: 0018:ffa0000001ec7398 EFLAGS: 00000246 [ 25.125683][ C0] RAX: fff3fc00003d8e89 RBX: fff3fc00003d8e92 RCX: 000000000000000e [ 25.125684][ C0] RDX: 0000000000000001 RSI: 0000000000000070 RDI: ffa0000001ec7428 [ 25.125685][ C0] RBP: ff1100000f550040 R08: ffffffff87f583fe R09: 1ff40000003d8e92 [ 25.125685][ C0] R10: fff3fc00003d8e93 R11: fff3fc00003d8e93 R12: 0000000000000000 [ 25.125686][ C0] R13: 0000000000000000 R14: ffa0000001ec7497 R15: ffa0000001ec7428 [ 25.125687][ C0] ? __unwind_start+0x3e/0x900 [ 25.125690][ C0] __asan_memset+0x27/0x50 [ 25.125691][ C0] __unwind_start+0x3e/0x900 [ 25.125692][ C0] ? find_held_lock+0x2b/0x80 [ 25.125694][ C0] ? write_profile+0xf0/0xf0 [ 25.125695][ C0] ? __lock_acquire+0x518/0xc20 [ 25.125697][ C0] arch_stack_walk+0xb3/0x130 [ 25.125700][ C0] stack_trace_save+0x93/0xc0 [ 25.125701][ C0] ? filter_irq_stacks+0xd0/0xd0 [ 25.125703][ C0] ? is_bpf_text_address+0x72/0x110 [ 25.125705][ C0] ? kernel_text_address+0x149/0x170 [ 25.125706][ C0] kasan_save_stack+0x2f/0x50 [ 25.125712][ C0] kasan_save_track+0x14/0x30 [ 25.125714][ C0] __kasan_slab_alloc+0x60/0x70 [ 25.125716][ C0] kmem_cache_alloc_node_noprof+0x25c/0x660 [ 25.125717][ C0] ? kmalloc_reserve+0x103/0x2d0 [ 25.125720][ C0] kmalloc_reserve+0x103/0x2d0 [ 25.125722][ C0] __alloc_skb+0x11e/0x5f0 [ 25.125723][ C0] ? __alloc_skb+0x4c2/0x5f0 [ 25.125725][ C0] ? napi_skb_cache_get+0x830/0x830 [ 25.125727][ C0] ? lock_acquire.part.0+0xd4/0x280 [ 25.125728][ C0] ? find_held_lock+0x2b/0x80 [ 25.125730][ C0] alloc_skb_with_frags+0xcc/0x6c0 [ 25.125732][ C0] ? rt_is_expired+0x11f/0x270 [ 25.125734][ C0] sock_alloc_send_pskb+0x327/0x3f0 [ 25.125736][ C0] raw_send_hdrinc+0x25a/0x1740 [ 25.125738][ C0] ? xfrm_bundle_lookup.constprop.0+0xba0/0xba0 [ 25.125740][ C0] ? nf_hook.constprop.0+0x340/0x340 [ 25.125742][ C0] ? __lock_release.isra.0+0x69/0x1a0 [ 25.125744][ C0] raw_sendmsg+0x12ba/0x1cc0 [ 25.125746][ C0] ? __rcu_read_lock+0x30/0x70 [ 25.125747][ C0] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 25.125749][ C0] ? raw_send_hdrinc+0x1740/0x1740 [ 25.125750][ C0] ? irqentry_exit+0x21c/0x790 [ 25.125751][ C0] ? irqentry_exit+0x21c/0x790 [ 25.125753][ C0] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 25.125757][ C0] ? __might_fault+0x97/0x140 [ 25.125760][ C0] ? __might_fault+0x97/0x140 [ 25.125761][ C0] ? __might_fault+0x97/0x140 [ 25.125763][ C0] __sys_sendto+0x2aa/0x400 [ 25.125765][ C0] ? __ia32_sys_getpeername+0xd0/0xd0 [ 25.125767][ C0] ? rcutree_report_cpu_dead+0x4a0/0x4a0 [ 25.125770][ C0] ? xfd_validate_state+0x2a/0x140 [ 25.125772][ C0] __x64_sys_sendto+0xe4/0x1f0 [ 25.125774][ C0] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 25.125775][ C0] ? lockdep_hardirqs_on+0x91/0x130 [ 25.125777][ C0] ? do_syscall_64+0xa6/0x530 [ 25.125778][ C0] do_syscall_64+0xff/0x530 [ 25.125779][ C0] ? irq_exit_rcu+0x1a/0x30 [ 25.125780][ C0] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 25.125782][ C0] RIP: 0033:0x7f20e4b9354e [ 25.125783][ 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 [ 25.125784][ C0] RSP: 002b:00007ffde32b2fb0 EFLAGS: 00000202 ORIG_RAX: 000000000000002c [ 25.125785][ C0] RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007f20e4b9354e [ 25.125786][ C0] RDX: 000000000000005c RSI: 0000559203ba0ac0 RDI: 0000000000000005 [ 25.125786][ C0] RBP: 00007ffde32b2fc0 R08: 00007ffde32b3010 R09: 0000000000000010 [ 25.125787][ C0] R10: 0000000000000000 R11: 0000000000000202 R12: 000000000000005c [ 25.125788][ C0] R13: 0000559203ba0830 R14: 0000000000000000 R15: 0000000000000000 [ 25.125790][ C0] [ 25.328818][ C0] clocksource: Watchdog kvm-clock interval: 12480ns [ 25.329118][ C0] clocksource: Clocksource tsc interval: 12250ns [ 25.329361][ C0] tsc: Marking TSC unstable due to clocksource watchdog