syzbot


KCSAN: data-race in tcp_done / tcp_poll

Status: auto-closed as invalid on 2021/09/16 14:47
Subsystems: net
[Documentation on labels]
First crash: 987d, last: 987d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in tcp_done / tcp_poll (5) net 1 454d 454d 0/26 auto-obsoleted due to no activity on 2023/03/10 14:49
upstream KCSAN: data-race in tcp_done / tcp_poll (3) net 1 681d 681d 0/26 auto-closed as invalid on 2022/07/20 02:14
upstream KCSAN: data-race in tcp_done / tcp_poll (2) net 5 749d 786d 0/26 auto-closed as invalid on 2022/05/12 14:44
upstream KCSAN: data-race in tcp_done / tcp_poll (4) net 1 581d 581d 0/26 auto-obsoleted due to no activity on 2022/10/27 21:35

Sample crash report:
==================================================================
BUG: KCSAN: data-race in tcp_done / tcp_poll

write to 0xffff888100c0ebf0 of 1 bytes by interrupt on cpu 1:
 tcp_done+0x2ca/0x360 net/ipv4/tcp.c:4415
 tcp_reset+0x89/0x130 net/ipv4/tcp_input.c:4273
 tcp_rcv_synsent_state_process net/ipv4/tcp_input.c:6107 [inline]
 tcp_rcv_state_process+0xc56/0x2840 net/ipv4/tcp_input.c:6371
 tcp_v4_do_rcv+0x3e5/0x4f0 net/ipv4/tcp_ipv4.c:1716
 tcp_v4_rcv+0x217c/0x2480 net/ipv4/tcp_ipv4.c:2087
 ip_protocol_deliver_rcu+0x20e/0x410 net/ipv4/ip_input.c:204
 ip_local_deliver_finish net/ipv4/ip_input.c:231 [inline]
 NF_HOOK include/linux/netfilter.h:307 [inline]
 ip_local_deliver+0x1d1/0x290 net/ipv4/ip_input.c:252
 dst_input include/net/dst.h:458 [inline]
 ip_rcv_finish net/ipv4/ip_input.c:429 [inline]
 NF_HOOK include/linux/netfilter.h:307 [inline]
 ip_rcv+0xd8/0x170 net/ipv4/ip_input.c:540
 __netif_receive_skb_one_core net/core/dev.c:5498 [inline]
 __netif_receive_skb+0x8b/0x1b0 net/core/dev.c:5612
 process_backlog+0x23a/0x3f0 net/core/dev.c:6492
 __napi_poll+0x65/0x3a0 net/core/dev.c:7047
 napi_poll net/core/dev.c:7114 [inline]
 net_rx_action+0x29f/0x680 net/core/dev.c:7201
 __do_softirq+0x12c/0x26e kernel/softirq.c:558
 run_ksoftirqd+0x13/0x20 kernel/softirq.c:920
 smpboot_thread_fn+0x22f/0x330 kernel/smpboot.c:164
 kthread+0x262/0x280 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295

read to 0xffff888100c0ebf0 of 1 bytes by task 16005 on cpu 0:
 tcp_poll+0xf3/0x580 net/ipv4/tcp.c:549
 sock_poll+0x23e/0x260 net/socket.c:1288
 vfs_poll include/linux/poll.h:90 [inline]
 __io_arm_poll_handler+0x1af/0x5c0 fs/io_uring.c:5147
 io_arm_poll_handler+0x2e8/0x6e0 fs/io_uring.c:5221
 __io_queue_sqe+0x135/0x360 fs/io_uring.c:6483
 io_queue_sqe fs/io_uring.c:6507 [inline]
 io_submit_sqe+0x1695/0x3400 fs/io_uring.c:6662
 io_submit_sqes+0x822/0xe50 fs/io_uring.c:6778
 __do_sys_io_uring_enter fs/io_uring.c:9389 [inline]
 __se_sys_io_uring_enter+0x1c7/0xa20 fs/io_uring.c:9332
 __x64_sys_io_uring_enter+0x74/0x80 fs/io_uring.c:9332
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0x90 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x00 -> 0x03

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 16005 Comm: syz-executor.5 Not tainted 5.14.0-rc5-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/08/12 14:37 upstream 1746f4db5135 6972b106 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in tcp_done / tcp_poll
* Struck through repros no longer work on HEAD.