syzbot


KCSAN: data-race in __inet_lookup_established / inet_put_port (5)

Status: internal: reported on 2026/02/16 07:00
Subsystems: net
[Documentation on labels]
Fix commit: 29252397bcc1 inet: annotate data-races around isk->inet_num
Patched on: [ci-qemu-gce-upstream-auto ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-mte ci-snapshot-upstream-root ci-upstream-gce-leak ci-upstream-kasan-badwrites-root ci-upstream-kasan-gce ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-kmsan-gce-386-root ci-upstream-linux-next-kasan-gce-root ci-upstream-net-this-kasan-gce ci-upstream-rust-kasan-gce ci2-upstream-kcsan-gce], missing on: [ci-qemu-native-arm64-kvm ci-qemu2-arm64-compat ci-qemu2-riscv64 ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-arm64 ci-upstream-kasan-gce-386 ci-upstream-kmsan-gce-root ci-upstream-net-kasan-gce ci2-upstream-fs ci2-upstream-usb]
First crash: 18d, last: 4d21h
✨ AI Jobs (2)
ID Workflow Result Correct Bug Created Started Finished Revision Error
270c7f2e-f9fa-4f7f-893a-0daed13d1846 repro KCSAN: data-race in __inet_lookup_established / inet_put_port (5) 2026/03/06 02:54 2026/03/06 02:54 2026/03/06 03:01 31e9c887f7dc24e04b3ca70d0d54fc34141844b0
a648c79b-7b55-47bd-ad5a-0cd8fcc3aa91 assessment-kcsan Benign: ✅  Confident: ✅  KCSAN: data-race in __inet_lookup_established / inet_put_port (5) 2026/02/23 14:31 2026/02/23 14:31 2026/02/23 14:36 305c0ec5cd886e2d13738e28e1b2df9b0ec20fc9
Similar bugs (4)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __inet_lookup_established / inet_put_port (4) net 6 1 857d 857d 0/29 auto-obsoleted due to no activity on 2023/12/05 17:09
upstream KCSAN: data-race in __inet_lookup_established / inet_put_port (2) net 6 1 1451d 1438d 0/29 auto-closed as invalid on 2022/04/20 06:18
upstream KCSAN: data-race in __inet_lookup_established / inet_put_port (3) net 6 2 959d 980d 0/29 auto-obsoleted due to no activity on 2023/08/25 03:00
upstream KCSAN: data-race in __inet_lookup_established / inet_put_port net 6 1 1561d 1561d 0/29 auto-closed as invalid on 2021/12/31 18:59

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __inet_lookup_established / inet_put_port

write to 0xffff88810e14000e of 2 bytes by task 5222 on cpu 1:
 __inet_put_port net/ipv4/inet_hashtables.c:227 [inline]
 inet_put_port+0x197/0x640 net/ipv4/inet_hashtables.c:247
 tcp_set_state net/ipv4/tcp.c:3053 [inline]
 tcp_done+0x1af/0x390 net/ipv4/tcp.c:5072
 tcp_done_with_error net/ipv4/tcp_input.c:4897 [inline]
 tcp_reset+0xc7/0x1d0 net/ipv4/tcp_input.c:4930
 tcp_rcv_state_process+0x1cc4/0x21a0 net/ipv4/tcp_input.c:7425
 tcp_v4_do_rcv+0x5fe/0xa30 net/ipv4/tcp_ipv4.c:1909
 sk_backlog_rcv include/net/sock.h:1185 [inline]
 __release_sock+0x15e/0x2f0 net/core/sock.c:3213
 __tcp_close+0x7c8/0x1130 net/ipv4/tcp.c:3271
 tcp_close+0x28/0xd0 net/ipv4/tcp.c:3349
 inet_release+0xcd/0xf0 net/ipv4/af_inet.c:437
 inet6_release+0x3e/0x60 net/ipv6/af_inet6.c:487
 __sock_release net/socket.c:662 [inline]
 sock_release+0x4b/0xe0 net/socket.c:690
 rds_tcp_accept_one+0x334/0x8a0 net/rds/tcp_listen.c:341
 rds_tcp_accept_worker+0x1a/0x60 net/rds/tcp.c:524
 process_one_work kernel/workqueue.c:3275 [inline]
 process_scheduled_works+0x4de/0x9e0 kernel/workqueue.c:3358
 worker_thread+0x581/0x770 kernel/workqueue.c:3439
 kthread+0x22a/0x280 kernel/kthread.c:467
 ret_from_fork+0x150/0x360 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245

