[ 11.283740][ T205] ip (205) used greatest stack depth: 23888 bytes left [ 11.283760][ T205] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 11.283762][ T205] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 205, name: ip [ 11.283763][ T205] preempt_count: 2, expected: 0 [ 11.283764][ T205] RCU nest depth: 0, expected: 0 [ 11.283765][ T205] locks held by ip/205: 5, last CPU#2: [ 11.283767][ T205] #0: ffffffff880167b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 11.283779][ T205] #1: ffffffff8817ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 11.283784][ T205] #2: ffffffff8817de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 11.283788][ T205] #3: ffffffff8809d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 11.283792][ T205] #4: ffffffff8809d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 11.283796][ T205] irq event stamp: 27674 [ 11.283797][ T205] hardirqs last enabled at (27673): [] __down_trylock_console_sem+0x86/0xa0 [ 11.283801][ T205] hardirqs last disabled at (27674): [] console_emit_next_record+0x3d4/0x4c0 [ 11.283803][ T205] softirqs last enabled at (26268): [] handle_softirqs+0x67c/0x900 [ 11.283805][ T205] softirqs last disabled at (26259): [] __irq_exit_rcu+0x145/0x1c0 [ 11.283808][ T205] Preemption disabled at: [ 11.283808][ T205] [<0000000000000000>] 0x0 [ 11.283815][ T205] CPU: 2 UID: 0 PID: 205 Comm: ip Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 11.283819][ T205] Tainted: [W]=WARN [ 11.283820][ T205] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 11.283822][ T205] Call Trace: [ 11.283823][ T205] [ 11.283824][ T205] dump_stack_lvl+0x6f/0xa0 [ 11.283831][ T205] __might_resched.cold+0x1fe/0x2c1 [ 11.283836][ T205] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 11.283840][ T205] ? __kmalloc_noprof+0xdb/0x760 [ 11.283844][ T205] __kmalloc_noprof+0x443/0x760 [ 11.283846][ T205] ? alloc_buf.isra.0+0x4b/0x260 [ 11.283853][ T205] ? do_raw_spin_unlock+0x59/0x250 [ 11.283856][ T205] alloc_buf.isra.0+0x4b/0x260 [ 11.283860][ T205] put_chars+0x1e1/0x2f0 [ 11.283863][ T205] ? __send_to_port+0x420/0x420 [ 11.283864][ T205] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 11.283867][ T205] ? validate_chain+0x38b/0xc20 [ 11.283873][ T205] hvc_console_print+0x292/0x780 [ 11.283881][ T205] ? hvc_write+0x3a0/0x3a0 [ 11.283883][ T205] ? rcu_is_watching+0x16/0xd0 [ 11.283885][ T205] ? lock_acquire+0x13c/0x160 [ 11.283889][ T205] console_emit_next_record+0x22f/0x4c0 [ 11.283893][ T205] ? devkmsg_read+0x4b0/0x4b0 [ 11.283895][ T205] ? console_flush_one_record+0x106/0x710 [ 11.283899][ T205] ? rcu_is_watching+0x16/0xd0 [ 11.283900][ T205] ? lock_acquire+0x13c/0x160 [ 11.283904][ T205] console_flush_one_record+0x46f/0x710 [ 11.283909][ T205] ? console_emit_next_record+0x4c0/0x4c0 [ 11.283911][ T205] ? __lock_acquire+0x518/0xc20 [ 11.283916][ T205] console_unlock+0xee/0x1f0 [ 11.283919][ T205] ? console_flush_one_record+0x710/0x710 [ 11.283921][ T205] ? rcu_is_watching+0x16/0xd0 [ 11.283922][ T205] ? lock_acquire+0xe0/0x160 [ 11.283926][ T205] ? __down_trylock_console_sem+0x5e/0xa0 [ 11.283928][ T205] ? vprintk_emit+0x320/0x3e0 [ 11.283931][ T205] vprintk_emit+0x37c/0x3e0 [ 11.283934][ T205] ? wake_up_klogd_work_func+0x90/0x90 [ 11.283937][ T205] ? __lock_acquire+0x518/0xc20 [ 11.283940][ T205] _printk+0xc7/0x100 [ 11.283944][ T205] ? snapshot_read.cold+0x21/0x21 [ 11.283947][ T205] ? do_raw_spin_lock+0x131/0x280 [ 11.283950][ T205] ? __rwlock_init+0x150/0x150 [ 11.283954][ T205] ? do_raw_spin_lock+0x131/0x280 [ 11.283957][ T205] do_exit.cold+0x82/0x9c [ 11.283960][ T205] ? exit_notify+0x890/0x890 [ 11.283962][ T205] ? __lock_release.isra.0+0x69/0x1a0 [ 11.283965][ T205] ? rcu_is_watching+0x16/0xd0 [ 11.283968][ T205] do_group_exit+0xb8/0x370 [ 11.283971][ T205] __x64_sys_exit_group+0x3c/0x50 [ 11.283973][ T205] x64_sys_call+0x1567/0x1570 [ 11.283975][ T205] do_syscall_64+0xff/0x530 [ 11.283979][ T205] ? exc_page_fault+0xee/0x100 [ 11.283982][ T205] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 11.283985][ T205] RIP: 0033:0x7f32eb5711b8 [ 11.283987][ T205] Code: Unable to access opcode bytes at 0x7f32eb57118e. [ 11.283988][ T205] RSP: 002b:00007ffd6fdd14c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 11.283990][ T205] RAX: ffffffffffffffda RBX: 00007f32eb6a1f88 RCX: 00007f32eb5711b8 [ 11.283992][ T205] RDX: 00007f32eb2bbfc8 RSI: fffffffffffffeb8 RDI: 0000000000000000 [ 11.283993][ T205] RBP: 00007ffd6fdd1520 R08: 0000000000000000 R09: 0000000000000050 [ 11.283994][ T205] R10: 00007ffd6fdd12e0 R11: 0000000000000246 R12: 0000000000000001 [ 11.283994][ T205] R13: 0000000000000000 R14: 00007f32eb6a0680 R15: 00007f32eb6a1fa0 [ 11.284001][ T205] [ 11.955101][ T223] ip (223) used greatest stack depth: 23264 bytes left [ 17.889202][ C3] IPv4: Oversized IP packet from 172.17.0.2 [ 17.889236][ C3] [ 17.889237][ C3] ======================================================== [ 17.889238][ C3] WARNING: possible irq lock inversion dependency detected [ 17.889240][ C3] 7.2.0-virtme #1 Tainted: G W [ 17.889241][ C3] -------------------------------------------------------- [ 17.889242][ C3] psock_snd/377 just changed the state of lock: [ 17.889243][ C3] ffffffff8809d760 (console_owner){..-.}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 17.889254][ C3] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 17.889255][ C3] (fs_reclaim){+.+.}-{0:0} [ 17.889257][ C3] [ 17.889257][ C3] [ 17.889257][ C3] and interrupts could create inverse lock ordering between them. [ 17.889257][ C3] [ 17.889257][ C3] [ 17.889257][ C3] other info that might help us debug this: [ 17.889258][ C3] Possible interrupt unsafe locking scenario: [ 17.889258][ C3] [ 17.889258][ C3] CPU0 CPU1 [ 17.889259][ C3] ---- ---- [ 17.889259][ C3] lock(fs_reclaim); [ 17.889260][ C3] local_irq_disable(); [ 17.889261][ C3] lock(console_owner); [ 17.889262][ C3] lock(fs_reclaim); [ 17.889262][ C3] [ 17.889263][ C3] lock(console_owner); [ 17.889264][ C3] [ 17.889264][ C3] *** DEADLOCK *** [ 17.889264][ C3] [ 17.889264][ C3] locks held by psock_snd/377: 5, last CPU#3: [ 17.889265][ C3] #0: ffffffff88194c00 (rcu_read_lock){....}-{1:3}, at: process_backlog+0x3f1/0x14c0 [ 17.889271][ C3] #1: ffffffff88194c00 (rcu_read_lock){....}-{1:3}, at: ip_defrag+0xcd/0x7a0 [ 17.889275][ C3] #2: ff1100000be243e8 (&q->lock){+.-.}-{3:3}, at: ip_defrag+0x2c4/0x7a0 [ 17.889278][ C3] #3: ffffffff8817ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 17.889281][ C3] #4: ffffffff8817de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 17.889284][ C3] [ 17.889284][ C3] the shortest dependencies between 2nd lock and 1st lock: [ 17.889288][ C3] -> (fs_reclaim){+.+.}-{0:0} { [ 17.889290][ C3] HARDIRQ-ON-W at: [ 17.889291][ C3] __lock_acquire+0x388/0xc20 [ 17.889295][ C3] lock_acquire.part.0+0xd4/0x280 [ 17.889296][ C3] fs_reclaim_acquire+0xd5/0x120 [ 17.889299][ C3] __kmalloc_cache_noprof+0x6e/0x620 [ 17.889301][ C3] kthread_create_worker_on_node+0xea/0x210 [ 17.889304][ C3] workqueue_init+0x2a/0x680 [ 17.889308][ C3] kernel_init_freeable+0x2fe/0x630 [ 17.889311][ C3] kernel_init+0x21/0x150 [ 17.889314][ C3] ret_from_fork+0x474/0x6b0 [ 17.889317][ C3] ret_from_fork_asm+0x11/0x20 [ 17.889320][ C3] SOFTIRQ-ON-W at: [ 17.889321][ C3] __lock_acquire+0x388/0xc20 [ 17.889323][ C3] lock_acquire.part.0+0xd4/0x280 [ 17.889324][ C3] fs_reclaim_acquire+0xd5/0x120 [ 17.889325][ C3] __kmalloc_cache_noprof+0x6e/0x620 [ 17.889326][ C3] kthread_create_worker_on_node+0xea/0x210 [ 17.889328][ C3] workqueue_init+0x2a/0x680 [ 17.889329][ C3] kernel_init_freeable+0x2fe/0x630 [ 17.889331][ C3] kernel_init+0x21/0x150 [ 17.889332][ C3] ret_from_fork+0x474/0x6b0 [ 17.889333][ C3] ret_from_fork_asm+0x11/0x20 [ 17.889335][ C3] INITIAL USE at: [ 17.889335][ C3] __lock_acquire+0x388/0xc20 [ 17.889337][ C3] lock_acquire.part.0+0xd4/0x280 [ 17.889342][ C3] fs_reclaim_acquire+0xd5/0x120 [ 17.889343][ C3] __kmalloc_cache_noprof+0x6e/0x620 [ 17.889344][ C3] kthread_create_worker_on_node+0xea/0x210 [ 17.889346][ C3] workqueue_init+0x2a/0x680 [ 17.889347][ C3] kernel_init_freeable+0x2fe/0x630 [ 17.889349][ C3] kernel_init+0x21/0x150 [ 17.889350][ C3] ret_from_fork+0x474/0x6b0 [ 17.889351][ C3] ret_from_fork_asm+0x11/0x20 [ 17.889353][ C3] } [ 17.889353][ C3] ... key at: [] __fs_reclaim_map+0x0/0xbe0 [ 17.889357][ C3] ... acquired at: [ 17.889358][ C3] __lock_acquire+0x518/0xc20 [ 17.889360][ C3] lock_acquire.part.0+0xd4/0x280 [ 17.889361][ C3] fs_reclaim_acquire+0xd5/0x120 [ 17.889363][ C3] __kmalloc_noprof+0xd3/0x760 [ 17.889364][ C3] alloc_buf.isra.0+0x4b/0x260 [ 17.889368][ C3] put_chars+0x1e1/0x2f0 [ 17.889368][ C3] hvc_console_print+0x292/0x780 [ 17.889372][ C3] console_emit_next_record+0x22f/0x4c0 [ 17.889373][ C3] console_flush_one_record+0x46f/0x710 [ 17.889375][ C3] console_unlock+0xee/0x1f0 [ 17.889377][ C3] vprintk_emit+0x37c/0x3e0 [ 17.889377][ C3] _printk+0xc7/0x100 [ 17.889380][ C3] tun_init+0x24/0xb0 [ 17.889383][ C3] do_one_initcall+0x124/0x4f0 [ 17.889384][ C3] kernel_init_freeable+0x596/0x630 [ 17.889386][ C3] kernel_init+0x21/0x150 [ 17.889387][ C3] ret_from_fork+0x474/0x6b0 [ 17.889388][ C3] ret_from_fork_asm+0x11/0x20 [ 17.889390][ C3] [ 17.889390][ C3] -> (console_owner){..-.}-{0:0} { [ 17.889392][ C3] IN-SOFTIRQ-W at: [ 17.889392][ C3] __lock_acquire+0x388/0xc20 [ 17.889394][ C3] lock_acquire.part.0+0xd4/0x280 [ 17.889395][ C3] console_lock_spinning_enable+0x5c/0x60 [ 17.889397][ C3] console_emit_next_record+0x1d1/0x4c0 [ 17.889398][ C3] console_flush_one_record+0x46f/0x710 [ 17.889400][ C3] console_unlock+0xee/0x1f0 [ 17.889402][ C3] vprintk_emit+0x37c/0x3e0 [ 17.889402][ C3] _printk+0xc7/0x100 [ 17.889404][ C3] ip_frag_reasm.constprop.0.cold+0x10/0x15 [ 17.889406][ C3] ip_frag_queue+0xeb5/0x1830 [ 17.889407][ C3] ip_defrag+0x2d4/0x7a0 [ 17.889408][ C3] ip_local_deliver+0x171/0x4c0 [ 17.889409][ C3] ip_rcv+0xdc/0x3d0 [ 17.889410][ C3] __netif_receive_skb_core.constprop.0+0x13b5/0x2bb0 [ 17.889412][ C3] __netif_receive_skb_one_core+0xa2/0x180 [ 17.889413][ C3] process_backlog+0x431/0x14c0 [ 17.889415][ C3] __napi_poll+0xa7/0x3b0 [ 17.889416][ C3] net_rx_action+0x513/0xf50 [ 17.889418][ C3] handle_softirqs+0x1d3/0x900 [ 17.889420][ C3] do_softirq+0xac/0xe0 [ 17.889422][ C3] __local_bh_enable_ip+0x118/0x150 [ 17.889423][ C3] __dev_queue_xmit+0x989/0x1b90 [ 17.889424][ C3] packet_snd+0xee8/0x1840 [ 17.889427][ C3] __sock_sendmsg+0xce/0x190 [ 17.889429][ C3] __sys_sendto+0x260/0x320 [ 17.889431][ C3] __x64_sys_sendto+0xe4/0x1f0 [ 17.889432][ C3] do_syscall_64+0xff/0x530 [ 17.889435][ C3] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 17.889436][ C3] INITIAL USE at: [ 17.889437][ C3] } [ 17.889438][ C3] ... key at: [] console_owner_dep_map+0x0/0x60 [ 17.889440][ C3] ... acquired at: [ 17.889440][ C3] mark_lock+0x1d7/0xa00 [ 17.889442][ C3] mark_usage+0x42/0x170 [ 17.889443][ C3] __lock_acquire+0x388/0xc20 [ 17.889444][ C3] lock_acquire.part.0+0xd4/0x280 [ 17.889446][ C3] console_lock_spinning_enable+0x5c/0x60 [ 17.889447][ C3] console_emit_next_record+0x1d1/0x4c0 [ 17.889449][ C3] console_flush_one_record+0x46f/0x710 [ 17.889451][ C3] console_unlock+0xee/0x1f0 [ 17.889452][ C3] vprintk_emit+0x37c/0x3e0 [ 17.889453][ C3] _printk+0xc7/0x100 [ 17.889454][ C3] ip_frag_reasm.constprop.0.cold+0x10/0x15 [ 17.889455][ C3] ip_frag_queue+0xeb5/0x1830 [ 17.889456][ C3] ip_defrag+0x2d4/0x7a0 [ 17.889457][ C3] ip_local_deliver+0x171/0x4c0 [ 17.889458][ C3] ip_rcv+0xdc/0x3d0 [ 17.889459][ C3] __netif_receive_skb_core.constprop.0+0x13b5/0x2bb0 [ 17.889460][ C3] __netif_receive_skb_one_core+0xa2/0x180 [ 17.889462][ C3] process_backlog+0x431/0x14c0 [ 17.889463][ C3] __napi_poll+0xa7/0x3b0 [ 17.889465][ C3] net_rx_action+0x513/0xf50 [ 17.889466][ C3] handle_softirqs+0x1d3/0x900 [ 17.889467][ C3] do_softirq+0xac/0xe0 [ 17.889469][ C3] __local_bh_enable_ip+0x118/0x150 [ 17.889470][ C3] __dev_queue_xmit+0x989/0x1b90 [ 17.889471][ C3] packet_snd+0xee8/0x1840 [ 17.889472][ C3] __sock_sendmsg+0xce/0x190 [ 17.889474][ C3] __sys_sendto+0x260/0x320 [ 17.889475][ C3] __x64_sys_sendto+0xe4/0x1f0 [ 17.889476][ C3] do_syscall_64+0xff/0x530 [ 17.889478][ C3] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 17.889479][ C3] [ 17.889479][ C3] [ 17.889479][ C3] stack backtrace: [ 17.889482][ C3] CPU: 3 UID: 0 PID: 377 Comm: psock_snd Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 17.889485][ C3] Tainted: [W]=WARN [ 17.889486][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.889488][ C3] Call Trace: [ 17.889489][ C3] [ 17.889490][ C3] dump_stack_lvl+0x6f/0xa0 [ 17.889494][ C3] print_irq_inversion_bug.part.0.cold+0xe6/0x143 [ 17.889497][ C3] mark_lock_irq+0x989/0x9c0 [ 17.889499][ C3] mark_lock+0x1d7/0xa00 [ 17.889501][ C3] mark_usage+0x42/0x170 [ 17.889503][ C3] __lock_acquire+0x388/0xc20 [ 17.889505][ C3] lock_acquire.part.0+0xd4/0x280 [ 17.889507][ C3] ? console_lock_spinning_enable+0x40/0x60 [ 17.889509][ C3] ? rcu_is_watching+0x16/0xd0 [ 17.889511][ C3] ? lock_acquire+0x13c/0x160 [ 17.889513][ C3] console_lock_spinning_enable+0x5c/0x60 [ 17.889515][ C3] ? console_lock_spinning_enable+0x40/0x60 [ 17.889517][ C3] console_emit_next_record+0x1d1/0x4c0 [ 17.889519][ C3] ? devkmsg_read+0x4b0/0x4b0 [ 17.889521][ C3] ? console_flush_one_record+0x106/0x710 [ 17.889523][ C3] ? rcu_is_watching+0x16/0xd0 [ 17.889524][ C3] ? lock_acquire+0x13c/0x160 [ 17.889526][ C3] console_flush_one_record+0x46f/0x710 [ 17.889528][ C3] ? console_emit_next_record+0x4c0/0x4c0 [ 17.889530][ C3] ? __lock_acquire+0x518/0xc20 [ 17.889532][ C3] console_unlock+0xee/0x1f0 [ 17.889534][ C3] ? console_flush_one_record+0x710/0x710 [ 17.889535][ C3] ? rcu_is_watching+0x16/0xd0 [ 17.889536][ C3] ? lock_acquire+0xe0/0x160 [ 17.889538][ C3] ? __down_trylock_console_sem+0x5e/0xa0 [ 17.889541][ C3] ? vprintk_emit+0x320/0x3e0 [ 17.889542][ C3] vprintk_emit+0x37c/0x3e0 [ 17.889543][ C3] ? wake_up_klogd_work_func+0x90/0x90 [ 17.889544][ C3] ? __lock_release.isra.0+0x69/0x1a0 [ 17.889547][ C3] _printk+0xc7/0x100 [ 17.889548][ C3] ? snapshot_read.cold+0x21/0x21 [ 17.889550][ C3] ? ___ratelimit+0x4e7/0xa00 [ 17.889553][ C3] ? idr_get_free+0x830/0x830 [ 17.889555][ C3] ip_frag_reasm.constprop.0.cold+0x10/0x15 [ 17.889557][ C3] ip_frag_queue+0xeb5/0x1830 [ 17.889559][ C3] ip_defrag+0x2d4/0x7a0 [ 17.889561][ C3] ? ip4_obj_hashfn+0x280/0x280 [ 17.889562][ C3] ? ip_route_input_noref+0x137/0x250 [ 17.889564][ C3] ? ip_route_input_slow+0x2420/0x2420 [ 17.889566][ C3] ? _raw_spin_unlock_irqrestore+0x40/0x80 [ 17.889568][ C3] ? rcu_is_watching+0x16/0xd0 [ 17.889570][ C3] ip_local_deliver+0x171/0x4c0 [ 17.889571][ C3] ? ip_local_deliver_finish+0x610/0x610 [ 17.889573][ C3] ? ip_rcv_finish_core+0x6ed/0x14c0 [ 17.889574][ C3] ? __asan_memset+0x27/0x50 [ 17.889578][ C3] ip_rcv+0xdc/0x3d0 [ 17.889579][ C3] ? ip_local_deliver+0x4c0/0x4c0 [ 17.889580][ C3] ? check_path.constprop.0+0x24/0x50 [ 17.889582][ C3] ? __lock_acquire+0x518/0xc20 [ 17.889584][ C3] __netif_receive_skb_core.constprop.0+0x13b5/0x2bb0 [ 17.889586][ C3] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 17.889588][ C3] ? rcu_read_lock_any_held+0x3c/0x90 [ 17.889590][ C3] ? validate_chain+0x38b/0xc20 [ 17.889592][ C3] ? mark_usage+0x61/0x170 [ 17.889594][ C3] ? __lock_acquire+0x518/0xc20 [ 17.889596][ C3] ? do_xdp_generic+0x4a0/0x4a0 [ 17.889597][ C3] ? lock_acquire.part.0+0xd4/0x280 [ 17.889599][ C3] ? find_held_lock+0x2b/0x80 [ 17.889601][ C3] ? __lock_release.isra.0+0x69/0x1a0 [ 17.889602][ C3] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 17.889604][ C3] ? rcu_read_lock_any_held+0x3c/0x90 [ 17.889605][ C3] ? validate_chain+0x38b/0xc20 [ 17.889607][ C3] ? sock_def_readable+0x156/0x480 [ 17.889608][ C3] ? mark_usage+0x61/0x170 [ 17.889610][ C3] ? __lock_acquire+0x518/0xc20 [ 17.889612][ C3] ? process_backlog+0x3f1/0x14c0 [ 17.889614][ C3] __netif_receive_skb_one_core+0xa2/0x180 [ 17.889615][ C3] ? lock_acquire.part.0+0xd4/0x280 [ 17.889617][ C3] ? process_backlog+0x3f1/0x14c0 [ 17.889619][ C3] ? __netif_receive_skb_list_core+0x9e0/0x9e0 [ 17.889620][ C3] ? rcu_is_watching+0x16/0xd0 [ 17.889622][ C3] process_backlog+0x431/0x14c0 [ 17.889625][ C3] __napi_poll+0xa7/0x3b0 [ 17.889627][ C3] net_rx_action+0x513/0xf50 [ 17.889629][ C3] ? __lock_acquire+0x518/0xc20 [ 17.889631][ C3] ? __napi_poll+0x3b0/0x3b0 [ 17.889634][ C3] ? ktime_get_update_offsets_now+0x2a8/0x490 [ 17.889637][ C3] ? rcu_is_watching+0x16/0xd0 [ 17.889639][ C3] handle_softirqs+0x1d3/0x900 [ 17.889641][ C3] ? _local_bh_enable+0xc0/0xc0 [ 17.889642][ C3] ? do_raw_spin_unlock+0x59/0x250 [ 17.889644][ C3] ? rcu_is_watching+0x16/0xd0 [ 17.889645][ C3] ? __dev_queue_xmit+0x974/0x1b90 [ 17.889647][ C3] do_softirq+0xac/0xe0 [ 17.889649][ C3] [ 17.889649][ C3] [ 17.889650][ C3] __local_bh_enable_ip+0x118/0x150 [ 17.889652][ C3] __dev_queue_xmit+0x989/0x1b90 [ 17.889653][ C3] ? _copy_from_iter+0x1bb/0x1810 [ 17.889656][ C3] ? _copy_from_iter_flushcache+0x1970/0x1970 [ 17.889658][ C3] ? _copy_from_iter_flushcache+0x1970/0x1970 [ 17.889660][ C3] ? __might_fault+0x97/0x140 [ 17.889662][ C3] ? netdev_core_pick_tx+0x2c0/0x2c0 [ 17.889664][ C3] ? __virtio_net_hdr_to_skb.constprop.0+0x327/0x1440 [ 17.889666][ C3] ? alloc_pg_vec.isra.0+0x540/0x540 [ 17.889667][ C3] ? packet_rcv_spkt+0x5a0/0x5a0 [ 17.889669][ C3] packet_snd+0xee8/0x1840 [ 17.889672][ C3] ? kasan_addr_to_slab+0x41/0x50 [ 17.889674][ C3] ? tpacket_snd+0x1990/0x1990 [ 17.889675][ C3] ? lock_acquire.part.0+0xd4/0x280 [ 17.889677][ C3] ? __might_fault+0x97/0x140 [ 17.889678][ C3] ? find_held_lock+0x2b/0x80 [ 17.889679][ C3] ? __lock_release.isra.0+0x69/0x1a0 [ 17.889682][ C3] __sock_sendmsg+0xce/0x190 [ 17.889683][ C3] ? fdget+0x4f/0x1e0 [ 17.889686][ C3] __sys_sendto+0x260/0x320 [ 17.889688][ C3] ? __ia32_sys_getpeername+0xd0/0xd0 [ 17.889691][ C3] ? fput_close_sync+0xde/0x1b0 [ 17.889694][ C3] ? alloc_file_clone+0xe0/0xe0 [ 17.889696][ C3] __x64_sys_sendto+0xe4/0x1f0 [ 17.889698][ C3] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 17.889700][ C3] ? lockdep_hardirqs_on+0x91/0x130 [ 17.889702][ C3] ? do_syscall_64+0xa6/0x530 [ 17.889704][ C3] do_syscall_64+0xff/0x530 [ 17.889705][ C3] ? exc_page_fault+0xee/0x100 [ 17.889707][ C3] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 17.889708][ C3] RIP: 0033:0x7fbcb916454e [ 17.889711][ C3] 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 [ 17.889717][ C3] RSP: 002b:00007ffce901f710 EFLAGS: 00000202 ORIG_RAX: 000000000000002c [ 17.889720][ C3] RAX: ffffffffffffffda RBX: 0000000000010018 RCX: 00007fbcb916454e [ 17.889721][ C3] RDX: 0000000000010018 RSI: 0000000000415120 RDI: 0000000000000007 [ 17.889722][ C3] RBP: 00007ffce901f720 R08: 00007ffce901f780 R09: 0000000000000014 [ 17.889723][ C3] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000007 [ 17.889724][ C3] R13: 0000000000000006 R14: 00007fbcb9335000 R15: 0000000000404e00 [ 17.889726][ C3] [ 17.889729][ C3] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 17.889731][ C3] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 377, name: psock_snd [ 17.889732][ C3] preempt_count: 103, expected: 0 [ 17.889732][ C3] RCU nest depth: 2, expected: 0 [ 17.889733][ C3] INFO: lockdep is turned off. [ 17.889734][ C3] irq event stamp: 30903 [ 17.889734][ C3] hardirqs last enabled at (30902): [] __down_trylock_console_sem+0x86/0xa0 [ 17.889737][ C3] hardirqs last disabled at (30903): [] console_emit_next_record+0x3d4/0x4c0 [ 17.889739][ C3] softirqs last enabled at (30538): [] __dev_queue_xmit+0x974/0x1b90 [ 17.889741][ C3] softirqs last disabled at (30539): [] do_softirq+0xac/0xe0 [ 17.889742][ C3] Preemption disabled at: [ 17.889743][ C3] [] __dev_queue_xmit+0x20c/0x1b90 [ 17.889746][ C3] CPU: 3 UID: 0 PID: 377 Comm: psock_snd Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 17.889747][ C3] Tainted: [W]=WARN [ 17.889748][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.889748][ C3] Call Trace: [ 17.889749][ C3] [ 17.889749][ C3] dump_stack_lvl+0x6f/0xa0 [ 17.889752][ C3] ? __dev_queue_xmit+0x20c/0x1b90 [ 17.889753][ C3] __might_resched.cold+0x1fe/0x2c1 [ 17.889756][ C3] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 17.889759][ C3] ? rcu_is_watching+0x16/0xd0 [ 17.889760][ C3] __kmalloc_noprof+0x443/0x760 [ 17.889762][ C3] ? __rwlock_init+0x150/0x150 [ 17.889763][ C3] ? alloc_buf.isra.0+0x4b/0x260 [ 17.889766][ C3] ? do_raw_spin_unlock+0x59/0x250 [ 17.889767][ C3] alloc_buf.isra.0+0x4b/0x260 [ 17.889769][ C3] put_chars+0x1e1/0x2f0 [ 17.889771][ C3] ? __send_to_port+0x420/0x420 [ 17.889773][ C3] hvc_console_print+0x292/0x780 [ 17.889775][ C3] ? __lock_acquire+0x388/0xc20 [ 17.889777][ C3] ? hvc_write+0x3a0/0x3a0 [ 17.889779][ C3] ? rcu_is_watching+0x16/0xd0 [ 17.889781][ C3] ? lock_acquire+0x13c/0x160 [ 17.889782][ C3] console_emit_next_record+0x22f/0x4c0 [ 17.889785][ C3] ? devkmsg_read+0x4b0/0x4b0 [ 17.889786][ C3] ? console_flush_one_record+0x106/0x710 [ 17.889788][ C3] ? rcu_is_watching+0x16/0xd0 [ 17.889789][ C3] ? lock_acquire+0x13c/0x160 [ 17.889791][ C3] console_flush_one_record+0x46f/0x710 [ 17.889793][ C3] ? console_emit_next_record+0x4c0/0x4c0 [ 17.889795][ C3] ? __lock_acquire+0x518/0xc20 [ 17.889797][ C3] console_unlock+0xee/0x1f0 [ 17.889799][ C3] ? console_flush_one_record+0x710/0x710 [ 17.889801][ C3] ? rcu_is_watching+0x16/0xd0 [ 17.889802][ C3] ? lock_acquire+0xe0/0x160 [ 17.889804][ C3] ? __down_trylock_console_sem+0x5e/0xa0 [ 17.889805][ C3] ? vprintk_emit+0x320/0x3e0 [ 17.889807][ C3] vprintk_emit+0x37c/0x3e0 [ 17.889808][ C3] ? wake_up_klogd_work_func+0x90/0x90 [ 17.889809][ C3] ? __lock_release.isra.0+0x69/0x1a0 [ 17.889811][ C3] _printk+0xc7/0x100 [ 17.889813][ C3] ? snapshot_read.cold+0x21/0x21 [ 17.889814][ C3] ? ___ratelimit+0x4e7/0xa00 [ 17.889816][ C3] ? idr_get_free+0x830/0x830 [ 17.889818][ C3] ip_frag_reasm.constprop.0.cold+0x10/0x15 [ 17.889820][ C3] ip_frag_queue+0xeb5/0x1830 [ 17.889822][ C3] ip_defrag+0x2d4/0x7a0 [ 17.889824][ C3] ? ip4_obj_hashfn+0x280/0x280 [ 17.889825][ C3] ? ip_route_input_noref+0x137/0x250 [ 17.889827][ C3] ? ip_route_input_slow+0x2420/0x2420 [ 17.889829][ C3] ? _raw_spin_unlock_irqrestore+0x40/0x80 [ 17.889830][ C3] ? rcu_is_watching+0x16/0xd0 [ 17.889832][ C3] ip_local_deliver+0x171/0x4c0 [ 17.889833][ C3] ? ip_local_deliver_finish+0x610/0x610 [ 17.889834][ C3] ? ip_rcv_finish_core+0x6ed/0x14c0 [ 17.889835][ C3] ? __asan_memset+0x27/0x50 [ 17.889837][ C3] ip_rcv+0xdc/0x3d0 [ 17.889839][ C3] ? ip_local_deliver+0x4c0/0x4c0 [ 17.889840][ C3] ? check_path.constprop.0+0x24/0x50 [ 17.889842][ C3] ? __lock_acquire+0x518/0xc20 [ 17.889844][ C3] __netif_receive_skb_core.constprop.0+0x13b5/0x2bb0 [ 17.889846][ C3] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 17.889847][ C3] ? rcu_read_lock_any_held+0x3c/0x90 [ 17.889849][ C3] ? validate_chain+0x38b/0xc20 [ 17.889850][ C3] ? mark_usage+0x61/0x170 [ 17.889852][ C3] ? __lock_acquire+0x518/0xc20 [ 17.889854][ C3] ? do_xdp_generic+0x4a0/0x4a0 [ 17.889855][ C3] ? lock_acquire.part.0+0xd4/0x280 [ 17.889857][ C3] ? find_held_lock+0x2b/0x80 [ 17.889858][ C3] ? __lock_release.isra.0+0x69/0x1a0 [ 17.889860][ C3] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 17.889861][ C3] ? rcu_read_lock_any_held+0x3c/0x90 [ 17.889863][ C3] ? validate_chain+0x38b/0xc20 [ 17.889864][ C3] ? sock_def_readable+0x156/0x480 [ 17.889866][ C3] ? mark_usage+0x61/0x170 [ 17.889867][ C3] ? __lock_acquire+0x518/0xc20 [ 17.889869][ C3] ? process_backlog+0x3f1/0x14c0 [ 17.889871][ C3] __netif_receive_skb_one_core+0xa2/0x180 [ 17.889872][ C3] ? lock_acquire.part.0+0xd4/0x280 [ 17.889874][ C3] ? process_backlog+0x3f1/0x14c0 [ 17.889876][ C3] ? __netif_receive_skb_list_core+0x9e0/0x9e0 [ 17.889877][ C3] ? rcu_is_watching+0x16/0xd0 [ 17.889879][ C3] process_backlog+0x431/0x14c0 [ 17.889881][ C3] __napi_poll+0xa7/0x3b0 [ 17.889883][ C3] net_rx_action+0x513/0xf50 [ 17.889886][ C3] ? __lock_acquire+0x518/0xc20 [ 17.889887][ C3] ? __napi_poll+0x3b0/0x3b0 [ 17.889891][ C3] ? ktime_get_update_offsets_now+0x2a8/0x490 [ 17.889892][ C3] ? rcu_is_watching+0x16/0xd0 [ 17.889894][ C3] handle_softirqs+0x1d3/0x900 [ 17.889896][ C3] ? _local_bh_enable+0xc0/0xc0 [ 17.889897][ C3] ? do_raw_spin_unlock+0x59/0x250 [ 17.889899][ C3] ? rcu_is_watching+0x16/0xd0 [ 17.889900][ C3] ? __dev_queue_xmit+0x974/0x1b90 [ 17.889902][ C3] do_softirq+0xac/0xe0 [ 17.889903][ C3] [ 17.889903][ C3] [ 17.889904][ C3] __local_bh_enable_ip+0x118/0x150 [ 17.889906][ C3] __dev_queue_xmit+0x989/0x1b90 [ 17.889907][ C3] ? _copy_from_iter+0x1bb/0x1810 [ 17.889909][ C3] ? _copy_from_iter_flushcache+0x1970/0x1970 [ 17.889911][ C3] ? _copy_from_iter_flushcache+0x1970/0x1970 [ 17.889912][ C3] ? __might_fault+0x97/0x140 [ 17.889913][ C3] ? netdev_core_pick_tx+0x2c0/0x2c0 [ 17.889915][ C3] ? __virtio_net_hdr_to_skb.constprop.0+0x327/0x1440 [ 17.889917][ C3] ? alloc_pg_vec.isra.0+0x540/0x540 [ 17.889918][ C3] ? packet_rcv_spkt+0x5a0/0x5a0 [ 17.889920][ C3] packet_snd+0xee8/0x1840 [ 17.889922][ C3] ? kasan_addr_to_slab+0x41/0x50 [ 17.889924][ C3] ? tpacket_snd+0x1990/0x1990 [ 17.889925][ C3] ? lock_acquire.part.0+0xd4/0x280 [ 17.889927][ C3] ? __might_fault+0x97/0x140 [ 17.889928][ C3] ? find_held_lock+0x2b/0x80 [ 17.889929][ C3] ? __lock_release.isra.0+0x69/0x1a0 [ 17.889931][ C3] __sock_sendmsg+0xce/0x190 [ 17.889933][ C3] ? fdget+0x4f/0x1e0 [ 17.889934][ C3] __sys_sendto+0x260/0x320 [ 17.889936][ C3] ? __ia32_sys_getpeername+0xd0/0xd0 [ 17.889940][ C3] ? fput_close_sync+0xde/0x1b0 [ 17.889941][ C3] ? alloc_file_clone+0xe0/0xe0 [ 17.889943][ C3] __x64_sys_sendto+0xe4/0x1f0 [ 17.889945][ C3] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 17.889946][ C3] ? lockdep_hardirqs_on+0x91/0x130 [ 17.889948][ C3] ? do_syscall_64+0xa6/0x530 [ 17.889949][ C3] do_syscall_64+0xff/0x530 [ 17.889951][ C3] ? exc_page_fault+0xee/0x100 [ 17.889952][ C3] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 17.889953][ C3] RIP: 0033:0x7fbcb916454e [ 17.889955][ C3] 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 [ 17.889956][ C3] RSP: 002b:00007ffce901f710 EFLAGS: 00000202 ORIG_RAX: 000000000000002c [ 17.889957][ C3] RAX: ffffffffffffffda RBX: 0000000000010018 RCX: 00007fbcb916454e [ 17.889958][ C3] RDX: 0000000000010018 RSI: 0000000000415120 RDI: 0000000000000007 [ 17.889958][ C3] RBP: 00007ffce901f720 R08: 00007ffce901f780 R09: 0000000000000014 [ 17.889959][ C3] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000007 [ 17.889960][ C3] R13: 0000000000000006 R14: 00007fbcb9335000 R15: 0000000000404e00 [ 17.889962][ C3]