syzbot


KCSAN: data-race in tcp_poll / tcp_reset

Status: closed as invalid on 2022/01/14 13:49
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 322d, last: 322d
similar bugs (3):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in tcp_poll / tcp_reset (4) 1 51d 51d 0/24 auto-obsoleted due to no activity on 2022/11/12 09:41
upstream KCSAN: data-race in tcp_poll / tcp_reset (3) 2 240d 268d 0/24 auto-closed as invalid on 2022/05/06 20:08
upstream KCSAN: data-race in tcp_poll / tcp_reset (2) 1 304d 304d 0/24 auto-closed as invalid on 2022/03/03 18:58

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

write to 0xffff888130b404b0 of 4 bytes by interrupt on cpu 1:
 tcp_reset+0xaf/0x1b0
 tcp_rcv_synsent_state_process+0x80c/0x14e0 net/ipv4/tcp_input.c:6156
 tcp_rcv_state_process+0x16c/0x1250 net/ipv4/tcp_input.c:6420
 tcp_v4_do_rcv+0x42c/0x590 net/ipv4/tcp_ipv4.c:1741
 tcp_v4_rcv+0x2080/0x26d0 net/ipv4/tcp_ipv4.c:2113
 ip_protocol_deliver_rcu+0x291/0x540 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+0x1d6/0x2a0 net/ipv4/ip_input.c:252
 dst_input include/net/dst.h:460 [inline]
 ip_rcv_finish net/ipv4/ip_input.c:429 [inline]
 NF_HOOK include/linux/netfilter.h:307 [inline]
 ip_rcv+0x1a6/0x250 net/ipv4/ip_input.c:540
 __netif_receive_skb_one_core net/core/dev.c:5465 [inline]
 __netif_receive_skb+0x8b/0x1b0 net/core/dev.c:5579
 process_backlog+0x23f/0x3e0 net/core/dev.c:6455
 __napi_poll+0x65/0x3f0 net/core/dev.c:7023
 napi_poll net/core/dev.c:7090 [inline]
 net_rx_action+0x29e/0x650 net/core/dev.c:7177
 __do_softirq+0x158/0x2de kernel/softirq.c:558
 run_ksoftirqd+0x1f/0x30 kernel/softirq.c:921
 smpboot_thread_fn+0x308/0x4a0 kernel/smpboot.c:164
 kthread+0x2c7/0x2e0 kernel/kthread.c:327
 ret_from_fork+0x1f/0x30

read to 0xffff888130b404b0 of 4 bytes by task 6822 on cpu 0:
 tcp_poll+0x510/0x580 net/ipv4/tcp.c:588
 sock_poll+0x23e/0x260 net/socket.c:1302
 vfs_poll include/linux/poll.h:90 [inline]
 __io_arm_poll_handler+0x1a8/0x780 fs/io_uring.c:5621
 io_arm_poll_handler+0x25e/0x3d0 fs/io_uring.c:5687
 io_queue_sqe_arm_apoll fs/io_uring.c:6999 [inline]
 __io_queue_sqe+0x16b/0x440 fs/io_uring.c:7037
 io_queue_sqe fs/io_uring.c:7064 [inline]
 io_submit_sqe+0x77a/0x47d3 fs/io_uring.c:7267
 io_submit_sqes+0x25d/0x670 fs/io_uring.c:7373
 __do_sys_io_uring_enter fs/io_uring.c:10076 [inline]
 __se_sys_io_uring_enter+0x212/0xb00 fs/io_uring.c:10018
 __x64_sys_io_uring_enter+0x74/0x80 fs/io_uring.c:10018
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x00000000 -> 0x0000006f

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

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/01/10 00:04 upstream df0cc57e057f 2ca0d385 .config log report info KCSAN: data-race in tcp_poll / tcp_reset
* Struck through repros no longer work on HEAD.