syzbot


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

Status: auto-closed as invalid on 2022/07/18 21:08
Subsystems: net
[Documentation on labels]
First crash: 654d, last: 654d
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in tcp_disconnect / tcp_poll (4) net 8 752d 788d 0/26 auto-closed as invalid on 2022/04/12 08:00
upstream KCSAN: data-race in tcp_disconnect / tcp_poll (6) net 1 548d 548d 0/26 auto-obsoleted due to no activity on 2022/11/01 19:29
upstream KCSAN: data-race in tcp_disconnect / tcp_poll (7) net 2 347d 326d 22/26 fixed on 2023/07/01 16:05
upstream KCSAN: data-race in tcp_disconnect / tcp_poll net 2 1193d 1204d 0/26 auto-closed as invalid on 2021/01/25 19:57
upstream KCSAN: data-race in tcp_disconnect / tcp_poll (2) net 1 903d 903d 0/26 auto-closed as invalid on 2021/11/12 06:31
upstream KCSAN: data-race in tcp_disconnect / tcp_poll (3) net 4 836d 864d 0/26 auto-closed as invalid on 2022/01/18 12:46

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

write to 0xffff8881378614a2 of 1 bytes by task 2569 on cpu 0:
 tcp_disconnect+0x5ba/0xdf0 net/ipv4/tcp.c:2998
 __inet_stream_connect+0x5cc/0x6d0 net/ipv4/af_inet.c:712
 tcp_sendmsg_fastopen+0x3fb/0x4f0 net/ipv4/tcp.c:1178
 tcp_sendmsg_locked+0x1e18/0x1fd0 net/ipv4/tcp.c:1220
 tcp_sendmsg+0x2c/0x40 net/ipv4/tcp.c:1448
 inet_sendmsg+0x5f/0x80 net/ipv4/af_inet.c:819
 sock_sendmsg_nosec net/socket.c:714 [inline]
 sock_sendmsg net/socket.c:734 [inline]
 ____sys_sendmsg+0x38f/0x500 net/socket.c:2492
 ___sys_sendmsg net/socket.c:2546 [inline]
 __sys_sendmsg+0x197/0x230 net/socket.c:2575
 __do_sys_sendmsg net/socket.c:2584 [inline]
 __se_sys_sendmsg net/socket.c:2582 [inline]
 __x64_sys_sendmsg+0x42/0x50 net/socket.c:2582
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x46/0xb0

read to 0xffff8881378614a2 of 1 bytes by task 2554 on cpu 1:
 tcp_poll+0xf7/0x560 net/ipv4/tcp.c:539
 sock_poll+0x23e/0x260 net/socket.c:1353
 vfs_poll include/linux/poll.h:88 [inline]
 __io_arm_poll_handler+0x1a8/0x540 fs/io_uring.c:7210
 io_arm_poll_handler+0x56a/0x620 fs/io_uring.c:7310
 io_queue_async+0x7b/0x150 fs/io_uring.c:8767
 io_queue_sqe+0x140/0x160 fs/io_uring.c:8804
 io_req_task_submit+0x8b/0xb0 fs/io_uring.c:3110
 handle_tw_list fs/io_uring.c:2984 [inline]
 tctx_task_work+0x8c0/0xc00 fs/io_uring.c:3013
 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 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+0x46/0xb0

value changed: 0x03 -> 0x00

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 2554 Comm: syz-executor.4 Not tainted 5.19.0-rc2-syzkaller-dirty #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/06/13 20:59 upstream b13baccc3850 0f087040 .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.