syzbot


KCSAN: data-race in tcp_poll / tcp_reset (2)

Status: auto-closed as invalid on 2022/03/03 18:58
Subsystems: net
[Documentation on labels]
First crash: 1097d, last: 1097d
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) net 1 843d 843d 0/28 auto-obsoleted due to no activity on 2022/11/12 09:41
upstream KCSAN: data-race in tcp_poll / tcp_reset net 1 1114d 1114d 0/28 closed as invalid on 2022/01/14 13:49
upstream KCSAN: data-race in tcp_poll / tcp_reset (3) net 2 1033d 1061d 0/28 auto-closed as invalid on 2022/05/06 20:08

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

write to 0xffff888102c7a268 of 4 bytes by interrupt on cpu 0:
 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+0x2087/0x2720 net/ipv4/tcp_ipv4.c:2119
 ip_protocol_deliver_rcu+0x2a8/0x570 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:461 [inline]
 ip_rcv_finish net/ipv4/ip_input.c:429 [inline]
 NF_HOOK include/linux/netfilter.h:307 [inline]
 ip_rcv+0x1b1/0x260 net/ipv4/ip_input.c:540
 __netif_receive_skb_one_core net/core/dev.c:5351 [inline]
 __netif_receive_skb+0x8b/0x1b0 net/core/dev.c:5465
 process_backlog+0x23f/0x3e0 net/core/dev.c:5797
 __napi_poll+0x65/0x3f0 net/core/dev.c:6365
 napi_poll net/core/dev.c:6432 [inline]
 net_rx_action+0x29e/0x650 net/core/dev.c:6519
 __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+0x1bf/0x1e0 kernel/kthread.c:377
 ret_from_fork+0x1f/0x30

read to 0xffff888102c7a268 of 4 bytes by task 22437 on cpu 1:
 tcp_poll+0x4a6/0x580 net/ipv4/tcp.c:588
 sock_poll+0x23e/0x260 net/socket.c:1306
 vfs_poll include/linux/poll.h:88 [inline]
 io_poll_check_events+0x1ff/0x530 fs/io_uring.c:5532
 io_apoll_task_func+0x33/0x800 fs/io_uring.c:5591
 handle_tw_list fs/io_uring.c:2328 [inline]
 tctx_task_work+0x8b2/0xc90 fs/io_uring.c:2362
 task_work_run+0x8e/0x110 kernel/task_work.c:164
 tracehook_notify_signal include/linux/tracehook.h:213 [inline]
 handle_signal_work kernel/entry/common.c:146 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:172 [inline]
 exit_to_user_mode_prepare+0x102/0x190 kernel/entry/common.c:207
 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline]
 syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:300
 do_syscall_64+0x50/0xd0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x00000000 -> 0x0000006f

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 22437 Comm: syz-executor.1 Not tainted 5.17.0-rc1-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
2022/01/27 18:53 upstream 626b2dda7651 64a8e201 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in tcp_poll / tcp_reset
* Struck through repros no longer work on HEAD.