------------[ cut here ]------------ WARNING: CPU: 0 PID: 43 at net/core/sock_map.c:1663 sock_map_destroy+0x278/0x2b8 net/core/sock_map.c:1663 Modules linked in: CPU: 0 PID: 43 Comm: kworker/u8:3 Not tainted 6.10.0-rc7-syzkaller-gc912bf709078 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 Workqueue: krdsd rds_tcp_accept_worker pstate: 00400005 (nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : sock_map_destroy+0x278/0x2b8 net/core/sock_map.c:1663 lr : sock_map_destroy+0x278/0x2b8 net/core/sock_map.c:1663 sp : ffff800080006f00 x29: ffff800080006f00 x28: 1fffe0001d6ea812 x27: 000000000000004a x26: 0000000000000015 x25: dfff800000000000 x24: 1fffe0001a837005 x23: ffff80008947dc10 x22: 0000000000000005 x21: dfff800000000000 x20: ffff800094046598 x19: ffff0000d41b8000 x18: ffff0001fea8a9d0 x17: 000000000003607d x16: ffff80008054bde8 x15: 0000000000000001 x14: 1fffe0001a4bae5b x13: 0000000000000000 x12: 0000000000000000 x11: ffff60001a4bae5c x10: 0000000000ff0100 x9 : 0000000000000000 x8 : ffff0000c1b9dac0 x7 : ffff800089481a68 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000000 x3 : ffff80008947e068 x2 : 0000000000000000 x1 : ffff80008b2c14a0 x0 : ffff0000c1b9dac0 Call trace: sock_map_destroy+0x278/0x2b8 net/core/sock_map.c:1663 inet_csk_destroy_sock+0x148/0x434 net/ipv4/inet_connection_sock.c:1234 tcp_done+0x22c/0x2f0 net/ipv4/tcp.c:4545 tcp_time_wait+0x5dc/0xc08 net/ipv4/tcp_minisocks.c:362 tcp_fin+0x190/0x488 net/ipv4/tcp_input.c:4549 tcp_data_queue+0xc88/0x4ea8 net/ipv4/tcp_input.c:5238 tcp_rcv_state_process+0x15ec/0x3e2c net/ipv4/tcp_input.c:6902 tcp_v4_do_rcv+0x71c/0xc40 net/ipv4/tcp_ipv4.c:1932 tcp_v4_rcv+0x2440/0x2d58 net/ipv4/tcp_ipv4.c:2345 ip_protocol_deliver_rcu+0x1f8/0x47c net/ipv4/ip_input.c:205 ip_local_deliver_finish+0x280/0x4ec net/ipv4/ip_input.c:233 NF_HOOK+0x328/0x3d4 include/linux/netfilter.h:314 ip_local_deliver+0x120/0x194 net/ipv4/ip_input.c:254 dst_input include/net/dst.h:460 [inline] ip_rcv_finish+0x220/0x24c net/ipv4/ip_input.c:449 NF_HOOK+0x328/0x3d4 include/linux/netfilter.h:314 ip_rcv+0x7c/0x9c net/ipv4/ip_input.c:569 __netif_receive_skb_one_core net/core/dev.c:5625 [inline] __netif_receive_skb+0x18c/0x3c8 net/core/dev.c:5739 process_backlog+0x3e0/0x798 net/core/dev.c:6068 __napi_poll+0xb4/0x3fc net/core/dev.c:6722 napi_poll net/core/dev.c:6791 [inline] net_rx_action+0x604/0xe4c net/core/dev.c:6907 handle_softirqs+0x2e4/0xbfc kernel/softirq.c:554 __do_softirq+0x14/0x20 kernel/softirq.c:588 ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:81 call_on_irq_stack+0x24/0x4c arch/arm64/kernel/entry.S:889 do_softirq_own_stack+0x20/0x2c arch/arm64/kernel/irq.c:86 do_softirq+0x90/0xf8 kernel/softirq.c:455 __local_bh_enable_ip+0x288/0x44c kernel/softirq.c:382 local_bh_enable+0x28/0x34 include/linux/bottom_half.h:33 rcu_read_unlock_bh include/linux/rcupdate.h:851 [inline] __dev_queue_xmit+0x184c/0x33f4 net/core/dev.c:4420 dev_queue_xmit include/linux/netdevice.h:3095 [inline] neigh_hh_output include/net/neighbour.h:526 [inline] neigh_output include/net/neighbour.h:540 [inline] ip_finish_output2+0xdd8/0x13b4 net/ipv4/ip_output.c:235 __ip_finish_output+0x1b0/0x458 ip_finish_output+0x44/0x2e4 net/ipv4/ip_output.c:323 NF_HOOK_COND include/linux/netfilter.h:303 [inline] ip_output+0x1a8/0x21c net/ipv4/ip_output.c:433 dst_output include/net/dst.h:450 [inline] ip_local_out net/ipv4/ip_output.c:129 [inline] __ip_queue_xmit+0xe10/0x1874 net/ipv4/ip_output.c:535 ip_queue_xmit+0x5c/0x78 net/ipv4/ip_output.c:549 __tcp_transmit_skb+0x1930/0x34a0 net/ipv4/tcp_output.c:1466 tcp_transmit_skb net/ipv4/tcp_output.c:1484 [inline] tcp_write_xmit+0x1408/0x5220 net/ipv4/tcp_output.c:2829 __tcp_push_pending_frames net/ipv4/tcp_output.c:3014 [inline] tcp_send_fin+0x584/0xb08 net/ipv4/tcp_output.c:3618 __tcp_close+0xa94/0xf9c net/ipv4/tcp.c:2868 tcp_close+0x38/0x144 net/ipv4/tcp.c:2959 inet_release+0x160/0x1d0 net/ipv4/af_inet.c:437 inet6_release+0x5c/0x78 net/ipv6/af_inet6.c:489 __sock_release net/socket.c:659 [inline] sock_release+0x84/0x140 net/socket.c:687 rds_tcp_accept_one+0x160/0x9e8 net/rds/tcp_listen.c:234 rds_tcp_accept_worker+0x44/0xb4 net/rds/tcp.c:531 process_one_work+0x79c/0x15b8 kernel/workqueue.c:3248 process_scheduled_works kernel/workqueue.c:3329 [inline] worker_thread+0x938/0xecc kernel/workqueue.c:3409 kthread+0x288/0x310 kernel/kthread.c:389 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:860 irq event stamp: 1098413 hardirqs last enabled at (1098412): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:151 [inline] hardirqs last enabled at (1098412): [] _raw_spin_unlock_irqrestore+0x38/0x98 kernel/locking/spinlock.c:194 hardirqs last disabled at (1098413): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:470 softirqs last enabled at (1098310): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32 softirqs last disabled at (1098311): [] __do_softirq+0x14/0x20 kernel/softirq.c:588 ---[ end trace 0000000000000000 ]---