read to 0xffff88810e14000c of 4 bytes by interrupt on cpu 0:
 inet_match include/net/inet_hashtables.h:348 [inline]
 __inet_lookup_established+0x3a5/0x520 net/ipv4/inet_hashtables.c:552
 __inet_lookup include/net/inet_hashtables.h:405 [inline]
 __inet_lookup_skb include/net/inet_hashtables.h:490 [inline]
 tcp_v4_rcv+0x984/0x1db0 net/ipv4/tcp_ipv4.c:2193
 ip_protocol_deliver_rcu+0x395/0x790 net/ipv4/ip_input.c:207
 ip_local_deliver_finish+0x1fc/0x2f0 net/ipv4/ip_input.c:241
 NF_HOOK include/linux/netfilter.h:318 [inline]
 ip_local_deliver+0xe8/0x1e0 net/ipv4/ip_input.c:262
 dst_input include/net/dst.h:480 [inline]
 ip_rcv_finish+0x194/0x1c0 net/ipv4/ip_input.c:453
 NF_HOOK include/linux/netfilter.h:318 [inline]
 ip_rcv+0x62/0x160 net/ipv4/ip_input.c:573
 __netif_receive_skb_one_core net/core/dev.c:6167 [inline]
 __netif_receive_skb net/core/dev.c:6280 [inline]
 process_backlog+0x341/0x670 net/core/dev.c:6631
 __napi_poll+0x61/0x330 net/core/dev.c:7695
 napi_poll net/core/dev.c:7758 [inline]
 net_rx_action+0x452/0x930 net/core/dev.c:7910
 handle_softirqs+0xb9/0x2a0 kernel/softirq.c:622
 do_softirq+0x45/0x60 kernel/softirq.c:523
 __local_bh_enable_ip+0x70/0x80 kernel/softirq.c:450
 local_bh_enable include/linux/bottom_half.h:33 [inline]
 rcu_read_unlock_bh include/linux/rcupdate.h:924 [inline]
 __dev_queue_xmit+0x136c/0x1f20 net/core/dev.c:4876
 dev_queue_xmit include/linux/netdevice.h:3384 [inline]
 neigh_hh_output include/net/neighbour.h:540 [inline]
 neigh_output include/net/neighbour.h:554 [inline]
 ip_finish_output2+0x705/0x8c0 net/ipv4/ip_output.c:237
 __ip_finish_output net/ipv4/ip_output.c:-1 [inline]
 ip_finish_output+0x114/0x2a0 net/ipv4/ip_output.c:325
 NF_HOOK_COND include/linux/netfilter.h:307 [inline]
 ip_output+0xbd/0x1c0 net/ipv4/ip_output.c:438
 dst_output include/net/dst.h:470 [inline]
 ip_local_out net/ipv4/ip_output.c:131 [inline]
 __ip_queue_xmit+0xbb0/0xbf0 net/ipv4/ip_output.c:534
 ip_queue_xmit+0x39/0x50 net/ipv4/ip_output.c:548
 __tcp_transmit_skb+0x1af2/0x1f10 net/ipv4/tcp_output.c:1693
 tcp_transmit_skb net/ipv4/tcp_output.c:1711 [inline]
 tcp_write_xmit+0x1597/0x3640 net/ipv4/tcp_output.c:3064
 __tcp_push_pending_frames+0x6d/0x1b0 net/ipv4/tcp_output.c:3247
 tcp_push+0x311/0x330 net/ipv4/tcp.c:782
 tcp_sendmsg_locked+0x25c5/0x2de0 net/ipv4/tcp.c:1427
 tcp_sendmsg+0x2f/0x50 net/ipv4/tcp.c:1464
 inet_sendmsg+0x76/0xd0 net/ipv4/af_inet.c:859
 sock_sendmsg_nosec net/socket.c:727 [inline]
 __sock_sendmsg net/socket.c:742 [inline]
 sock_sendmsg+0x1f4/0x280 net/socket.c:765
 rds_tcp_xmit+0x427/0x670 net/rds/tcp_send.c:125
 rds_send_xmit+0x7b8/0x16f0 net/rds/send.c:425
 rds_send_worker+0x44/0x1b0 net/rds/threads.c:200
 process_one_work kernel/workqueue.c:3275 [inline]
 process_scheduled_works+0x4de/0x9e0 kernel/workqueue.c:3358
 worker_thread+0x581/0x770 kernel/workqueue.c:3439
 kthread+0x22a/0x280 kernel/kthread.c:467
 ret_from_fork+0x150/0x360 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245

value changed: 0x400128cb -> 0x000028cb

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 1432 Comm: kworker/u8:7 Tainted: G        W           syzkaller #0 PREEMPT(full) 
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026
Workqueue: krds_cp_wq#12/0 rds_send_worker
==================================================================

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/03/02 05:04 upstream 39c633261414 43249bac .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __inet_lookup_established / inet_put_port
2026/02/23 10:37 upstream 6de23f81a5e0 6beca497 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __inet_lookup_established / inet_put_port
2026/02/23 02:27 upstream 32a92f8c8932 6e7b5511 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __inet_lookup_established / inet_put_port
2026/02/19 14:31 upstream 956b9cbd7f15 746545b8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __inet_lookup_established / inet_put_port
2026/02/16 06:59 upstream 26a4cfaff82a 1e62d198 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __inet_lookup_established / inet_put_port
* Struck through repros no longer work on HEAD.