syzbot


KCSAN: data-race in tcp_disconnect / tcp_poll (6)

Status: auto-obsoleted due to no activity on 2022/11/01 19:29
Subsystems: net
[Documentation on labels]
First crash: 666d, last: 666d
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in tcp_disconnect / tcp_poll (5) net 1 772d 772d 0/27 auto-closed as invalid on 2022/07/18 21:08
upstream KCSAN: data-race in tcp_disconnect / tcp_poll (4) net 8 869d 905d 0/27 auto-closed as invalid on 2022/04/12 08:00
upstream KCSAN: data-race in tcp_disconnect / tcp_poll (7) net 2 465d 443d 22/27 fixed on 2023/07/01 16:05
upstream KCSAN: data-race in tcp_disconnect / tcp_poll net 2 1311d 1321d 0/27 auto-closed as invalid on 2021/01/25 19:57
upstream KCSAN: data-race in tcp_disconnect / tcp_poll (2) net 1 1020d 1020d 0/27 auto-closed as invalid on 2021/11/12 06:31
upstream KCSAN: data-race in tcp_disconnect / tcp_poll (3) net 4 953d 981d 0/27 auto-closed as invalid on 2022/01/18 12:46

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

write to 0xffff8881402857a2 of 1 bytes by task 5482 on cpu 0:
 tcp_disconnect+0x5f1/0xea0 net/ipv4/tcp.c:3120
 __inet_stream_connect+0x5cc/0x6d0 net/ipv4/af_inet.c:712
 inet_stream_connect+0x44/0x70 net/ipv4/af_inet.c:724
 __sys_connect_file+0xd3/0xe0 net/socket.c:1976
 io_connect+0x102/0x270 io_uring/net.c:1277
 io_issue_sqe+0x3b2/0x900 io_uring/io_uring.c:1577
 io_wq_submit_work+0x3de/0x580 io_uring/io_uring.c:1654
 io_worker_handle_work+0x547/0xbf0 io_uring/io-wq.c:587
 io_wqe_worker+0x202/0x8f0 io_uring/io-wq.c:632
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306

read to 0xffff8881402857a2 of 1 bytes by task 5475 on cpu 1:
 tcp_poll+0xf7/0x560 net/ipv4/tcp.c:541
 sock_poll+0x23e/0x260 net/socket.c:1353
 vfs_poll include/linux/poll.h:88 [inline]
 io_poll_check_events+0x183/0x360 io_uring/poll.c:233
 io_apoll_task_func+0x1a/0xa0 io_uring/poll.c:295
 handle_tw_list+0x12a/0x180 io_uring/io_uring.c:984
 tctx_task_work+0x72/0x360 io_uring/io_uring.c:1031
 task_work_run+0x8e/0x110 kernel/task_work.c:177
 get_signal+0xeca/0x1020 kernel/signal.c:2634
 arch_do_signal_or_restart+0x87/0x2d0 arch/x86/kernel/signal.c:869
 exit_to_user_mode_loop+0x78/0x130 kernel/entry/common.c:166
 exit_to_user_mode_prepare+0x69/0x90 kernel/entry/common.c:201
 irqentry_exit_to_user_mode+0x5/0x10 kernel/entry/common.c:307
 irqentry_exit+0xe/0x40 kernel/entry/common.c:408
 sysvec_apic_timer_interrupt+0x4a/0xb0 arch/x86/kernel/apic/apic.c:1106
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:649

value changed: 0x03 -> 0x00

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 5475 Comm: syz-executor.1 Not tainted 6.0.0-rc7-syzkaller-00029-g3800a713b607-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/09/27 19:22 upstream 3800a713b607 10323ddf .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in tcp_disconnect / tcp_poll
* Struck through repros no longer work on HEAD.