syzbot


KCSAN: data-race in tipc_poll / tipc_sk_conn_proto_rcv

Status: auto-closed as invalid on 2022/03/29 21:12
Subsystems: tipc
[Documentation on labels]
First crash: 817d, last: 793d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in tipc_poll / tipc_sk_conn_proto_rcv (3) tipc 1 619d 619d 0/26 auto-closed as invalid on 2022/09/20 08:49
upstream KCSAN: data-race in tipc_poll / tipc_sk_conn_proto_rcv (4) tipc 1 555d 527d 0/26 auto-obsoleted due to no activity on 2022/11/30 04:41
upstream KCSAN: data-race in tipc_poll / tipc_sk_conn_proto_rcv (2) tipc 1 755d 755d 0/26 auto-closed as invalid on 2022/05/06 15:53

Sample crash report:
==================================================================
BUG: KCSAN: data-race in tipc_poll / tipc_sk_conn_proto_rcv

write to 0xffff88812f09df7e of 2 bytes by task 26326 on cpu 1:
 tipc_sk_conn_proto_rcv+0x392/0x710 net/tipc/socket.c:1370
 tipc_sk_proto_rcv net/tipc/socket.c:2157 [inline]
 tipc_sk_filter_rcv+0x1b19/0x1f50 net/tipc/socket.c:2351
 tipc_sk_backlog_rcv+0x6b/0xc0 net/tipc/socket.c:2406
 sk_backlog_rcv include/net/sock.h:1037 [inline]
 __release_sock+0xf2/0x270 net/core/sock.c:2779
 release_sock+0x40/0x110 net/core/sock.c:3311
 __tipc_sendstream+0x48a/0xb40 net/tipc/socket.c:1585
 tipc_sendstream+0x3a/0x50 net/tipc/socket.c:1549
 sock_sendmsg_nosec net/socket.c:705 [inline]
 sock_sendmsg net/socket.c:725 [inline]
 sock_write_iter+0x1a3/0x200 net/socket.c:1061
 call_write_iter include/linux/fs.h:2074 [inline]
 new_sync_write fs/read_write.c:503 [inline]
 vfs_write+0x7f5/0x950 fs/read_write.c:590
 ksys_write+0xd9/0x190 fs/read_write.c:643
 __do_sys_write fs/read_write.c:655 [inline]
 __se_sys_write fs/read_write.c:652 [inline]
 __x64_sys_write+0x3e/0x50 fs/read_write.c:652
 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

read to 0xffff88812f09df7e of 2 bytes by task 26339 on cpu 0:
 tsk_conn_cong net/tipc/socket.c:224 [inline]
 tipc_poll+0x1d9/0x340 net/tipc/socket.c:807
 sock_poll+0x23e/0x260 net/socket.c:1306
 vfs_poll include/linux/poll.h:88 [inline]
 do_select+0x7a5/0xeb0 fs/select.c:538
 core_sys_select+0x440/0x6d0 fs/select.c:681
 do_pselect fs/select.c:763 [inline]
 __do_sys_pselect6+0x1ea/0x250 fs/select.c:804
 __se_sys_pselect6 fs/select.c:795 [inline]
 __x64_sys_pselect6+0x74/0x80 fs/select.c:795
 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: 0x0104 -> 0x0082

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 26339 Comm: syz-executor.3 Not tainted 5.17.0-rc5-syzkaller-00006-g917bbdb107f8-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/02/22 21:03 upstream 917bbdb107f8 6e821dbf .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in tipc_poll / tipc_sk_conn_proto_rcv
2022/01/29 21:18 upstream f8c7e4ede46f 495e00c5 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in tipc_poll / tipc_sk_conn_proto_rcv
* Struck through repros no longer work on HEAD.