From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-io1-f79.google.com (mail-io1-f79.google.com [209.85.166.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4C43A12D76D for ; Thu, 13 Jun 2024 17:18:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.79 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718299102; cv=none; b=Ql3Ql/uyrKA1hzZ16MBBQW53eFXoUh58KvjE6DYbcztJawImlGdSXkxl2ZkNYHynp7Ps5OAK/bMJ7NY3PJf2z3YgIXMdaUkc2jT4tQDbtOKLfRjVg044m7A5r9Jb4Qvec75ZA2xJT4Sb4HChg4uMWNQGb0TTf+GIjLs+mD3rQAI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718299102; c=relaxed/simple; bh=7jW1Pjc0lYkk43DI+WoCur/w2gyoKI27QU6xxfYjpj0=; h=MIME-Version:Date:Message-ID:Subject:From:To:Content-Type; b=JsIi+NHGwP78gtOS7On9xVBkXFfogU09Qx+a9esVIYF8C/dvb6wQde2TuP59pTz4SiWNUqXrcd55NOBFHfZtSzQ3TZCr2Qf1EZbJfLsE1lJNKZSPtzrQsTjz/p9Dl09AJULG4hwPXTusAMHtxKt2YUwy0M5SrDTVBLxOTeVmibA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.client-ip=209.85.166.79 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-io1-f79.google.com with SMTP id ca18e2360f4ac-7e8e5d55441so115022439f.1 for ; Thu, 13 Jun 2024 10:18:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718299100; x=1718903900; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=tMgu8aQxVMZ+LMmv02oVIsIixRIQXNFQ7WAWbWC/Z2I=; b=UNuu8jDwu3SzujfBdVu+nLXfcauzS7/5PbY86fG4uCD9SjIJzuRy/Ip/IYLaOs1QVt 6uyCZVXGwVDCTb3lBUisLb+rfuXG3YEwGK5Irshlas/s51ONkS6hqqhBt3AvK4AAWh3B LZkBkLz0eb5sz1ln+YtpDxpvLMoO6NZCKzGfr/2hloJvPVaqvhD0q2EwMzopUXVqnzHj LnVLBGKF8jQsHlT9wthTZGMoGhUx3/EX1XUY7a8UJtyOM5cqy4tJLZDHkRxWuu5SHFU6 zDVuiOepNZiOWg2755ybRmTkZNEdv564YCJbrKBoSQIZ9Ewno5Ik4VaWVToeEQ7dltSS xEGw== X-Forwarded-Encrypted: i=1; AJvYcCXp6JPllIu1yddbqsXMh3bmWTrbmTIFlXlVELdBcXHB3LlQaC3/UdYFzZh42atBjQ/SnhdZvyjLMTN6iQPbYmg7zlYY0jVDWHg= X-Gm-Message-State: AOJu0Yyw2hQ9Z/5OxKCCs54RsxFr69WJJK6HNldknxQsN3TSTXsfRTLn ovdrbVvEgqfyea5GSbKkd7KsGap+Y/D2FAJKuDio3SZ1bvqygIiIsJQpe7iRUrSwOyHmZN2Hhe4 s93AihMVdBfqqLGM/ib2cdtrNveKfhfmkBD1wkTUMQHTVRRJl2/pLH3Y= X-Google-Smtp-Source: AGHT+IH2MxsFbswtsyJvkjbZKpQ/wbCZB871HvQ5mhsuwt1H+N0druZrE9vERzAJP64WWvL8YD9u95bAXThAlr7P3HAMal1VBBuW Precedence: bulk X-Mailing-List: io-uring@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6e02:194f:b0:375:9522:1831 with SMTP id e9e14a558f8ab-375e108aa71mr89975ab.4.1718299100493; Thu, 13 Jun 2024 10:18:20 -0700 (PDT) Date: Thu, 13 Jun 2024 10:18:20 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <00000000000080cb46061ac8afe3@google.com> Subject: [syzbot] [io-uring?] KCSAN: data-race in io_worker_handle_work / io_wq_worker_cancel (3) From: syzbot To: asml.silence@gmail.com, axboe@kernel.dk, io-uring@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Hello, syzbot found the following issue on: HEAD commit: 2ccbdf43d5e7 Merge tag 'for-linus' of git://git.kernel.org.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1408060e980000 kernel config: https://syzkaller.appspot.com/x/.config?x=68336ea4b6f4fc09 dashboard link: https://syzkaller.appspot.com/bug?extid=90b0e38244e035ec327c compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 Unfortunately, I don't have any reproducer for this issue yet. Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/26ed33651516/disk-2ccbdf43.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/3c0b763ac146/vmlinux-2ccbdf43.xz kernel image: https://storage.googleapis.com/syzbot-assets/be99b90037ed/bzImage-2ccbdf43.xz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+90b0e38244e035ec327c@syzkaller.appspotmail.com ================================================================== BUG: KCSAN: data-race in io_worker_handle_work / io_wq_worker_cancel read-write to 0xffff8881070473d8 of 4 bytes by task 24619 on cpu 0: __io_wq_worker_cancel io_uring/io-wq.c:993 [inline] io_wq_worker_cancel+0x70/0x140 io_uring/io-wq.c:1010 io_wq_for_each_worker+0x116/0x200 io_uring/io-wq.c:874 io_wq_cancel_running_work io_uring/io-wq.c:1080 [inline] io_wq_cancel_cb+0x10d/0x190 io_uring/io-wq.c:1111 io_async_cancel_one io_uring/cancel.c:87 [inline] __io_async_cancel+0x176/0x270 io_uring/cancel.c:187 __io_sync_cancel io_uring/cancel.c:261 [inline] io_sync_cancel+0x5a6/0x6d0 io_uring/cancel.c:325 __io_uring_register io_uring/register.c:543 [inline] __do_sys_io_uring_register io_uring/register.c:616 [inline] __se_sys_io_uring_register+0x504/0x1190 io_uring/register.c:577 __x64_sys_io_uring_register+0x55/0x70 io_uring/register.c:577 x64_sys_call+0x2c2/0x2d70 arch/x86/include/generated/asm/syscalls_64.h:428 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffff8881070473d8 of 4 bytes by task 24621 on cpu 1: io_get_work_hash io_uring/io-wq.c:454 [inline] io_worker_handle_work+0x41a/0x9a0 io_uring/io-wq.c:591 io_wq_worker+0x286/0x820 io_uring/io-wq.c:651 ret_from_fork+0x4b/0x60 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 value changed: 0x00000000 -> 0x00000001 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 24621 Comm: iou-wrk-24619 Not tainted 6.10.0-rc3-syzkaller-00044-g2ccbdf43d5e7 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 ================================================================== --- This report is generated by a bot. It may contain errors. See https://goo.gl/tpsmEJ for more information about syzbot. syzbot engineers can be reached at syzkaller@googlegroups.com. syzbot will keep track of this issue. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot. If the report is already addressed, let syzbot know by replying with: #syz fix: exact-commit-title If you want to overwrite report's subsystems, reply with: #syz set subsystems: new-subsystem (See the list of subsystem names on the web dashboard) If the report is a duplicate of another one, reply with: #syz dup: exact-subject-of-another-report If you want to undo deduplication, reply with: #syz undup