syzbot


KCSAN: data-race in tipc_poll / tipc_sk_conn_proto_rcv (4)

Status: auto-obsoleted due to no activity on 2022/11/30 04:41
Subsystems: tipc
[Documentation on labels]
Reported-by: syzbot+003f9574322bfba43b54@syzkaller.appspotmail.com
First crash: 554d, last: 554d
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 617d 617d 0/26 auto-closed as invalid on 2022/09/20 08:49
upstream KCSAN: data-race in tipc_poll / tipc_sk_conn_proto_rcv (2) tipc 1 754d 754d 0/26 auto-closed as invalid on 2022/05/06 15:53
upstream KCSAN: data-race in tipc_poll / tipc_sk_conn_proto_rcv tipc 2 791d 815d 0/26 auto-closed as invalid on 2022/03/29 21:12

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

read-write to 0xffff88813928f786 of 2 bytes by task 34 on cpu 1:
 tipc_sk_conn_proto_rcv+0x389/0x710 net/tipc/socket.c:1371
 tipc_sk_proto_rcv+0x146/0x450 net/tipc/socket.c:2158
 tipc_sk_filter_rcv+0x1619/0x1730 net/tipc/socket.c:2352
 tipc_sk_enqueue net/tipc/socket.c:2445 [inline]
 tipc_sk_rcv+0x4bf/0xd80 net/tipc/socket.c:2497
 tipc_node_xmit+0x1dc/0x990 net/tipc/node.c:1698
 tipc_node_xmit_skb+0x93/0xc0 net/tipc/node.c:1758
 tipc_sk_send_ack+0x24e/0x260 net/tipc/socket.c:1828
 tipc_recvmsg+0x7ae/0x970 net/tipc/socket.c:1996
 sock_recvmsg_nosec net/socket.c:995 [inline]
 sock_recvmsg+0x87/0xa0 net/socket.c:1013
 tipc_conn_rcv_from_sock net/tipc/topsrv.c:398 [inline]
 tipc_conn_recv_work+0x131/0x280 net/tipc/topsrv.c:421
 process_one_work+0x3d3/0x720 kernel/workqueue.c:2289
 worker_thread+0x618/0xa70 kernel/workqueue.c:2436
 kthread+0x1a9/0x1e0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306

read to 0xffff88813928f786 of 2 bytes by task 31328 on cpu 0:
 tsk_conn_cong net/tipc/socket.c:224 [inline]
 tipc_poll+0x1d9/0x320 net/tipc/socket.c:808
 sock_poll+0x23e/0x260 net/socket.c:1353
 vfs_poll include/linux/poll.h:88 [inline]
 __io_arm_poll_handler+0x216/0x6f0 io_uring/poll.c:532
 io_arm_poll_handler+0x43f/0x570 io_uring/poll.c:655
 io_queue_async+0x7e/0x350 io_uring/io_uring.c:1893
 io_queue_sqe io_uring/io_uring.c:1924 [inline]
 io_submit_sqe+0x700/0xa40 io_uring/io_uring.c:2173
 io_submit_sqes+0x274/0x530 io_uring/io_uring.c:2284
 __do_sys_io_uring_enter io_uring/io_uring.c:3225 [inline]
 __se_sys_io_uring_enter+0x1e7/0xb80 io_uring/io_uring.c:3157
 __x64_sys_io_uring_enter+0x74/0x80 io_uring/io_uring.c:3157
 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+0x63/0xcd

value changed: 0x0208 -> 0x0104

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 31328 Comm: syz-executor.2 Not tainted 6.1.0-rc1-syzkaller-00010-gbb1a1146467a-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
==================================================================
cgroup: fork rejected by pids controller in /syz2

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/10/18 16:06 upstream bb1a1146467a b31320fc .config console log report info [disk image] [vmlinux] ci2-upstream-kcsan-gce KCSAN: data-race in tipc_poll / tipc_sk_conn_proto_rcv
* Struck through repros no longer work on HEAD.