syzbot


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

Status: auto-closed as invalid on 2022/05/12 14:44
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 279d, last: 239d
similar bugs (3):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in tcp_done / tcp_poll (3) 1 171d 171d 0/24 auto-closed as invalid on 2022/07/20 02:14
upstream KCSAN: data-race in tcp_done / tcp_poll 1 477d 477d 0/24 auto-closed as invalid on 2021/09/16 14:47
upstream KCSAN: data-race in tcp_done / tcp_poll (4) 1 71d 71d 0/24 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 0xffff8881378a052a of 1 bytes by interrupt on cpu 0:
 tcp_done+0x2ca/0x360 net/ipv4/tcp.c:4524
 tcp_reset+0xc6/0x1b0 net/ipv4/tcp_input.c:4314
 tcp_rcv_synsent_state_process+0x7e4/0xea0 net/ipv4/tcp_input.c:6180
 tcp_rcv_state_process+0x16b/0xf30 net/ipv4/tcp_input.c:6444
 tcp_v4_do_rcv+0x434/0x5a0 net/ipv4/tcp_ipv4.c:1683
 tcp_v4_rcv+0x172d/0x19f0 net/ipv4/tcp_ipv4.c:2074
 ip_protocol_deliver_rcu+0x25a/0x4d0 net/ipv4/ip_input.c:205
 ip_local_deliver_finish+0x126/0x160 net/ipv4/ip_input.c:233
 NF_HOOK include/linux/netfilter.h:307 [inline]
 ip_local_deliver+0x100/0x1b0 net/ipv4/ip_input.c:254
 dst_input include/net/dst.h:461 [inline]
 ip_rcv_finish net/ipv4/ip_input.c:437 [inline]
 NF_HOOK include/linux/netfilter.h:307 [inline]
 ip_rcv+0x1b1/0x260 net/ipv4/ip_input.c:556
 __netif_receive_skb_one_core net/core/dev.c:5405 [inline]
 __netif_receive_skb+0x8b/0x1b0 net/core/dev.c:5519
 process_backlog+0x23f/0x3b0 net/core/dev.c:5847
 __napi_poll+0x65/0x390 net/core/dev.c:6413
 napi_poll net/core/dev.c:6480 [inline]
 net_rx_action+0x29e/0x650 net/core/dev.c:6567
 __do_softirq+0x158/0x2e3 kernel/softirq.c:558
 __irq_exit_rcu kernel/softirq.c:637 [inline]
 irq_exit_rcu+0x41/0x70 kernel/softirq.c:649
 sysvec_apic_timer_interrupt+0x8d/0xb0 arch/x86/kernel/apic/apic.c:1097
 asm_sysvec_apic_timer_interrupt+0x12/0x20
 finish_task_switch+0xfa/0x240 kernel/sched/core.c:4953
 context_switch kernel/sched/core.c:5076 [inline]
 __schedule+0x514/0x6c0 kernel/sched/core.c:6382
 schedule_idle+0x17/0x30 kernel/sched/core.c:6482
 do_idle+0x22c/0x250 kernel/sched/idle.c:331
 cpu_startup_entry+0x15/0x20 kernel/sched/idle.c:400
 rest_init+0xed/0xf0 init/main.c:726
 arch_call_rest_init+0xa/0xb init/main.c:882
 start_kernel+0x5e4/0x669 init/main.c:1140
 secondary_startup_64_no_verify+0xc4/0xcb

read to 0xffff8881378a052a of 1 bytes by task 14364 on cpu 1:
 tcp_poll+0xf7/0x560 net/ipv4/tcp.c:539
 sock_poll+0x23e/0x260 net/socket.c:1306
 vfs_poll include/linux/poll.h:88 [inline]
 io_poll_check_events+0x212/0x450 fs/io_uring.c:5997
 io_apoll_task_func+0x33/0x330 fs/io_uring.c:6057
 handle_tw_list fs/io_uring.c:2509 [inline]
 tctx_task_work+0x7fb/0xa10 fs/io_uring.c:2543
 task_work_run+0x8e/0x110 kernel/task_work.c:164
 get_signal+0xeca/0x1020 kernel/signal.c:2641
 arch_do_signal_or_restart+0x87/0x2d0 arch/x86/kernel/signal.c:867
 exit_to_user_mode_loop+0x78/0x130 kernel/entry/common.c:166
 exit_to_user_mode_prepare kernel/entry/common.c:201 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline]
 syscall_exit_to_user_mode+0x6a/0x90 kernel/entry/common.c:294
 do_syscall_64+0x37/0x70 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x00 -> 0x03

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 14364 Comm: syz-executor.1 Not tainted 5.18.0-rc1-syzkaller-00016-g3e732ebf7316-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (5):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/04/07 14:36 upstream 3e732ebf7316 53c67432 .config log report info KCSAN: data-race in tcp_done / tcp_poll
ci2-upstream-kcsan-gce 2022/04/06 08:49 upstream ce4c854ee868 0127c10f .config log report info KCSAN: data-race in tcp_done / tcp_poll
ci2-upstream-kcsan-gce 2022/03/13 08:07 upstream aad611a868d1 9e8eaa75 .config log report info KCSAN: data-race in tcp_done / tcp_poll
ci2-upstream-kcsan-gce 2022/03/12 09:20 upstream 68453767131a 9e8eaa75 .config log report info KCSAN: data-race in tcp_done / tcp_poll
ci2-upstream-kcsan-gce 2022/02/27 03:07 upstream 2293be58d6a1 45a13a73 .config log report info KCSAN: data-race in tcp_done / tcp_poll
* Struck through repros no longer work on HEAD.