From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-io1-f71.google.com (mail-io1-f71.google.com [209.85.166.71]) (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 ECA85199944 for ; Thu, 17 Oct 2024 08:20:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.71 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729153234; cv=none; b=O3TQ9l/NXMNlQapoUTR4l9VTazrYay1Z77Ywb6ykryPOyKFuzP/ifpymZ3QdWOpClRtHRAJEvTmbOe5EUl/gc5/RXUZcGFbrvR9rYcvsq8t1xF6K/re4Ych3fDjNdWv9Zy6Z3u+fp877u8cWpN1EJY7ak7w5vGM7ojD5iOWTYFA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729153234; c=relaxed/simple; bh=5JlZvbED4lSTM7df1+7Za8XN7cQ1XKt/zNPvoxdFwzo=; h=MIME-Version:Date:Message-ID:Subject:From:To:Content-Type; b=KDzdz6/n7BzkaV6FGRjwqBSsxaytlCtCyVO46SGACHOkAs1+ntZb3ML9EpAvbfT91+8q9uU4orIgRqsMFoshBi00Gre0ByFFUcPORJKhMKa5vrYslT0yR8kznBqe/4od99AiRht9aR/YMipPf5tnOg89xpq8UBFE2+fiOoFG/hI= 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.71 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-f71.google.com with SMTP id ca18e2360f4ac-8352a3cc8b5so70874239f.0 for ; Thu, 17 Oct 2024 01:20:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729153231; x=1729758031; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=oYTBiBShMWCNdAW6gCnUYtnHJmnerNIryV/kjjDV/uM=; b=MLld1N0Zzmq4evfIWI8HTcmW7KDi1ekr34WB9G+4TzbD5KM6rUUfnNsE9iSWhqX/gs k6MQAtPSpQFtb4us3divC49ztwsGFJPYpC70MvjzIP/+wnqIiRQLDoyfQPKr+zaDn9ru tx7zQ+ywBYGnvrPhwRxDafeay0xhOd2bXq0L2TR7SJOGALmS7EM8tXow7Edz4HEbz/8L xbFQCnUZRX+bJ2s/GiEKe7LB4+keM4ZqsjRU3JBule3KhjG5HqCZ4zbLVtb7UHd7HPow XtqxBQf5Jft36vtX8bD3UWN5JojunnYzthHeYfmXfBNZKfMtISG5SofIsOxV8uyAiL6x v13A== X-Forwarded-Encrypted: i=1; AJvYcCUHYkZnnh7OPLDgjtzfNIMG81pazMHfc01ySc7qaonNjEZRQPKvwB32d1jcOreVv8OhwX9WUL45ix/CXtQ=@vger.kernel.org X-Gm-Message-State: AOJu0YyYa0CV2dcnGIrsaDGh771xAcjA089B8hCVUQX176HXJA0eq3NN po2Axbtf6lrth7TvEZk2qtMvCvzhaSdz2m10lWXvX88xVBG077wjXUFGGAMnPI1S/wKHOAZfS12 Hskq2nBzA4rnFIYzt2jVcZtfyjZzvSoFtKqyDLviSw7T4FsrDwC6n2Jk= X-Google-Smtp-Source: AGHT+IHyceELi0Dd4/3TJ97vd9SoTcwVXT4CrTeRM/ME3E1hzqaCB/8PkZGrnkR/aWUEVi5MmnP+0DYnEQ3d3pNQ71s5+dFmDgEO Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6e02:1caf:b0:3a3:778e:45cd with SMTP id e9e14a558f8ab-3a3b5fbc20cmr203953495ab.21.1729153230987; Thu, 17 Oct 2024 01:20:30 -0700 (PDT) Date: Thu, 17 Oct 2024 01:20:30 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <6710c8ce.050a0220.d5849.0026.GAE@google.com> Subject: [syzbot] [io-uring?] KCSAN: data-race in io_req_defer_failed / io_wq_free_work (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: c964ced77262 Merge tag 'for-linus' of git://git.kernel.org.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=14d3cf27980000 kernel config: https://syzkaller.appspot.com/x/.config?x=fd83253b74c9c570 dashboard link: https://syzkaller.appspot.com/bug?extid=2b8e48083b04a2e58fab 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/dc3d0edf69f7/disk-c964ced7.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/bb0052a85cf6/vmlinux-c964ced7.xz kernel image: https://storage.googleapis.com/syzbot-assets/ec8def944d77/bzImage-c964ced7.xz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+2b8e48083b04a2e58fab@syzkaller.appspotmail.com ================================================================== BUG: KCSAN: data-race in io_req_defer_failed / io_wq_free_work write to 0xffff888117079648 of 8 bytes by task 3752 on cpu 1: io_req_defer_failed+0x73/0x440 io_uring/io_uring.c:935 io_req_task_cancel+0x21/0x30 io_uring/io_uring.c:1361 io_handle_tw_list+0x1b9/0x200 io_uring/io_uring.c:1063 tctx_task_work_run+0x6c/0x1b0 io_uring/io_uring.c:1135 tctx_task_work+0x40/0x80 io_uring/io_uring.c:1153 task_work_run+0x13a/0x1a0 kernel/task_work.c:228 get_signal+0xee9/0x1070 kernel/signal.c:2690 arch_do_signal_or_restart+0x95/0x4b0 arch/x86/kernel/signal.c:337 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x59/0x130 kernel/entry/common.c:218 do_syscall_64+0xd6/0x1c0 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffff888117079648 of 8 bytes by task 3753 on cpu 0: req_ref_put_and_test io_uring/refs.h:22 [inline] io_wq_free_work+0x21/0x160 io_uring/io_uring.c:1779 io_worker_handle_work+0x4cb/0x9d0 io_uring/io-wq.c:604 io_wq_worker+0x286/0x820 io_uring/io-wq.c:655 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: 0x00000000802c2058 -> 0x00000000806c2118 Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 3753 Comm: iou-wrk-3752 Not tainted 6.12.0-rc3-syzkaller-00087-gc964ced77262 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/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