------------[ cut here ]------------ WARNING: CPU: 0 PID: 10938 at net/core/stream.c:205 sk_stream_kill_queues+0x2ee/0x3d0 net/core/stream.c:205 Modules linked in: CPU: 0 PID: 10938 Comm: syz-executor.4 Not tainted 5.19.0-rc1-syzkaller-00340-ge10b02ee5b6c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:sk_stream_kill_queues+0x2ee/0x3d0 net/core/stream.c:205 Code: 03 0f b6 04 02 84 c0 74 08 3c 03 0f 8e ec 00 00 00 8b ab 28 02 00 00 e9 60 ff ff ff e8 1b 1b 2b fa 0f 0b eb 97 e8 12 1b 2b fa <0f> 0b eb a0 e8 09 1b 2b fa 0f 0b e9 6a fe ff ff e8 3d de 77 fa e9 RSP: 0018:ffffc90000007ae8 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000100 RDX: ffff88807fa79d80 RSI: ffffffff874f581e RDI: 0000000000000005 RBP: 00000000ffff9000 R08: 0000000000000005 R09: 0000000000000000 R10: 00000000ffff9000 R11: 0000000000000001 R12: ffff88801d936228 R13: ffffffff912e2e00 R14: ffff88801d936028 R15: ffff88801d936030 FS: 00007fe2705ed700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000002071b000 CR3: 000000007c9b7000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: inet_csk_destroy_sock+0x1a5/0x440 net/ipv4/inet_connection_sock.c:1132 tcp_done+0x23b/0x340 net/ipv4/tcp.c:4502 tcp_write_err net/ipv4/tcp_timer.c:74 [inline] tcp_write_timeout net/ipv4/tcp_timer.c:276 [inline] tcp_retransmit_timer+0x16d5/0x3360 net/ipv4/tcp_timer.c:506 tcp_write_timer_handler net/ipv4/tcp_timer.c:616 [inline] tcp_write_timer_handler+0x4de/0x9f0 net/ipv4/tcp_timer.c:590 tcp_write_timer+0xa2/0x2b0 net/ipv4/tcp_timer.c:633 call_timer_fn+0x1a5/0x6b0 kernel/time/timer.c:1474 expire_timers kernel/time/timer.c:1519 [inline] __run_timers.part.0+0x679/0xa80 kernel/time/timer.c:1790 __run_timers kernel/time/timer.c:1768 [inline] run_timer_softirq+0xb3/0x1d0 kernel/time/timer.c:1803 __do_softirq+0x29b/0x9c2 kernel/softirq.c:571 invoke_softirq kernel/softirq.c:445 [inline] __irq_exit_rcu+0x123/0x180 kernel/softirq.c:650 irq_exit_rcu+0x5/0x20 kernel/softirq.c:662 irq_exit_rcu+0x5/0x20 kernel/softirq.c:662 sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1106 asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:649 RIP: 0010:lock_is_held_type+0x104/0x140 kernel/locking/lockdep.c:5713 Code: ff ff 65 0f c1 05 84 93 8b 76 83 f8 01 75 29 9c 58 f6 c4 02 75 3d 48 f7 04 24 00 02 00 00 74 01 fb 48 83 c4 08 44 89 e8 5b 5d <41> 5c 41 5d 41 5e 41 5f c3 45 31 ed eb b9 0f 0b 48 c7 c7 00 79 cc RSP: 0018:ffffc9000296f4b0 EFLAGS: 00000296 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000001 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: 1ffff9200052de9f R08: 0000000000000000 R09: ffffffff8dbb4317 R10: fffffbfff1b76862 R11: 0000000000000001 R12: ffff88807fa79d80 R13: 0000000000000000 R14: 00000000ffffffff R15: ffff88807fa7a858 lock_is_held include/linux/lockdep.h:279 [inline] rcu_read_lock_sched_held+0x3a/0x70 kernel/rcu/update.c:125 trace_lock_release include/trace/events/lock.h:69 [inline] lock_release+0x560/0x780 kernel/locking/lockdep.c:5676 rcu_lock_release include/linux/rcupdate.h:274 [inline] rcu_read_unlock include/linux/rcupdate.h:728 [inline] xa_get_order+0x20c/0x390 lib/xarray.c:1787 __filemap_add_folio+0x33b/0x1660 mm/filemap.c:872 filemap_add_folio+0xab/0x1d0 mm/filemap.c:959 __filemap_get_folio+0x3c2/0xf00 mm/filemap.c:2003 pagecache_get_page+0x2e/0x290 mm/folio-compat.c:126 ext4_da_write_begin+0x3f9/0xaf0 fs/ext4/inode.c:2977 generic_perform_write+0x244/0x560 mm/filemap.c:3769 ext4_buffered_write_iter+0x15b/0x330 fs/ext4/file.c:270 ext4_file_write_iter+0x43c/0x1520 fs/ext4/file.c:679 call_write_iter include/linux/fs.h:2058 [inline] new_sync_write+0x38a/0x560 fs/read_write.c:504 vfs_write+0x7c0/0xac0 fs/read_write.c:591 ksys_write+0x127/0x250 fs/read_write.c:644 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x46/0xb0 RIP: 0033:0x7fe26f489109 ================================ WARNING: inconsistent lock state 5.19.0-rc1-syzkaller-00340-ge10b02ee5b6c #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. syz-executor.4/10938 [HC0[0]:SC1[1]:HE1:SE0] takes: ffffffff8beb84d8 (vmap_area_lock){+.?.}-{2:2}, at: spin_lock include/linux/spinlock.h:349 [inline] ffffffff8beb84d8 (vmap_area_lock){+.?.}-{2:2}, at: find_vmap_area mm/vmalloc.c:1805 [inline] ffffffff8beb84d8 (vmap_area_lock){+.?.}-{2:2}, at: find_vm_area+0x1c/0x190 mm/vmalloc.c:2525 {SOFTIRQ-ON-W} state was registered at: lock_acquire kernel/locking/lockdep.c:5665 [inline] lock_acquire+0x1ab/0x570 kernel/locking/lockdep.c:5630 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:349 [inline] alloc_vmap_area+0xa49/0x1f00 mm/vmalloc.c:1586 __get_vm_area_node+0x142/0x3f0 mm/vmalloc.c:2453 get_vm_area_caller+0x43/0x50 mm/vmalloc.c:2506 __ioremap_caller.constprop.0+0x292/0x600 arch/x86/mm/ioremap.c:280 acpi_os_ioremap include/acpi/acpi_io.h:13 [inline] acpi_map drivers/acpi/osl.c:296 [inline] acpi_os_map_iomem+0x463/0x550 drivers/acpi/osl.c:355 acpi_tb_acquire_table+0xd8/0x209 drivers/acpi/acpica/tbdata.c:142 acpi_tb_validate_table drivers/acpi/acpica/tbdata.c:317 [inline] acpi_tb_validate_table+0x50/0x8c drivers/acpi/acpica/tbdata.c:308 acpi_tb_verify_temp_table+0x84/0x674 drivers/acpi/acpica/tbdata.c:504 acpi_reallocate_root_table+0x374/0x3e0 drivers/acpi/acpica/tbxface.c:180 acpi_early_init+0x13a/0x438 drivers/acpi/bus.c:1200 start_kernel+0x3cf/0x48f init/main.c:1098 secondary_startup_64_no_verify+0xce/0xdb irq event stamp: 72858 hardirqs last enabled at (72858): [] console_trylock_spinning kernel/printk/printk.c:2034 [inline] hardirqs last enabled at (72858): [] vprintk_emit+0x5f0/0x680 kernel/printk/printk.c:2400 hardirqs last disabled at (72857): [] console_trylock_spinning kernel/printk/printk.c:2013 [inline] hardirqs last disabled at (72857): [] vprintk_emit+0x587/0x680 kernel/printk/printk.c:2400 softirqs last enabled at (69466): [] invoke_softirq kernel/softirq.c:445 [inline] softirqs last enabled at (69466): [] __irq_exit_rcu+0x123/0x180 kernel/softirq.c:650 softirqs last disabled at (71859): [] invoke_softirq kernel/softirq.c:445 [inline] softirqs last disabled at (71859): [] __irq_exit_rcu+0x123/0x180 kernel/softirq.c:650 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(vmap_area_lock); lock(vmap_area_lock); *** DEADLOCK *** 6 locks held by syz-executor.4/10938: #0: ffff888078c2cfe8 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0xe3/0x100 fs/file.c:1036 #1: ffff88814a9e6460 (sb_writers#4){.+.+}-{0:0}, at: ksys_write+0x127/0x250 fs/read_write.c:644 #2: ffff888048455440 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: inode_lock include/linux/fs.h:741 [inline] #2: ffff888048455440 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: ext4_buffered_write_iter+0xb0/0x330 fs/ext4/file.c:264 #3: ffffffff8bd867e0 (rcu_read_lock){....}-{1:2}, at: xa_get_order+0x0/0x390 lib/xarray.c:1469 #4: ffffc90000007d70 ((&icsk->icsk_retransmit_timer)){+.-.}-{0:0}, at: lockdep_copy_map include/linux/lockdep.h:31 [inline] #4: ffffc90000007d70 ((&icsk->icsk_retransmit_timer)){+.-.}-{0:0}, at: call_timer_fn+0xd5/0x6b0 kernel/time/timer.c:1464 #5: ffff88801d9360b0 (slock-AF_INET){+.-.}-{2:2}, at: spin_lock include/linux/spinlock.h:349 [inline] #5: ffff88801d9360b0 (slock-AF_INET){+.-.}-{2:2}, at: tcp_write_timer+0x26/0x2b0 net/ipv4/tcp_timer.c:631 stack backtrace: CPU: 0 PID: 10938 Comm: syz-executor.4 Not tainted 5.19.0-rc1-syzkaller-00340-ge10b02ee5b6c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 print_usage_bug kernel/locking/lockdep.c:3961 [inline] valid_state kernel/locking/lockdep.c:3973 [inline] mark_lock_irq kernel/locking/lockdep.c:4176 [inline] mark_lock.part.0.cold+0x18/0xd8 kernel/locking/lockdep.c:4632 mark_lock kernel/locking/lockdep.c:4596 [inline] mark_usage kernel/locking/lockdep.c:4527 [inline] __lock_acquire+0x11e7/0x5660 kernel/locking/lockdep.c:5007 lock_acquire kernel/locking/lockdep.c:5665 [inline] lock_acquire+0x1ab/0x570 kernel/locking/lockdep.c:5630 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:349 [inline] find_vmap_area mm/vmalloc.c:1805 [inline] find_vm_area+0x1c/0x190 mm/vmalloc.c:2525 check_heap_object mm/usercopy.c:176 [inline] __check_object_size mm/usercopy.c:252 [inline] __check_object_size+0x1fb/0x7a0 mm/usercopy.c:214 check_object_size include/linux/thread_info.h:199 [inline] __copy_from_user_inatomic include/linux/uaccess.h:62 [inline] copy_from_user_nmi arch/x86/lib/usercopy.c:47 [inline] copy_from_user_nmi+0xcb/0x130 arch/x86/lib/usercopy.c:31 copy_code arch/x86/kernel/dumpstack.c:91 [inline] show_opcodes+0x59/0xb0 arch/x86/kernel/dumpstack.c:121 show_iret_regs+0xd/0x33 arch/x86/kernel/dumpstack.c:149 __show_regs+0x1e/0x60 arch/x86/kernel/process_64.c:74 show_trace_log_lvl+0x25b/0x2ba arch/x86/kernel/dumpstack.c:292 __warn+0xe7/0x190 kernel/panic.c:622 report_bug+0x1bc/0x210 lib/bug.c:198 handle_bug+0x3c/0x60 arch/x86/kernel/traps.c:316 exc_invalid_op+0x14/0x40 arch/x86/kernel/traps.c:336 asm_exc_invalid_op+0x1b/0x20 arch/x86/include/asm/idtentry.h:568 RIP: 0010:sk_stream_kill_queues+0x2ee/0x3d0 net/core/stream.c:205 Code: 03 0f b6 04 02 84 c0 74 08 3c 03 0f 8e ec 00 00 00 8b ab 28 02 00 00 e9 60 ff ff ff e8 1b 1b 2b fa 0f 0b eb 97 e8 12 1b 2b fa <0f> 0b eb a0 e8 09 1b 2b fa 0f 0b e9 6a fe ff ff e8 3d de 77 fa e9 RSP: 0018:ffffc90000007ae8 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000100 RDX: ffff88807fa79d80 RSI: ffffffff874f581e RDI: 0000000000000005 RBP: 00000000ffff9000 R08: 0000000000000005 R09: 0000000000000000 R10: 00000000ffff9000 R11: 0000000000000001 R12: ffff88801d936228 R13: ffffffff912e2e00 R14: ffff88801d936028 R15: ffff88801d936030 inet_csk_destroy_sock+0x1a5/0x440 net/ipv4/inet_connection_sock.c:1132 tcp_done+0x23b/0x340 net/ipv4/tcp.c:4502 tcp_write_err net/ipv4/tcp_timer.c:74 [inline] tcp_write_timeout net/ipv4/tcp_timer.c:276 [inline] tcp_retransmit_timer+0x16d5/0x3360 net/ipv4/tcp_timer.c:506 tcp_write_timer_handler net/ipv4/tcp_timer.c:616 [inline] tcp_write_timer_handler+0x4de/0x9f0 net/ipv4/tcp_timer.c:590 tcp_write_timer+0xa2/0x2b0 net/ipv4/tcp_timer.c:633 call_timer_fn+0x1a5/0x6b0 kernel/time/timer.c:1474 expire_timers kernel/time/timer.c:1519 [inline] __run_timers.part.0+0x679/0xa80 kernel/time/timer.c:1790 __run_timers kernel/time/timer.c:1768 [inline] run_timer_softirq+0xb3/0x1d0 kernel/time/timer.c:1803 __do_softirq+0x29b/0x9c2 kernel/softirq.c:571 invoke_softirq kernel/softirq.c:445 [inline] __irq_exit_rcu+0x123/0x180 kernel/softirq.c:650 irq_exit_rcu+0x5/0x20 kernel/softirq.c:662 sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1106 asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:649 RIP: 0010:lock_is_held_type+0x104/0x140 kernel/locking/lockdep.c:5713 Code: ff ff 65 0f c1 05 84 93 8b 76 83 f8 01 75 29 9c 58 f6 c4 02 75 3d 48 f7 04 24 00 02 00 00 74 01 fb 48 83 c4 08 44 89 e8 5b 5d <41> 5c 41 5d 41 5e 41 5f c3 45 31 ed eb b9 0f 0b 48 c7 c7 00 79 cc RSP: 0018:ffffc9000296f4b0 EFLAGS: 00000296 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000001 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: 1ffff9200052de9f R08: 0000000000000000 R09: ffffffff8dbb4317 R10: fffffbfff1b76862 R11: 0000000000000001 R12: ffff88807fa79d80 R13: 0000000000000000 R14: 00000000ffffffff R15: ffff88807fa7a858 lock_is_held include/linux/lockdep.h:279 [inline] rcu_read_lock_sched_held+0x3a/0x70 kernel/rcu/update.c:125 trace_lock_release include/trace/events/lock.h:69 [inline] lock_release+0x560/0x780 kernel/locking/lockdep.c:5676 rcu_lock_release include/linux/rcupdate.h:274 [inline] rcu_read_unlock include/linux/rcupdate.h:728 [inline] xa_get_order+0x20c/0x390 lib/xarray.c:1787 __filemap_add_folio+0x33b/0x1660 mm/filemap.c:872 filemap_add_folio+0xab/0x1d0 mm/filemap.c:959 __filemap_get_folio+0x3c2/0xf00 mm/filemap.c:2003 pagecache_get_page+0x2e/0x290 mm/folio-compat.c:126 ext4_da_write_begin+0x3f9/0xaf0 fs/ext4/inode.c:2977 generic_perform_write+0x244/0x560 mm/filemap.c:3769 ext4_buffered_write_iter+0x15b/0x330 fs/ext4/file.c:270 ext4_file_write_iter+0x43c/0x1520 fs/ext4/file.c:679 call_write_iter include/linux/fs.h:2058 [inline] new_sync_write+0x38a/0x560 fs/read_write.c:504 vfs_write+0x7c0/0xac0 fs/read_write.c:591 ksys_write+0x127/0x250 fs/read_write.c:644 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x46/0xb0 RIP: 0033:0x7fe26f489109 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fe2705ed168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fe26f59c030 RCX: 00007fe26f489109 RDX: 000000006db6e559 RSI: 0000000020000080 RDI: 0000000000000006 RBP: 00007fe26f4e30ad R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffcfcb1f05f R14: 00007fe2705ed300 R15: 0000000000022000 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fe2705ed168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fe26f59c030 RCX: 00007fe26f489109 RDX: 000000006db6e559 RSI: 0000000020000080 RDI: 0000000000000006 RBP: 00007fe26f4e30ad R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffcfcb1f05f R14: 00007fe2705ed300 R15: 0000000000022000 ---------------- Code disassembly (best guess), 1 bytes skipped: 0: ff 65 0f jmpq *0xf(%rbp) 3: c1 05 84 93 8b 76 83 roll $0x83,0x768b9384(%rip) # 0x768b938e a: f8 clc b: 01 75 29 add %esi,0x29(%rbp) e: 9c pushfq f: 58 pop %rax 10: f6 c4 02 test $0x2,%ah 13: 75 3d jne 0x52 15: 48 f7 04 24 00 02 00 testq $0x200,(%rsp) 1c: 00 1d: 74 01 je 0x20 1f: fb sti 20: 48 83 c4 08 add $0x8,%rsp 24: 44 89 e8 mov %r13d,%eax 27: 5b pop %rbx 28: 5d pop %rbp * 29: 41 5c pop %r12 <-- trapping instruction 2b: 41 5d pop %r13 2d: 41 5e pop %r14 2f: 41 5f pop %r15 31: c3 retq 32: 45 31 ed xor %r13d,%r13d 35: eb b9 jmp 0xfffffff0 37: 0f 0b ud2 39: 48 rex.W 3a: c7 .byte 0xc7 3b: c7 .byte 0xc7 3c: 00 79 cc add %bh,-0x34(%rcx)