------------[ cut here ]------------
WARNING: CPU: 1 PID: 3781 at net/ipv4/tcp_timer.c:476 tcp_retransmit_timer+0x19c5/0x33f0 net/ipv4/tcp_timer.c:476
Modules linked in:
CPU: 1 PID: 3781 Comm: syz-executor.0 Not tainted 5.19.0-rc7-syzkaller-00182-g9b134b1694ec #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022
RIP: 0010:tcp_retransmit_timer+0x19c5/0x33f0 net/ipv4/tcp_timer.c:476
Code: 25 18 00 00 8b 95 b4 07 00 00 48 89 ef 8b 74 24 10 e8 af c3 ff ff 41 89 c5 0f b6 c0 89 44 24 10 e9 49 f2 ff ff e8 9b 8b 99 f9 <0f> 0b e9 3c eb ff ff e8 8f 8b 99 f9 48 8b 9c 24 c8 00 00 00 48 85
RSP: 0018:ffffc900001e0b48 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000100
RDX: ffff888024ff1d80 RSI: ffffffff87e0e0c5 RDI: ffff888016ef2680
RBP: ffff888016ef2400 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000001 R12: ffff888016ef2530
R13: ffffffff8ba0f200 R14: 0000000000000000 R15: ffff888016ef2430
FS: 00007f597d73d700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020019000 CR3: 000000001c14c000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
tcp_write_timer_handler+0x5e6/0xbc0 net/ipv4/tcp_timer.c:626
tcp_write_timer+0xa2/0x2b0 net/ipv4/tcp_timer.c:646
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+0x16/0x20 arch/x86/include/asm/idtentry.h:649
RIP: 0010:preempt_schedule_irq+0x49/0x90 kernel/sched/core.c:6766
Code: 55 53 65 48 8b 1c 25 80 6f 02 00 48 89 dd 48 c1 ed 03 48 01 c5 bf 01 00 00 00 e8 92 81 d8 f7 e8 0d 48 07 f8 fb bf 01 00 00 00 b2 a7 ff ff 9c 58 fa f6 c4 02 75 27 bf 01 00 00 00 e8 90 68 d8
RSP: 0018:ffffc9000380f498 EFLAGS: 00000202
RAX: 00000000000002c7 RBX: ffff888024ff1d80 RCX: 1ffffffff20d9a6e
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001
RBP: ffffed10049fe3b0 R08: 0000000000000001 R09: ffffffff906849c7
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
irqentry_exit+0x31/0x80 kernel/entry/common.c:428
asm_sysvec_reschedule_ipi+0x16/0x20 arch/x86/include/asm/idtentry.h:654
RIP: 0010:dump_stack_lvl+0x12c/0x134 lib/dump_stack.c:108
Code: 48 85 ed 74 0a e8 dd b5 36 f8 e8 b8 ee 33 00 e8 d3 b5 36 f8 31 ff 48 89 de e8 29 b2 36 f8 48 85 db 74 06 e8 bf b5 36 f8 fb 5b <5d> 41 5c e9 b5 b5 36 f8 e8 b0 b5 36 f8 48 c7 c7 60 c8 2b 8a e9 bb
RSP: 0018:ffffc9000380f560 EFLAGS: 00000293
RAX: 0000000000000000 RBX: ffffffff8c6eee00 RCX: 0000000000000000
RDX: ffff888024ff1d80 RSI: ffffffff8943b6a1 RDI: 0000000000000007
RBP: 0000000000000000 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000000200 R11: 0000000000000001 R12: ffffffff8a2bc860
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
fail_dump lib/fault-inject.c:55 [inline]
should_fail.cold+0x5/0xa lib/fault-inject.c:149
copyout lib/iov_iter.c:151 [inline]
_copy_to_iter+0x39f/0x1890 lib/iov_iter.c:667
copy_to_iter include/linux/uio.h:162 [inline]
simple_copy_to_iter+0x4c/0x70 net/core/datagram.c:516
__skb_datagram_iter+0x4a5/0x770 net/core/datagram.c:445
skb_copy_datagram_iter+0xa2/0x2c0 net/core/datagram.c:530
skb_copy_datagram_msg include/linux/skbuff.h:4004 [inline]
tcp_recvmsg_locked+0xe77/0x22b0 net/ipv4/tcp.c:2477
tcp_recvmsg+0x112/0x620 net/ipv4/tcp.c:2555
inet_recvmsg+0x115/0x5e0 net/ipv4/af_inet.c:850
sock_recvmsg_nosec net/socket.c:995 [inline]
sock_recvmsg net/socket.c:1013 [inline]
sock_recvmsg net/socket.c:1009 [inline]
____sys_recvmsg+0x2c7/0x600 net/socket.c:2707
___sys_recvmsg+0x127/0x200 net/socket.c:2749
__sys_recvmsg net/socket.c:2779 [inline]
__do_sys_recvmsg net/socket.c:2789 [inline]
__se_sys_recvmsg net/socket.c:2786 [inline]
__x64_sys_recvmsg+0x12f/0x220 net/socket.c:2786
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+0x63/0xcd
RIP: 0033:0x7f597c689209
================================
WARNING: inconsistent lock state
5.19.0-rc7-syzkaller-00182-g9b134b1694ec #0 Not tainted
--------------------------------
inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage.
syz-executor.0/3781 [HC0[0]:SC1[1]:HE1:SE0] takes:
ffffffff8beb8f38 (vmap_area_lock){+.?.}-{2:2}, at: spin_lock include/linux/spinlock.h:349 [inline]
ffffffff8beb8f38 (vmap_area_lock){+.?.}-{2:2}, at: find_vmap_area+0x1c/0x130 mm/vmalloc.c:1805
{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:1199
start_kernel+0x3cf/0x48f init/main.c:1098
secondary_startup_64_no_verify+0xce/0xdb
irq event stamp: 2448
hardirqs last enabled at (2448): [] __up_console_sem+0xae/0xc0 kernel/printk/printk.c:264
hardirqs last disabled at (2447): [] __up_console_sem+0x93/0xc0 kernel/printk/printk.c:262
softirqs last enabled at (700): [] invoke_softirq kernel/softirq.c:445 [inline]
softirqs last enabled at (700): [] __irq_exit_rcu+0x123/0x180 kernel/softirq.c:650
softirqs last disabled at (715): [] invoke_softirq kernel/softirq.c:445 [inline]
softirqs last disabled at (715): [] __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 ***
3 locks held by syz-executor.0/3781:
#0: ffff888016ef3d30 (sk_lock-AF_INET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1677 [inline]
#0: ffff888016ef3d30 (sk_lock-AF_INET){+.+.}-{0:0}, at: sk_wait_data+0x20a/0x450 net/core/sock.c:2891
#1: ffffc900001e0d70 ((&icsk->icsk_retransmit_timer)){+.-.}-{0:0}, at: lockdep_copy_map include/linux/lockdep.h:31 [inline]
#1: ffffc900001e0d70 ((&icsk->icsk_retransmit_timer)){+.-.}-{0:0}, at: call_timer_fn+0xd5/0x6b0 kernel/time/timer.c:1464
#2: ffff888016ef24b0 (slock-AF_INET){+.-.}-{2:2}, at: spin_lock include/linux/spinlock.h:349 [inline]
#2: ffff888016ef24b0 (slock-AF_INET){+.-.}-{2:2}, at: tcp_write_timer+0x26/0x2b0 net/ipv4/tcp_timer.c:644
stack backtrace:
CPU: 1 PID: 3781 Comm: syz-executor.0 Not tainted 5.19.0-rc7-syzkaller-00182-g9b134b1694ec #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022
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+0x1c/0x130 mm/vmalloc.c:1805
check_heap_object mm/usercopy.c:176 [inline]
__check_object_size mm/usercopy.c:250 [inline]
__check_object_size+0x1f8/0x700 mm/usercopy.c:212
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+0xe2/0x190 kernel/panic.c:620
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+0x16/0x20 arch/x86/include/asm/idtentry.h:568
RIP: 0010:tcp_retransmit_timer+0x19c5/0x33f0 net/ipv4/tcp_timer.c:476
Code: 25 18 00 00 8b 95 b4 07 00 00 48 89 ef 8b 74 24 10 e8 af c3 ff ff 41 89 c5 0f b6 c0 89 44 24 10 e9 49 f2 ff ff e8 9b 8b 99 f9 <0f> 0b e9 3c eb ff ff e8 8f 8b 99 f9 48 8b 9c 24 c8 00 00 00 48 85
RSP: 0018:ffffc900001e0b48 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000100
RDX: ffff888024ff1d80 RSI: ffffffff87e0e0c5 RDI: ffff888016ef2680
RBP: ffff888016ef2400 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000001 R12: ffff888016ef2530
R13: ffffffff8ba0f200 R14: 0000000000000000 R15: ffff888016ef2430
tcp_write_timer_handler+0x5e6/0xbc0 net/ipv4/tcp_timer.c:626
tcp_write_timer+0xa2/0x2b0 net/ipv4/tcp_timer.c:646
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+0x16/0x20 arch/x86/include/asm/idtentry.h:649
RIP: 0010:preempt_schedule_irq+0x49/0x90 kernel/sched/core.c:6766
Code: 55 53 65 48 8b 1c 25 80 6f 02 00 48 89 dd 48 c1 ed 03 48 01 c5 bf 01 00 00 00 e8 92 81 d8 f7 e8 0d 48 07 f8 fb bf 01 00 00 00 b2 a7 ff ff 9c 58 fa f6 c4 02 75 27 bf 01 00 00 00 e8 90 68 d8
RSP: 0018:ffffc9000380f498 EFLAGS: 00000202
RAX: 00000000000002c7 RBX: ffff888024ff1d80 RCX: 1ffffffff20d9a6e
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001
RBP: ffffed10049fe3b0 R08: 0000000000000001 R09: ffffffff906849c7
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
irqentry_exit+0x31/0x80 kernel/entry/common.c:428
asm_sysvec_reschedule_ipi+0x16/0x20 arch/x86/include/asm/idtentry.h:654
RIP: 0010:dump_stack_lvl+0x12c/0x134 lib/dump_stack.c:108
Code: 48 85 ed 74 0a e8 dd b5 36 f8 e8 b8 ee 33 00 e8 d3 b5 36 f8 31 ff 48 89 de e8 29 b2 36 f8 48 85 db 74 06 e8 bf b5 36 f8 fb 5b <5d> 41 5c e9 b5 b5 36 f8 e8 b0 b5 36 f8 48 c7 c7 60 c8 2b 8a e9 bb
RSP: 0018:ffffc9000380f560 EFLAGS: 00000293
RAX: 0000000000000000 RBX: ffffffff8c6eee00 RCX: 0000000000000000
RDX: ffff888024ff1d80 RSI: ffffffff8943b6a1 RDI: 0000000000000007
RBP: 0000000000000000 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000000200 R11: 0000000000000001 R12: ffffffff8a2bc860
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
fail_dump lib/fault-inject.c:55 [inline]
should_fail.cold+0x5/0xa lib/fault-inject.c:149
copyout lib/iov_iter.c:151 [inline]
_copy_to_iter+0x39f/0x1890 lib/iov_iter.c:667
copy_to_iter include/linux/uio.h:162 [inline]
simple_copy_to_iter+0x4c/0x70 net/core/datagram.c:516
__skb_datagram_iter+0x4a5/0x770 net/core/datagram.c:445
skb_copy_datagram_iter+0xa2/0x2c0 net/core/datagram.c:530
skb_copy_datagram_msg include/linux/skbuff.h:4004 [inline]
tcp_recvmsg_locked+0xe77/0x22b0 net/ipv4/tcp.c:2477
tcp_recvmsg+0x112/0x620 net/ipv4/tcp.c:2555
inet_recvmsg+0x115/0x5e0 net/ipv4/af_inet.c:850
sock_recvmsg_nosec net/socket.c:995 [inline]
sock_recvmsg net/socket.c:1013 [inline]
sock_recvmsg net/socket.c:1009 [inline]
____sys_recvmsg+0x2c7/0x600 net/socket.c:2707
___sys_recvmsg+0x127/0x200 net/socket.c:2749
__sys_recvmsg net/socket.c:2779 [inline]
__do_sys_recvmsg net/socket.c:2789 [inline]
__se_sys_recvmsg net/socket.c:2786 [inline]
__x64_sys_recvmsg+0x12f/0x220 net/socket.c:2786
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+0x63/0xcd
RIP: 0033:0x7f597c689209
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:00007f597d73d168 EFLAGS: 00000246 ORIG_RAX: 000000000000002f
RAX: ffffffffffffffda RBX: 00007f597c79c030 RCX: 00007f597c689209
RDX: 0000000000000700 RSI: 0000000020000580 RDI: 0000000000000003
RBP: 00007f597d73d1d0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
R13: 00007ffe2e92d7ef R14: 00007f597d73d300 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:00007f597d73d168 EFLAGS: 00000246 ORIG_RAX: 000000000000002f
RAX: ffffffffffffffda RBX: 00007f597c79c030 RCX: 00007f597c689209
RDX: 0000000000000700 RSI: 0000000020000580 RDI: 0000000000000003
RBP: 00007f597d73d1d0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
R13: 00007ffe2e92d7ef R14: 00007f597d73d300 R15: 0000000000022000
----------------
Code disassembly (best guess):
0: 55 push %rbp
1: 53 push %rbx
2: 65 48 8b 1c 25 80 6f mov %gs:0x26f80,%rbx
9: 02 00
b: 48 89 dd mov %rbx,%rbp
e: 48 c1 ed 03 shr $0x3,%rbp
12: 48 01 c5 add %rax,%rbp
15: bf 01 00 00 00 mov $0x1,%edi
1a: e8 92 81 d8 f7 callq 0xf7d881b1
1f: e8 0d 48 07 f8 callq 0xf8074831
24: fb sti
25: bf 01 00 00 00 mov $0x1,%edi
* 2a: e8 b2 a7 ff ff callq 0xffffa7e1 <-- trapping instruction
2f: 9c pushfq
30: 58 pop %rax
31: fa cli
32: f6 c4 02 test $0x2,%ah
35: 75 27 jne 0x5e
37: bf 01 00 00 00 mov $0x1,%edi
3c: e8 .byte 0xe8
3d: 90 nop
3e: 68 .byte 0x68
3f: d8 .byte 0xd8