[ 9.253656][ T195] ip (195) used greatest stack depth: 23760 bytes left [ 9.253671][ T195] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 9.253673][ T195] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 195, name: ip [ 9.253675][ T195] preempt_count: 2, expected: 0 [ 9.253675][ T195] RCU nest depth: 0, expected: 0 [ 9.253676][ T195] locks held by ip/195: 5, last CPU#2: [ 9.253678][ T195] #0: ffffffffb2c167b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 9.253689][ T195] #1: ffffffffb2d7ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 9.253694][ T195] #2: ffffffffb2d7de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 9.253698][ T195] #3: ffffffffb2c9d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 9.253702][ T195] #4: ffffffffb2c9d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 9.253706][ T195] irq event stamp: 27398 [ 9.253707][ T195] hardirqs last enabled at (27397): [] __down_trylock_console_sem+0x86/0xa0 [ 9.253710][ T195] hardirqs last disabled at (27398): [] console_emit_next_record+0x3d4/0x4c0 [ 9.253712][ T195] softirqs last enabled at (25804): [] netlink_release+0x17b/0xcf0 [ 9.253716][ T195] softirqs last disabled at (25802): [] netlink_release+0xd2/0xcf0 [ 9.253719][ T195] Preemption disabled at: [ 9.253719][ T195] [<0000000000000000>] 0x0 [ 9.253726][ T195] CPU: 2 UID: 0 PID: 195 Comm: ip Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 9.253729][ T195] Tainted: [W]=WARN [ 9.253730][ T195] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 9.253732][ T195] Call Trace: [ 9.253733][ T195] [ 9.253735][ T195] dump_stack_lvl+0x6f/0xa0 [ 9.253742][ T195] __might_resched.cold+0x1fe/0x2c1 [ 9.253746][ T195] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 9.253750][ T195] ? __kmalloc_noprof+0xdb/0x760 [ 9.253754][ T195] __kmalloc_noprof+0x443/0x760 [ 9.253756][ T195] ? alloc_buf.isra.0+0x4b/0x260 [ 9.253763][ T195] ? do_raw_spin_unlock+0x59/0x250 [ 9.253765][ T195] alloc_buf.isra.0+0x4b/0x260 [ 9.253768][ T195] put_chars+0x1e1/0x2f0 [ 9.253771][ T195] ? __send_to_port+0x420/0x420 [ 9.253772][ T195] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 9.253775][ T195] ? validate_chain+0x38b/0xc20 [ 9.253780][ T195] hvc_console_print+0x292/0x780 [ 9.253787][ T195] ? hvc_write+0x3a0/0x3a0 [ 9.253790][ T195] ? rcu_is_watching+0x16/0xd0 [ 9.253792][ T195] ? lock_acquire+0x13c/0x160 [ 9.253796][ T195] console_emit_next_record+0x22f/0x4c0 [ 9.253800][ T195] ? devkmsg_read+0x4b0/0x4b0 [ 9.253801][ T195] ? console_flush_one_record+0x106/0x710 [ 9.253804][ T195] ? rcu_is_watching+0x16/0xd0 [ 9.253806][ T195] ? lock_acquire+0x13c/0x160 [ 9.253810][ T195] console_flush_one_record+0x46f/0x710 [ 9.253814][ T195] ? console_emit_next_record+0x4c0/0x4c0 [ 9.253816][ T195] ? __lock_acquire+0x518/0xc20 [ 9.253821][ T195] console_unlock+0xee/0x1f0 [ 9.253824][ T195] ? console_flush_one_record+0x710/0x710 [ 9.253825][ T195] ? rcu_is_watching+0x16/0xd0 [ 9.253827][ T195] ? lock_acquire+0xe0/0x160 [ 9.253831][ T195] ? __down_trylock_console_sem+0x5e/0xa0 [ 9.253832][ T195] ? vprintk_emit+0x320/0x3e0 [ 9.253835][ T195] vprintk_emit+0x37c/0x3e0 [ 9.253838][ T195] ? wake_up_klogd_work_func+0x90/0x90 [ 9.253841][ T195] ? __lock_acquire+0x518/0xc20 [ 9.253844][ T195] _printk+0xc7/0x100 [ 9.253848][ T195] ? snapshot_read.cold+0x21/0x21 [ 9.253851][ T195] ? do_raw_spin_lock+0x131/0x280 [ 9.253853][ T195] ? __rwlock_init+0x150/0x150 [ 9.253857][ T195] ? do_raw_spin_lock+0x131/0x280 [ 9.253860][ T195] do_exit.cold+0x82/0x9c [ 9.253863][ T195] ? exit_notify+0x890/0x890 [ 9.253865][ T195] ? __lock_release.isra.0+0x69/0x1a0 [ 9.253867][ T195] ? rcu_is_watching+0x16/0xd0 [ 9.253871][ T195] do_group_exit+0xb8/0x370 [ 9.253873][ T195] __x64_sys_exit_group+0x3c/0x50 [ 9.253875][ T195] x64_sys_call+0x1567/0x1570 [ 9.253877][ T195] do_syscall_64+0xff/0x530 [ 9.253881][ T195] ? exc_page_fault+0xee/0x100 [ 9.253884][ T195] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 9.253886][ T195] RIP: 0033:0x7f98337391b8 [ 9.253893][ T195] Code: Unable to access opcode bytes at 0x7f983373918e. [ 9.253894][ T195] RSP: 002b:00007ffdab1463c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 9.253896][ T195] RAX: ffffffffffffffda RBX: 00007f9833869f88 RCX: 00007f98337391b8 [ 9.253898][ T195] RDX: 00007f9833483fc8 RSI: fffffffffffffeb8 RDI: 0000000000000000 [ 9.253898][ T195] RBP: 00007ffdab146420 R08: 0000000000000000 R09: 0000000000000050 [ 9.253899][ T195] R10: 00007ffdab1461e0 R11: 0000000000000246 R12: 0000000000000001 [ 9.253900][ T195] R13: 0000000000000000 R14: 00007f9833868680 R15: 00007f9833869fa0 [ 9.253907][ T195] [ 15.277518][ C0] IPv4: Oversized IP packet from 172.17.0.2 [ 15.277549][ C0] [ 15.277551][ C0] ======================================================== [ 15.277552][ C0] WARNING: possible irq lock inversion dependency detected [ 15.277553][ C0] 7.2.0-virtme #1 Tainted: G W [ 15.277555][ C0] -------------------------------------------------------- [ 15.277555][ C0] psock_snd/376 just changed the state of lock: [ 15.277556][ C0] ffffffffb2c9d760 (console_owner){..-.}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 15.277568][ C0] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 15.277569][ C0] (fs_reclaim){+.+.}-{0:0} [ 15.277571][ C0] [ 15.277571][ C0] [ 15.277571][ C0] and interrupts could create inverse lock ordering between them. [ 15.277571][ C0] [ 15.277571][ C0] [ 15.277571][ C0] other info that might help us debug this: [ 15.277572][ C0] Possible interrupt unsafe locking scenario: [ 15.277572][ C0] [ 15.277572][ C0] CPU0 CPU1 [ 15.277573][ C0] ---- ---- [ 15.277573][ C0] lock(fs_reclaim); [ 15.277574][ C0] local_irq_disable(); [ 15.277575][ C0] lock(console_owner); [ 15.277576][ C0] lock(fs_reclaim); [ 15.277576][ C0] [ 15.277577][ C0] lock(console_owner); [ 15.277578][ C0] [ 15.277578][ C0] *** DEADLOCK *** [ 15.277578][ C0] [ 15.277578][ C0] locks held by psock_snd/376: 5, last CPU#0: [ 15.277579][ C0] #0: ffffffffb2d94c00 (rcu_read_lock){....}-{1:3}, at: process_backlog+0x3f1/0x14c0 [ 15.277586][ C0] #1: ffffffffb2d94c00 (rcu_read_lock){....}-{1:3}, at: ip_defrag+0xcd/0x7a0 [ 15.277590][ C0] #2: ff11000009ade3e8 (&q->lock){+.-.}-{3:3}, at: ip_defrag+0x2c4/0x7a0 [ 15.277592][ C0] #3: ffffffffb2d7ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 15.277595][ C0] #4: ffffffffb2d7de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 15.277598][ C0] [ 15.277598][ C0] the shortest dependencies between 2nd lock and 1st lock: [ 15.277602][ C0] -> (fs_reclaim){+.+.}-{0:0} { [ 15.277604][ C0] HARDIRQ-ON-W at: [ 15.277606][ C0] __lock_acquire+0x388/0xc20 [ 15.277609][ C0] lock_acquire.part.0+0xd4/0x280 [ 15.277610][ C0] fs_reclaim_acquire+0xd5/0x120 [ 15.277614][ C0] __kmalloc_cache_noprof+0x6e/0x620 [ 15.277616][ C0] kthread_create_worker_on_node+0xea/0x210 [ 15.277619][ C0] workqueue_init+0x2a/0x680 [ 15.277622][ C0] kernel_init_freeable+0x2fe/0x630 [ 15.277625][ C0] kernel_init+0x21/0x150 [ 15.277628][ C0] ret_from_fork+0x474/0x6b0 [ 15.277632][ C0] ret_from_fork_asm+0x11/0x20 [ 15.277635][ C0] SOFTIRQ-ON-W at: [ 15.277635][ C0] __lock_acquire+0x388/0xc20 [ 15.277637][ C0] lock_acquire.part.0+0xd4/0x280 [ 15.277638][ C0] fs_reclaim_acquire+0xd5/0x120 [ 15.277640][ C0] __kmalloc_cache_noprof+0x6e/0x620 [ 15.277641][ C0] kthread_create_worker_on_node+0xea/0x210 [ 15.277642][ C0] workqueue_init+0x2a/0x680 [ 15.277644][ C0] kernel_init_freeable+0x2fe/0x630 [ 15.277645][ C0] kernel_init+0x21/0x150 [ 15.277646][ C0] ret_from_fork+0x474/0x6b0 [ 15.277647][ C0] ret_from_fork_asm+0x11/0x20 [ 15.277649][ C0] INITIAL USE at: [ 15.277650][ C0] __lock_acquire+0x388/0xc20 [ 15.277651][ C0] lock_acquire.part.0+0xd4/0x280 [ 15.277652][ C0] fs_reclaim_acquire+0xd5/0x120 [ 15.277654][ C0] __kmalloc_cache_noprof+0x6e/0x620 [ 15.277655][ C0] kthread_create_worker_on_node+0xea/0x210 [ 15.277656][ C0] workqueue_init+0x2a/0x680 [ 15.277658][ C0] kernel_init_freeable+0x2fe/0x630 [ 15.277659][ C0] kernel_init+0x21/0x150 [ 15.277660][ C0] ret_from_fork+0x474/0x6b0 [ 15.277661][ C0] ret_from_fork_asm+0x11/0x20 [ 15.277663][ C0] } [ 15.277663][ C0] ... key at: [] __fs_reclaim_map+0x0/0xbe0 [ 15.277667][ C0] ... acquired at: [ 15.277668][ C0] __lock_acquire+0x518/0xc20 [ 15.277669][ C0] lock_acquire.part.0+0xd4/0x280 [ 15.277670][ C0] fs_reclaim_acquire+0xd5/0x120 [ 15.277672][ C0] __kmalloc_noprof+0xd3/0x760 [ 15.277673][ C0] alloc_buf.isra.0+0x4b/0x260 [ 15.277676][ C0] put_chars+0x1e1/0x2f0 [ 15.277677][ C0] hvc_console_print+0x292/0x780 [ 15.277680][ C0] console_emit_next_record+0x22f/0x4c0 [ 15.277682][ C0] console_flush_one_record+0x46f/0x710 [ 15.277684][ C0] console_unlock+0xee/0x1f0 [ 15.277685][ C0] vprintk_emit+0x37c/0x3e0 [ 15.277686][ C0] _printk+0xc7/0x100 [ 15.277689][ C0] tun_init+0x24/0xb0 [ 15.277691][ C0] do_one_initcall+0x124/0x4f0 [ 15.277693][ C0] kernel_init_freeable+0x596/0x630 [ 15.277694][ C0] kernel_init+0x21/0x150 [ 15.277695][ C0] ret_from_fork+0x474/0x6b0 [ 15.277696][ C0] ret_from_fork_asm+0x11/0x20 [ 15.277698][ C0] [ 15.277698][ C0] -> (console_owner){..-.}-{0:0} { [ 15.277700][ C0] IN-SOFTIRQ-W at: [ 15.277700][ C0] __lock_acquire+0x388/0xc20 [ 15.277702][ C0] lock_acquire.part.0+0xd4/0x280 [ 15.277703][ C0] console_lock_spinning_enable+0x5c/0x60 [ 15.277705][ C0] console_emit_next_record+0x1d1/0x4c0 [ 15.277706][ C0] console_flush_one_record+0x46f/0x710 [ 15.277708][ C0] console_unlock+0xee/0x1f0 [ 15.277709][ C0] vprintk_emit+0x37c/0x3e0 [ 15.277710][ C0] _printk+0xc7/0x100 [ 15.277711][ C0] ip_frag_reasm.constprop.0.cold+0x10/0x15 [ 15.277713][ C0] ip_frag_queue+0xeb5/0x1830 [ 15.277714][ C0] ip_defrag+0x2d4/0x7a0 [ 15.277715][ C0] ip_local_deliver+0x171/0x4c0 [ 15.277716][ C0] ip_rcv+0xdc/0x3d0 [ 15.277717][ C0] __netif_receive_skb_core.constprop.0+0x13b5/0x2bb0 [ 15.277719][ C0] __netif_receive_skb_one_core+0xa2/0x180 [ 15.277721][ C0] process_backlog+0x431/0x14c0 [ 15.277722][ C0] __napi_poll+0xa7/0x3b0 [ 15.277723][ C0] net_rx_action+0x513/0xf50 [ 15.277725][ C0] handle_softirqs+0x1d3/0x900 [ 15.277727][ C0] do_softirq+0xac/0xe0 [ 15.277729][ C0] __local_bh_enable_ip+0x118/0x150 [ 15.277730][ C0] __dev_queue_xmit+0x989/0x1b90 [ 15.277731][ C0] packet_snd+0xee8/0x1840 [ 15.277734][ C0] __sock_sendmsg+0xce/0x190 [ 15.277736][ C0] __sys_sendto+0x260/0x320 [ 15.277738][ C0] __x64_sys_sendto+0xe4/0x1f0 [ 15.277739][ C0] do_syscall_64+0xff/0x530 [ 15.277742][ C0] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 15.277744][ C0] INITIAL USE at: [ 15.277744][ C0] } [ 15.277745][ C0] ... key at: [] console_owner_dep_map+0x0/0x60 [ 15.277747][ C0] ... acquired at: [ 15.277748][ C0] mark_lock+0x1d7/0xa00 [ 15.277749][ C0] mark_usage+0x42/0x170 [ 15.277750][ C0] __lock_acquire+0x388/0xc20 [ 15.277752][ C0] lock_acquire.part.0+0xd4/0x280 [ 15.277753][ C0] console_lock_spinning_enable+0x5c/0x60 [ 15.277755][ C0] console_emit_next_record+0x1d1/0x4c0 [ 15.277756][ C0] console_flush_one_record+0x46f/0x710 [ 15.277758][ C0] console_unlock+0xee/0x1f0 [ 15.277759][ C0] vprintk_emit+0x37c/0x3e0 [ 15.277760][ C0] _printk+0xc7/0x100 [ 15.277761][ C0] ip_frag_reasm.constprop.0.cold+0x10/0x15 [ 15.277762][ C0] ip_frag_queue+0xeb5/0x1830 [ 15.277763][ C0] ip_defrag+0x2d4/0x7a0 [ 15.277764][ C0] ip_local_deliver+0x171/0x4c0 [ 15.277765][ C0] ip_rcv+0xdc/0x3d0 [ 15.277765][ C0] __netif_receive_skb_core.constprop.0+0x13b5/0x2bb0 [ 15.277767][ C0] __netif_receive_skb_one_core+0xa2/0x180 [ 15.277769][ C0] process_backlog+0x431/0x14c0 [ 15.277770][ C0] __napi_poll+0xa7/0x3b0 [ 15.277771][ C0] net_rx_action+0x513/0xf50 [ 15.277773][ C0] handle_softirqs+0x1d3/0x900 [ 15.277774][ C0] do_softirq+0xac/0xe0 [ 15.277775][ C0] __local_bh_enable_ip+0x118/0x150 [ 15.277776][ C0] __dev_queue_xmit+0x989/0x1b90 [ 15.277778][ C0] packet_snd+0xee8/0x1840 [ 15.277779][ C0] __sock_sendmsg+0xce/0x190 [ 15.277780][ C0] __sys_sendto+0x260/0x320 [ 15.277782][ C0] __x64_sys_sendto+0xe4/0x1f0 [ 15.277783][ C0] do_syscall_64+0xff/0x530 [ 15.277784][ C0] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 15.277785][ C0] [ 15.277786][ C0] [ 15.277786][ C0] stack backtrace: [ 15.277788][ C0] CPU: 0 UID: 0 PID: 376 Comm: psock_snd Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 15.277791][ C0] Tainted: [W]=WARN [ 15.277792][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.277794][ C0] Call Trace: [ 15.277795][ C0] [ 15.277796][ C0] dump_stack_lvl+0x6f/0xa0 [ 15.277800][ C0] print_irq_inversion_bug.part.0.cold+0xe6/0x143 [ 15.277802][ C0] mark_lock_irq+0x989/0x9c0 [ 15.277805][ C0] mark_lock+0x1d7/0xa00 [ 15.277807][ C0] mark_usage+0x42/0x170 [ 15.277808][ C0] __lock_acquire+0x388/0xc20 [ 15.277811][ C0] lock_acquire.part.0+0xd4/0x280 [ 15.277812][ C0] ? console_lock_spinning_enable+0x40/0x60 [ 15.277815][ C0] ? rcu_is_watching+0x16/0xd0 [ 15.277817][ C0] ? lock_acquire+0x13c/0x160 [ 15.277819][ C0] console_lock_spinning_enable+0x5c/0x60 [ 15.277820][ C0] ? console_lock_spinning_enable+0x40/0x60 [ 15.277822][ C0] console_emit_next_record+0x1d1/0x4c0 [ 15.277824][ C0] ? devkmsg_read+0x4b0/0x4b0 [ 15.277826][ C0] ? console_flush_one_record+0x106/0x710 [ 15.277828][ C0] ? rcu_is_watching+0x16/0xd0 [ 15.277829][ C0] ? lock_acquire+0x13c/0x160 [ 15.277831][ C0] console_flush_one_record+0x46f/0x710 [ 15.277833][ C0] ? console_emit_next_record+0x4c0/0x4c0 [ 15.277835][ C0] ? __lock_acquire+0x518/0xc20 [ 15.277837][ C0] console_unlock+0xee/0x1f0 [ 15.277839][ C0] ? console_flush_one_record+0x710/0x710 [ 15.277840][ C0] ? rcu_is_watching+0x16/0xd0 [ 15.277842][ C0] ? lock_acquire+0xe0/0x160 [ 15.277843][ C0] ? __down_trylock_console_sem+0x5e/0xa0 [ 15.277845][ C0] ? vprintk_emit+0x320/0x3e0 [ 15.277847][ C0] vprintk_emit+0x37c/0x3e0 [ 15.277848][ C0] ? wake_up_klogd_work_func+0x90/0x90 [ 15.277849][ C0] ? __lock_release.isra.0+0x69/0x1a0 [ 15.277852][ C0] _printk+0xc7/0x100 [ 15.277853][ C0] ? snapshot_read.cold+0x21/0x21 [ 15.277855][ C0] ? ___ratelimit+0x4e7/0xa00 [ 15.277858][ C0] ? idr_get_free+0x830/0x830 [ 15.277860][ C0] ip_frag_reasm.constprop.0.cold+0x10/0x15 [ 15.277862][ C0] ip_frag_queue+0xeb5/0x1830 [ 15.277864][ C0] ip_defrag+0x2d4/0x7a0 [ 15.277866][ C0] ? ip4_obj_hashfn+0x280/0x280 [ 15.277867][ C0] ? ip_route_input_noref+0x137/0x250 [ 15.277869][ C0] ? ip_route_input_slow+0x2420/0x2420 [ 15.277871][ C0] ? _raw_spin_unlock_irqrestore+0x40/0x80 [ 15.277873][ C0] ? rcu_is_watching+0x16/0xd0 [ 15.277875][ C0] ip_local_deliver+0x171/0x4c0 [ 15.277876][ C0] ? ip_local_deliver_finish+0x610/0x610 [ 15.277877][ C0] ? ip_rcv_finish_core+0x6ed/0x14c0 [ 15.277879][ C0] ? __asan_memset+0x27/0x50 [ 15.277882][ C0] ip_rcv+0xdc/0x3d0 [ 15.277884][ C0] ? rcu_read_lock_any_held+0x3c/0x90 [ 15.277886][ C0] ? ip_local_deliver+0x4c0/0x4c0 [ 15.277887][ C0] ? trace_pelt_cfs_tp+0x9b/0x190 [ 15.277890][ C0] ? __lock_acquire+0x518/0xc20 [ 15.277892][ C0] __netif_receive_skb_core.constprop.0+0x13b5/0x2bb0 [ 15.277894][ C0] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 15.277896][ C0] ? rcu_read_lock_any_held+0x3c/0x90 [ 15.277897][ C0] ? validate_chain+0x38b/0xc20 [ 15.277899][ C0] ? mark_usage+0x61/0x170 [ 15.277901][ C0] ? __lock_acquire+0x518/0xc20 [ 15.277903][ C0] ? do_xdp_generic+0x4a0/0x4a0 [ 15.277905][ C0] ? lock_acquire.part.0+0xd4/0x280 [ 15.277906][ C0] ? find_held_lock+0x2b/0x80 [ 15.277908][ C0] ? __lock_release.isra.0+0x69/0x1a0 [ 15.277909][ C0] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 15.277911][ C0] ? rcu_read_lock_any_held+0x3c/0x90 [ 15.277912][ C0] ? validate_chain+0x38b/0xc20 [ 15.277914][ C0] ? sock_def_readable+0x156/0x480 [ 15.277915][ C0] ? mark_usage+0x61/0x170 [ 15.277917][ C0] ? __lock_acquire+0x518/0xc20 [ 15.277924][ C0] ? process_backlog+0x3f1/0x14c0 [ 15.277926][ C0] __netif_receive_skb_one_core+0xa2/0x180 [ 15.277927][ C0] ? lock_acquire.part.0+0xd4/0x280 [ 15.277929][ C0] ? process_backlog+0x3f1/0x14c0 [ 15.277931][ C0] ? __netif_receive_skb_list_core+0x9e0/0x9e0 [ 15.277933][ C0] ? rcu_is_watching+0x16/0xd0 [ 15.277934][ C0] process_backlog+0x431/0x14c0 [ 15.277940][ C0] __napi_poll+0xa7/0x3b0 [ 15.277942][ C0] net_rx_action+0x513/0xf50 [ 15.277944][ C0] ? __lock_acquire+0x518/0xc20 [ 15.277946][ C0] ? __napi_poll+0x3b0/0x3b0 [ 15.277949][ C0] ? ktime_get_update_offsets_now+0x2a8/0x490 [ 15.277953][ C0] ? rcu_is_watching+0x16/0xd0 [ 15.277954][ C0] handle_softirqs+0x1d3/0x900 [ 15.277956][ C0] ? _local_bh_enable+0xc0/0xc0 [ 15.277957][ C0] ? do_raw_spin_unlock+0x59/0x250 [ 15.277960][ C0] ? rcu_is_watching+0x16/0xd0 [ 15.277961][ C0] ? __dev_queue_xmit+0x974/0x1b90 [ 15.277962][ C0] do_softirq+0xac/0xe0 [ 15.277964][ C0] [ 15.277964][ C0] [ 15.277965][ C0] __local_bh_enable_ip+0x118/0x150 [ 15.277967][ C0] __dev_queue_xmit+0x989/0x1b90 [ 15.277968][ C0] ? _copy_from_iter+0x1bb/0x1810 [ 15.277971][ C0] ? _copy_from_iter_flushcache+0x1970/0x1970 [ 15.277973][ C0] ? _copy_from_iter_flushcache+0x1970/0x1970 [ 15.277975][ C0] ? __might_fault+0x97/0x140 [ 15.277977][ C0] ? netdev_core_pick_tx+0x2c0/0x2c0 [ 15.277979][ C0] ? __virtio_net_hdr_to_skb.constprop.0+0x327/0x1440 [ 15.277981][ C0] ? alloc_pg_vec.isra.0+0x540/0x540 [ 15.277982][ C0] ? packet_rcv_spkt+0x5a0/0x5a0 [ 15.277984][ C0] packet_snd+0xee8/0x1840 [ 15.277986][ C0] ? kasan_addr_to_slab+0x41/0x50 [ 15.277989][ C0] ? tpacket_snd+0x1990/0x1990 [ 15.277990][ C0] ? lock_acquire.part.0+0xd4/0x280 [ 15.277992][ C0] ? __might_fault+0x97/0x140 [ 15.277993][ C0] ? find_held_lock+0x2b/0x80 [ 15.277994][ C0] ? __lock_release.isra.0+0x69/0x1a0 [ 15.277996][ C0] __sock_sendmsg+0xce/0x190 [ 15.277998][ C0] ? fdget+0x4f/0x1e0 [ 15.278001][ C0] __sys_sendto+0x260/0x320 [ 15.278003][ C0] ? __ia32_sys_getpeername+0xd0/0xd0 [ 15.278006][ C0] ? fput_close_sync+0xde/0x1b0 [ 15.278009][ C0] ? alloc_file_clone+0xe0/0xe0 [ 15.278011][ C0] __x64_sys_sendto+0xe4/0x1f0 [ 15.278013][ C0] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 15.278015][ C0] ? lockdep_hardirqs_on+0x91/0x130 [ 15.278017][ C0] ? do_syscall_64+0xa6/0x530 [ 15.278019][ C0] do_syscall_64+0xff/0x530 [ 15.278020][ C0] ? exc_page_fault+0xee/0x100 [ 15.278022][ C0] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 15.278023][ C0] RIP: 0033:0x7f5ba60ee54e [ 15.278026][ 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 [ 15.278028][ C0] RSP: 002b:00007ffcfe2d1750 EFLAGS: 00000202 ORIG_RAX: 000000000000002c [ 15.278030][ C0] RAX: ffffffffffffffda RBX: 0000000000010018 RCX: 00007f5ba60ee54e [ 15.278032][ C0] RDX: 0000000000010018 RSI: 0000000000415120 RDI: 0000000000000007 [ 15.278032][ C0] RBP: 00007ffcfe2d1760 R08: 00007ffcfe2d17c0 R09: 0000000000000014 [ 15.278034][ C0] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000007 [ 15.278034][ C0] R13: 0000000000000006 R14: 00007f5ba62bf000 R15: 0000000000404e00 [ 15.278037][ C0] [ 15.278040][ C0] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 15.278041][ C0] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 376, name: psock_snd [ 15.278043][ C0] preempt_count: 103, expected: 0 [ 15.278043][ C0] RCU nest depth: 2, expected: 0 [ 15.278044][ C0] INFO: lockdep is turned off. [ 15.278044][ C0] irq event stamp: 30155 [ 15.278045][ C0] hardirqs last enabled at (30154): [] __down_trylock_console_sem+0x86/0xa0 [ 15.278047][ C0] hardirqs last disabled at (30155): [] console_emit_next_record+0x3d4/0x4c0 [ 15.278049][ C0] softirqs last enabled at (29790): [] __dev_queue_xmit+0x974/0x1b90 [ 15.278051][ C0] softirqs last disabled at (29791): [] do_softirq+0xac/0xe0 [ 15.278053][ C0] Preemption disabled at: [ 15.278053][ C0] [] __dev_queue_xmit+0x20c/0x1b90 [ 15.278056][ C0] CPU: 0 UID: 0 PID: 376 Comm: psock_snd Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 15.278058][ C0] Tainted: [W]=WARN [ 15.278058][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.278059][ C0] Call Trace: [ 15.278059][ C0] [ 15.278060][ C0] dump_stack_lvl+0x6f/0xa0 [ 15.278062][ C0] ? __dev_queue_xmit+0x20c/0x1b90 [ 15.278064][ C0] __might_resched.cold+0x1fe/0x2c1 [ 15.278066][ C0] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 15.278069][ C0] ? rcu_is_watching+0x16/0xd0 [ 15.278071][ C0] __kmalloc_noprof+0x443/0x760 [ 15.278072][ C0] ? __rwlock_init+0x150/0x150 [ 15.278073][ C0] ? alloc_buf.isra.0+0x4b/0x260 [ 15.278076][ C0] ? do_raw_spin_unlock+0x59/0x250 [ 15.278078][ C0] alloc_buf.isra.0+0x4b/0x260 [ 15.278080][ C0] put_chars+0x1e1/0x2f0 [ 15.278081][ C0] ? __send_to_port+0x420/0x420 [ 15.278083][ C0] hvc_console_print+0x292/0x780 [ 15.278086][ C0] ? __lock_acquire+0x388/0xc20 [ 15.278088][ C0] ? hvc_write+0x3a0/0x3a0 [ 15.278090][ C0] ? rcu_is_watching+0x16/0xd0 [ 15.278091][ C0] ? lock_acquire+0x13c/0x160 [ 15.278093][ C0] console_emit_next_record+0x22f/0x4c0 [ 15.278095][ C0] ? devkmsg_read+0x4b0/0x4b0 [ 15.278097][ C0] ? console_flush_one_record+0x106/0x710 [ 15.278099][ C0] ? rcu_is_watching+0x16/0xd0 [ 15.278100][ C0] ? lock_acquire+0x13c/0x160 [ 15.278102][ C0] console_flush_one_record+0x46f/0x710 [ 15.278104][ C0] ? console_emit_next_record+0x4c0/0x4c0 [ 15.278106][ C0] ? __lock_acquire+0x518/0xc20 [ 15.278108][ C0] console_unlock+0xee/0x1f0 [ 15.278110][ C0] ? console_flush_one_record+0x710/0x710 [ 15.278111][ C0] ? rcu_is_watching+0x16/0xd0 [ 15.278113][ C0] ? lock_acquire+0xe0/0x160 [ 15.278114][ C0] ? __down_trylock_console_sem+0x5e/0xa0 [ 15.278116][ C0] ? vprintk_emit+0x320/0x3e0 [ 15.278117][ C0] vprintk_emit+0x37c/0x3e0 [ 15.278119][ C0] ? wake_up_klogd_work_func+0x90/0x90 [ 15.278120][ C0] ? __lock_release.isra.0+0x69/0x1a0 [ 15.278122][ C0] _printk+0xc7/0x100 [ 15.278124][ C0] ? snapshot_read.cold+0x21/0x21 [ 15.278125][ C0] ? ___ratelimit+0x4e7/0xa00 [ 15.278127][ C0] ? idr_get_free+0x830/0x830 [ 15.278129][ C0] ip_frag_reasm.constprop.0.cold+0x10/0x15 [ 15.278131][ C0] ip_frag_queue+0xeb5/0x1830 [ 15.278133][ C0] ip_defrag+0x2d4/0x7a0 [ 15.278134][ C0] ? ip4_obj_hashfn+0x280/0x280 [ 15.278136][ C0] ? ip_route_input_noref+0x137/0x250 [ 15.278138][ C0] ? ip_route_input_slow+0x2420/0x2420 [ 15.278139][ C0] ? _raw_spin_unlock_irqrestore+0x40/0x80 [ 15.278141][ C0] ? rcu_is_watching+0x16/0xd0 [ 15.278142][ C0] ip_local_deliver+0x171/0x4c0 [ 15.278143][ C0] ? ip_local_deliver_finish+0x610/0x610 [ 15.278145][ C0] ? ip_rcv_finish_core+0x6ed/0x14c0 [ 15.278146][ C0] ? __asan_memset+0x27/0x50 [ 15.278148][ C0] ip_rcv+0xdc/0x3d0 [ 15.278149][ C0] ? rcu_read_lock_any_held+0x3c/0x90 [ 15.278151][ C0] ? ip_local_deliver+0x4c0/0x4c0 [ 15.278152][ C0] ? trace_pelt_cfs_tp+0x9b/0x190 [ 15.278154][ C0] ? __lock_acquire+0x518/0xc20 [ 15.278156][ C0] __netif_receive_skb_core.constprop.0+0x13b5/0x2bb0 [ 15.278158][ C0] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 15.278159][ C0] ? rcu_read_lock_any_held+0x3c/0x90 [ 15.278161][ C0] ? validate_chain+0x38b/0xc20 [ 15.278162][ C0] ? mark_usage+0x61/0x170 [ 15.278164][ C0] ? __lock_acquire+0x518/0xc20 [ 15.278166][ C0] ? do_xdp_generic+0x4a0/0x4a0 [ 15.278167][ C0] ? lock_acquire.part.0+0xd4/0x280 [ 15.278169][ C0] ? find_held_lock+0x2b/0x80 [ 15.278170][ C0] ? __lock_release.isra.0+0x69/0x1a0 [ 15.278172][ C0] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 15.278173][ C0] ? rcu_read_lock_any_held+0x3c/0x90 [ 15.278175][ C0] ? validate_chain+0x38b/0xc20 [ 15.278176][ C0] ? sock_def_readable+0x156/0x480 [ 15.278178][ C0] ? mark_usage+0x61/0x170 [ 15.278179][ C0] ? __lock_acquire+0x518/0xc20 [ 15.278181][ C0] ? process_backlog+0x3f1/0x14c0 [ 15.278183][ C0] __netif_receive_skb_one_core+0xa2/0x180 [ 15.278184][ C0] ? lock_acquire.part.0+0xd4/0x280 [ 15.278186][ C0] ? process_backlog+0x3f1/0x14c0 [ 15.278188][ C0] ? __netif_receive_skb_list_core+0x9e0/0x9e0 [ 15.278189][ C0] ? rcu_is_watching+0x16/0xd0 [ 15.278191][ C0] process_backlog+0x431/0x14c0 [ 15.278193][ C0] __napi_poll+0xa7/0x3b0 [ 15.278195][ C0] net_rx_action+0x513/0xf50 [ 15.278198][ C0] ? __lock_acquire+0x518/0xc20 [ 15.278199][ C0] ? __napi_poll+0x3b0/0x3b0 [ 15.278203][ C0] ? ktime_get_update_offsets_now+0x2a8/0x490 [ 15.278204][ C0] ? rcu_is_watching+0x16/0xd0 [ 15.278206][ C0] handle_softirqs+0x1d3/0x900 [ 15.278208][ C0] ? _local_bh_enable+0xc0/0xc0 [ 15.278209][ C0] ? do_raw_spin_unlock+0x59/0x250 [ 15.278211][ C0] ? rcu_is_watching+0x16/0xd0 [ 15.278212][ C0] ? __dev_queue_xmit+0x974/0x1b90 [ 15.278214][ C0] do_softirq+0xac/0xe0 [ 15.278215][ C0] [ 15.278216][ C0] [ 15.278216][ C0] __local_bh_enable_ip+0x118/0x150 [ 15.278218][ C0] __dev_queue_xmit+0x989/0x1b90 [ 15.278219][ C0] ? _copy_from_iter+0x1bb/0x1810 [ 15.278221][ C0] ? _copy_from_iter_flushcache+0x1970/0x1970 [ 15.278223][ C0] ? _copy_from_iter_flushcache+0x1970/0x1970 [ 15.278224][ C0] ? __might_fault+0x97/0x140 [ 15.278225][ C0] ? netdev_core_pick_tx+0x2c0/0x2c0 [ 15.278227][ C0] ? __virtio_net_hdr_to_skb.constprop.0+0x327/0x1440 [ 15.278229][ C0] ? alloc_pg_vec.isra.0+0x540/0x540 [ 15.278230][ C0] ? packet_rcv_spkt+0x5a0/0x5a0 [ 15.278232][ C0] packet_snd+0xee8/0x1840 [ 15.278234][ C0] ? kasan_addr_to_slab+0x41/0x50 [ 15.278236][ C0] ? tpacket_snd+0x1990/0x1990 [ 15.278237][ C0] ? lock_acquire.part.0+0xd4/0x280 [ 15.278239][ C0] ? __might_fault+0x97/0x140 [ 15.278240][ C0] ? find_held_lock+0x2b/0x80 [ 15.278241][ C0] ? __lock_release.isra.0+0x69/0x1a0 [ 15.278243][ C0] __sock_sendmsg+0xce/0x190 [ 15.278245][ C0] ? fdget+0x4f/0x1e0 [ 15.278246][ C0] __sys_sendto+0x260/0x320 [ 15.278248][ C0] ? __ia32_sys_getpeername+0xd0/0xd0 [ 15.278252][ C0] ? fput_close_sync+0xde/0x1b0 [ 15.278253][ C0] ? alloc_file_clone+0xe0/0xe0 [ 15.278255][ C0] __x64_sys_sendto+0xe4/0x1f0 [ 15.278257][ C0] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 15.278258][ C0] ? lockdep_hardirqs_on+0x91/0x130 [ 15.278260][ C0] ? do_syscall_64+0xa6/0x530 [ 15.278261][ C0] do_syscall_64+0xff/0x530 [ 15.278263][ C0] ? exc_page_fault+0xee/0x100 [ 15.278264][ C0] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 15.278265][ C0] RIP: 0033:0x7f5ba60ee54e [ 15.278267][ 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 [ 15.278267][ C0] RSP: 002b:00007ffcfe2d1750 EFLAGS: 00000202 ORIG_RAX: 000000000000002c [ 15.278269][ C0] RAX: ffffffffffffffda RBX: 0000000000010018 RCX: 00007f5ba60ee54e [ 15.278269][ C0] RDX: 0000000000010018 RSI: 0000000000415120 RDI: 0000000000000007 [ 15.278270][ C0] RBP: 00007ffcfe2d1760 R08: 00007ffcfe2d17c0 R09: 0000000000000014 [ 15.278271][ C0] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000007 [ 15.278271][ C0] R13: 0000000000000006 R14: 00007f5ba62bf000 R15: 0000000000404e00 [ 15.278273][ C0]