================================================================== BUG: KCSAN: data-race in __inet_lookup_established / inet_put_port write to 0xffff888108d3a18e of 2 bytes by task 26263 on cpu 0: __inet_put_port net/ipv4/inet_hashtables.c:190 [inline] inet_put_port+0x219/0x3e0 net/ipv4/inet_hashtables.c:209 tcp_set_state net/ipv4/tcp.c:2635 [inline] __tcp_close+0x4c2/0xfa0 net/ipv4/tcp.c:2794 tcp_close+0x26/0x90 net/ipv4/tcp.c:2919 inet_release+0xc9/0xf0 net/ipv4/af_inet.c:427 inet6_release+0x3e/0x50 net/ipv6/af_inet6.c:480 __sock_release net/socket.c:654 [inline] sock_release+0x44/0xe0 net/socket.c:682 rds_tcp_accept_one+0xd4/0x680 net/rds/tcp_listen.c:230 rds_tcp_accept_worker+0x25/0x70 net/rds/tcp.c:532 process_one_work+0x434/0x860 kernel/workqueue.c:2597 worker_thread+0x5f2/0xa10 kernel/workqueue.c:2748 kthread+0x1d7/0x210 kernel/kthread.c:389 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 read to 0xffff888108d3a18c of 4 bytes by interrupt on cpu 1: inet_match include/net/inet_hashtables.h:364 [inline] __inet_lookup_established+0x34d/0x480 net/ipv4/inet_hashtables.c:495 __inet_lookup include/net/inet_hashtables.h:403 [inline] __inet_lookup_skb include/net/inet_hashtables.h:445 [inline] tcp_v4_rcv+0x95f/0x1b70 net/ipv4/tcp_ipv4.c:2022 ip_protocol_deliver_rcu+0x356/0x6d0 net/ipv4/ip_input.c:205 ip_local_deliver_finish+0x13c/0x1a0 net/ipv4/ip_input.c:233 NF_HOOK include/linux/netfilter.h:303 [inline] ip_local_deliver+0xec/0x1c0 net/ipv4/ip_input.c:254 dst_input include/net/dst.h:468 [inline] ip_rcv_finish net/ipv4/ip_input.c:449 [inline] NF_HOOK include/linux/netfilter.h:303 [inline] ip_rcv+0x197/0x270 net/ipv4/ip_input.c:569 __netif_receive_skb_one_core net/core/dev.c:5452 [inline] __netif_receive_skb+0x90/0x1b0 net/core/dev.c:5566 process_backlog+0x21f/0x380 net/core/dev.c:5894 __napi_poll+0x60/0x3b0 net/core/dev.c:6460 napi_poll net/core/dev.c:6527 [inline] net_rx_action+0x32b/0x750 net/core/dev.c:6660 __do_softirq+0xc1/0x265 kernel/softirq.c:553 do_softirq+0x5e/0x90 kernel/softirq.c:454 __local_bh_enable_ip+0x64/0x70 kernel/softirq.c:381 __raw_spin_unlock_bh include/linux/spinlock_api_smp.h:167 [inline] _raw_spin_unlock_bh+0x36/0x40 kernel/locking/spinlock.c:210 spin_unlock_bh include/linux/spinlock.h:395 [inline] batadv_nc_purge_paths+0x217/0x260 net/batman-adv/network-coding.c:471 batadv_nc_worker+0x3db/0xac0 net/batman-adv/network-coding.c:720 process_one_work+0x434/0x860 kernel/workqueue.c:2597 worker_thread+0x5f2/0xa10 kernel/workqueue.c:2748 kthread+0x1d7/0x210 kernel/kthread.c:389 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 value changed: 0x400171c9 -> 0x000071c9 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 26190 Comm: kworker/u4:20 Tainted: G W 6.4.0-syzkaller-07208-gc6b0271053e7 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 Workqueue: bat_events batadv_nc_worker ==================================================================