------------[ cut here ]------------ WARNING: CPU: 1 PID: 6028 at net/ipv4/af_inet.c:154 inet_sock_destruct+0x56c/0x664 net/ipv4/af_inet.c:154 Modules linked in: CPU: 1 PID: 6028 Comm: syz-executor.1 Not tainted 6.3.0-rc7-syzkaller-g14f8db1c0f9a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : inet_sock_destruct+0x56c/0x664 net/ipv4/af_inet.c:154 lr : inet_sock_destruct+0x56c/0x664 net/ipv4/af_inet.c:154 sp : ffff800008017ad0 x29: ffff800008017ad0 x28: 1fffe00019befa39 x27: dfff800000000000 x26: 1fffe0002a60795c x25: dfff800000000000 x24: 1fffe0002a607932 x23: 1fffe0002a607935 x22: 0000000000000007 x21: 0000000000000000 x20: 00000000ffff9000 x19: ffff00015303c980 x18: 1fffe000299b5d88 x17: 0000000000300050 x16: ffff8000084f9a5c x15: 0000000000000100 x14: 1ffff00002b900b0 x13: dfff800000000000 x12: 0000000000000001 x11: 0000000000000100 x10: 0000000000000100 x9 : 0000000000000000 x8 : ffff0000cdf7d1c0 x7 : ffff8000108f5764 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000000 x3 : ffff800010e54280 x2 : 0000000000000000 x1 : 00000000ffff9000 x0 : 0000000000000000 Call trace: inet_sock_destruct+0x56c/0x664 net/ipv4/af_inet.c:154 __sk_destruct+0x5c/0x770 net/core/sock.c:2135 sk_destruct net/core/sock.c:2183 [inline] __sk_free+0x37c/0x4e8 net/core/sock.c:2194 sk_free+0x60/0xc8 net/core/sock.c:2205 sock_put include/net/sock.h:1968 [inline] tcp_write_timer+0x1c4/0x2e4 net/ipv4/tcp_timer.c:644 call_timer_fn+0x19c/0x8cc kernel/time/timer.c:1700 expire_timers kernel/time/timer.c:1751 [inline] __run_timers+0x55c/0x734 kernel/time/timer.c:2022 run_timer_softirq+0x7c/0x114 kernel/time/timer.c:2035 __do_softirq+0x2d0/0xd54 kernel/softirq.c:571 ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:80 call_on_irq_stack+0x24/0x4c arch/arm64/kernel/entry.S:899 do_softirq_own_stack+0x20/0x2c arch/arm64/kernel/irq.c:85 invoke_softirq kernel/softirq.c:452 [inline] __irq_exit_rcu+0x28c/0x534 kernel/softirq.c:650 irq_exit_rcu+0x14/0x84 kernel/softirq.c:662 __el1_irq arch/arm64/kernel/entry-common.c:472 [inline] el1_interrupt+0x38/0x68 arch/arm64/kernel/entry-common.c:486 el1h_64_irq_handler+0x18/0x24 arch/arm64/kernel/entry-common.c:491 el1h_64_irq+0x64/0x68 arch/arm64/kernel/entry.S:587 __daif_local_irq_restore arch/arm64/include/asm/irqflags.h:182 [inline] arch_local_irq_restore arch/arm64/include/asm/irqflags.h:202 [inline] lock_acquire+0x274/0x718 kernel/locking/lockdep.c:5672 __might_fault+0xc4/0x124 mm/memory.c:5639 _copy_to_user include/linux/uaccess.h:143 [inline] copy_to_user include/linux/uaccess.h:169 [inline] copy_entries_to_user net/ipv4/netfilter/ip_tables.c:841 [inline] get_entries net/ipv4/netfilter/ip_tables.c:1024 [inline] do_ipt_get_ctl+0xebc/0x16fc net/ipv4/netfilter/ip_tables.c:1662 nf_getsockopt+0x264/0x284 net/netfilter/nf_sockopt.c:116 ip_getsockopt+0x248/0x394 net/ipv4/ip_sockglue.c:1815 tcp_getsockopt+0xcc/0xe8 net/ipv4/tcp.c:4409 sock_common_getsockopt+0xa8/0xc4 net/core/sock.c:3641 __sys_getsockopt+0x1e8/0x484 net/socket.c:2315 __do_sys_getsockopt net/socket.c:2330 [inline] __se_sys_getsockopt net/socket.c:2327 [inline] __arm64_sys_getsockopt+0xb8/0xd4 net/socket.c:2327 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x64/0x198 arch/arm64/kernel/syscall.c:193 el0_svc+0x4c/0x15c arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 irq event stamp: 7981573 hardirqs last enabled at (7981572): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:151 [inline] hardirqs last enabled at (7981572): [] _raw_spin_unlock_irqrestore+0x38/0x98 kernel/locking/spinlock.c:194 hardirqs last disabled at (7981573): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (7955626): [] spin_unlock_bh include/linux/spinlock.h:395 [inline] softirqs last enabled at (7955626): [] release_sock+0x15c/0x1b0 net/core/sock.c:3500 softirqs last disabled at (7955647): [] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:80 ---[ end trace 0000000000000000 ]---