Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5503303pxj; Wed, 26 May 2021 12:05:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx96wSIfxmXYsvEJR0MCPoHeVNrYLU4aIo0Thw17QbS9HatWgYHq5TsOJYxnGynrfPnHnat X-Received: by 2002:a5d:9d51:: with SMTP id k17mr19723381iok.177.1622055904088; Wed, 26 May 2021 12:05:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622055904; cv=none; d=google.com; s=arc-20160816; b=Jag/nN+l6ljohy2di6Nj/kzry+FEX9gqoRKSHWr8U7K1MMsF0auGDDfFPVqVKCvLf3 hW+twwYQIDKPLD9n5dCa9/SN28MyaVlLObnU0iqRyqM9TddbLFENToId9BC20d6vZ0DK rIwOZ3kypZy/VlZeYaOzChRQhAjciJeotVo4mI8kOOxr2m7OXKDAor7VuY9h37POwXNz p6SbGEsZO+WJPfFDPUYX+EjAyAsociBy/pnXsxB9lDxiorm/VvjMAehMEZedz9EjKRVT XPRhOFdWNIXYBXDifCkLdm4Zks5OMkXwTN/7Znxg57ySOTUf4IvjdnpNG+InRFCOn73L 1zRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:subject:message-id:date:mime-version; bh=OdL20YqkAI7JJ2Wurl0dYHvUrhMz0DHPO3AdkhEoqS8=; b=VXrsDmiiI9tGS0cP2wugxjlBtjk7i0BpG6p5tfsOW82orJy5khztyJxQXxDK/GTqqH aNolhVEMCzGp6oOcj7citeKwwY6ciGcYrD0nfhdbayNdj4GyVNsEUPGSWkWOpDexBmuo tfvRahN/7dOCsAb0QyEtYSKyLMBJesza5FY9CQLQsumke6nm2i1U6yTbsey4efinD0Em QedXZJ/14QV1JkXt5T+3Nbq0wBp2gLd1JpHnaeUzaWJ4nD2uJXYgnwBE/0fqOPjuqMX3 I5nVpL6qeb5yhMVsZWPv6ysTb4pQdSAGsEeN7871webHMDaOo5w/1wh9fIA4FtxxjDUj 7TaQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c188si162087iof.9.2021.05.26.12.04.38; Wed, 26 May 2021 12:05:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234189AbhEZPpv (ORCPT + 99 others); Wed, 26 May 2021 11:45:51 -0400 Received: from mail-il1-f197.google.com ([209.85.166.197]:38434 "EHLO mail-il1-f197.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232537AbhEZPpv (ORCPT ); Wed, 26 May 2021 11:45:51 -0400 Received: by mail-il1-f197.google.com with SMTP id r3-20020a92cd830000b02901c085bc9f5eso1100496ilb.5 for ; Wed, 26 May 2021 08:44:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=OdL20YqkAI7JJ2Wurl0dYHvUrhMz0DHPO3AdkhEoqS8=; b=Y0S5tCTSqRJ81sPBN4hyZ7/9eSlvzLZ7WkGhkiEJYLpWDo3b9CW2GEJcVZMwX6W1PA sbYZkuoG1grOYHAW7suSKCITa+Udxc2zsSqxClFBh1+zWvPQH4RkAwnNfsVfn+HwGidT oFU3zfoKxoFxDES1B78MTsMEf80bEyfuHea5fRRNCSHqlED1VG9l5gZgLj3lLoEpUpps ZsoNU/ot0ir+MbypntVhpK2GlU7YPgkd3TRSTNvzMPREz5JwWkw/XvQfvNlivYOzR5+6 m30NJJ6MGX/PrKsNJ8vPebsECnZKG61EA6/nk1p4zlQQ2wtfPKlKxeWbRt14apEWIJnS vFDg== X-Gm-Message-State: AOAM532PO7POWMShTp7Ev3Ki7TWM03rmOU34UeAxIdBudt1z7ZqI+cTg hTKvkfyTrtsuGCfDggxee1WyIvRAwg9DSSSvZJmIQSyTgYLT MIME-Version: 1.0 X-Received: by 2002:a05:6e02:1ba7:: with SMTP id n7mr22093360ili.159.1622043858212; Wed, 26 May 2021 08:44:18 -0700 (PDT) Date: Wed, 26 May 2021 08:44:18 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000fa9f7005c33d83b9@google.com> Subject: [syzbot] KCSAN: data-race in __io_uring_cancel / io_uring_try_cancel_requests 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" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, syzbot found the following issue on: HEAD commit: a050a6d2 Merge tag 'perf-tools-fixes-for-v5.13-2021-05-24'.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=13205087d00000 kernel config: https://syzkaller.appspot.com/x/.config?x=3bcc8a6b51ef8094 dashboard link: https://syzkaller.appspot.com/bug?extid=73554e2258b7b8bf0bbf compiler: Debian clang version 11.0.1-2 Unfortunately, I don't have any reproducer for this issue yet. IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+73554e2258b7b8bf0bbf@syzkaller.appspotmail.com ================================================================== BUG: KCSAN: data-race in __io_uring_cancel / io_uring_try_cancel_requests write to 0xffff88811d8df330 of 8 bytes by task 3709 on cpu 1: io_uring_clean_tctx fs/io_uring.c:9042 [inline] __io_uring_cancel+0x261/0x3b0 fs/io_uring.c:9136 io_uring_files_cancel include/linux/io_uring.h:16 [inline] do_exit+0x185/0x1560 kernel/exit.c:781 do_group_exit+0xce/0x1a0 kernel/exit.c:923 get_signal+0xfc3/0x1610 kernel/signal.c:2835 arch_do_signal_or_restart+0x2a/0x220 arch/x86/kernel/signal.c:789 handle_signal_work kernel/entry/common.c:147 [inline] exit_to_user_mode_loop kernel/entry/common.c:171 [inline] exit_to_user_mode_prepare+0x109/0x190 kernel/entry/common.c:208 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline] syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:301 do_syscall_64+0x56/0x90 arch/x86/entry/common.c:57 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffff88811d8df330 of 8 bytes by task 6412 on cpu 0: io_uring_try_cancel_iowq fs/io_uring.c:8911 [inline] io_uring_try_cancel_requests+0x1ce/0x8e0 fs/io_uring.c:8933 io_ring_exit_work+0x7c/0x1110 fs/io_uring.c:8736 process_one_work+0x3e9/0x8f0 kernel/workqueue.c:2276 worker_thread+0x636/0xae0 kernel/workqueue.c:2422 kthread+0x1d0/0x1f0 kernel/kthread.c:313 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 6412 Comm: kworker/u4:9 Not tainted 5.13.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events_unbound io_ring_exit_work ================================================================== --- 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.