Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5225879rwr; Mon, 24 Apr 2023 00:22:38 -0700 (PDT) X-Google-Smtp-Source: AKy350bTTdosrrjyVEdfrsLq3g9JOPZYcD9N+SpZBBtLUg9phNwL0KZD0pKbiCDsVMriB9wl8L4D X-Received: by 2002:a17:90b:30c2:b0:247:8ad:d5d4 with SMTP id hi2-20020a17090b30c200b0024708add5d4mr13380088pjb.8.1682320957693; Mon, 24 Apr 2023 00:22:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682320957; cv=none; d=google.com; s=arc-20160816; b=0TUx5f+yzjSNkUbkW7O5Jl/HmraANwZnz+rlfv7nYTozOOKWjoA3Za6SlLolW/G769 gWrPkOb721sPpylprdm4thNws4hmJlS38Lj8rd7qmDZt/siJhLSDSIZbyVvHa92bkW4g LZWSqAMnY35hgKI8K6TYrqlup79OtBjjrOTqnD1GqHvyMR/Em+h8QsJPO4+vOUfhCbqX Kou6RtE3GoaVjw7mFF1Qqo4SvgRoNZ/10PSj/b8r/LUUuPoIcp8R1EXq6CukPs1/6u8T mZATl8n98a2luUORUlC72vL7dqxyeihpgbTUWA6WPm4iLjKKjnhmI5w4GP5cq+HZEnaI np4A== 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=FLByx+tb5N9xClS/DsZomBGA1slNzifZFIuUWr6Dpl4=; b=028T0gJhcyWt00by8Fg1YjPSWKeX61LityPElLp8c2piwn+KPnFI8wkB1x5HZax6Rm 4LUMVaWCGcWBgi+LuAssVzlC9iPF3/ahZTZSO/X44hVG7tb4RXz/P0Sbke7XhxtcpDvN W1x2N1wyoUXjtLzSu9p2LdUV63utpffSYwjGZu7OdgNP0bqaxWgriRK2hvDXmh0LUj2z 7QgomifqAAe55u7L0e3D95RwgtNCSViaXtsCYtaYQ2lILdExUiqdGAfFqOG3TDve6KAC u8c2HijKNTmJDjN/hvUw0ksNIGc/MZlFQiyISqR4ur/i9nTHr+2LNjFKoWKCYF/zrPkq i/wQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q5-20020a634305000000b0050f817e8564si10666453pga.86.2023.04.24.00.22.23; Mon, 24 Apr 2023 00:22:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S231347AbjDXHT5 (ORCPT + 99 others); Mon, 24 Apr 2023 03:19:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231313AbjDXHTs (ORCPT ); Mon, 24 Apr 2023 03:19:48 -0400 Received: from mail-io1-f80.google.com (mail-io1-f80.google.com [209.85.166.80]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96F9FA0 for ; Mon, 24 Apr 2023 00:19:46 -0700 (PDT) Received: by mail-io1-f80.google.com with SMTP id ca18e2360f4ac-7606d443ba6so344539239f.1 for ; Mon, 24 Apr 2023 00:19:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682320786; x=1684912786; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=FLByx+tb5N9xClS/DsZomBGA1slNzifZFIuUWr6Dpl4=; b=gloVukPwl491KenwulUet9MxoJrH1N2ESCm9haZ7APBuFBbf7aaxNaF6o0E1VWSrol iji0hWLiSpQ+bJwydCQ9Fsl9dn5VHAjLPBf7SNmNKLy2x2SWDFSxUZB5KyPKjXSJGYwz E9SMF+OgAmwLPWdfZAzppcQTaOXdpqponowJCXfcYRzXIO4RbunvgFrRiJz82tol4Dvz 2myRkF134AKLhml/NYRRjAIUpw/faWiAo8yi0ddxiKvK8zurSd0jF4dd7OiQTAC1pkvO eqKY/aNI1I3Gt4lx/i0q4KPmxACNPDPrafJ35D7eNIyFQ+WSC9poTXMSRvHuWyb5H1oA bCxg== X-Gm-Message-State: AAQBX9cgP/R6c0IR1/TpLr3+NggtuwkrFjV7gpkGaK77xtRGPObYmbmx lpDVwcpIAauAbD+7PXW5LE7HjZFA2bGq+hw/cojcR7efCzmW MIME-Version: 1.0 X-Received: by 2002:a5d:9703:0:b0:762:e1f2:3ec3 with SMTP id h3-20020a5d9703000000b00762e1f23ec3mr3903854iol.1.1682320785898; Mon, 24 Apr 2023 00:19:45 -0700 (PDT) Date: Mon, 24 Apr 2023 00:19:45 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000d7848305fa0fd413@google.com> Subject: [syzbot] [io-uring?] KCSAN: data-race in __io_fill_cqe_req / io_timeout 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" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, syzbot found the following issue on: HEAD commit: 3a93e40326c8 Merge tag 'for-linus' of git://git.kernel.org.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1280071ec80000 kernel config: https://syzkaller.appspot.com/x/.config?x=f7350c77b8056a38 dashboard link: https://syzkaller.appspot.com/bug?extid=cb265db2f3f3468ef436 compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 Unfortunately, I don't have any reproducer for this issue yet. Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/2122926bc9fe/disk-3a93e403.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/8392992358bc/vmlinux-3a93e403.xz kernel image: https://storage.googleapis.com/syzbot-assets/6398a2d19a7e/bzImage-3a93e403.xz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+cb265db2f3f3468ef436@syzkaller.appspotmail.com ================================================================== BUG: KCSAN: data-race in __io_fill_cqe_req / io_timeout read-write to 0xffff888108bf8310 of 4 bytes by task 20447 on cpu 0: io_get_cqe_overflow io_uring/io_uring.h:112 [inline] io_get_cqe io_uring/io_uring.h:124 [inline] __io_fill_cqe_req+0x6c/0x4d0 io_uring/io_uring.h:137 io_fill_cqe_req io_uring/io_uring.h:165 [inline] __io_req_complete_post+0x67/0x790 io_uring/io_uring.c:969 io_req_complete_post io_uring/io_uring.c:1006 [inline] io_req_task_complete+0xb9/0x110 io_uring/io_uring.c:1654 handle_tw_list io_uring/io_uring.c:1184 [inline] tctx_task_work+0x1fe/0x4d0 io_uring/io_uring.c:1246 task_work_run+0x123/0x160 kernel/task_work.c:179 get_signal+0xe5c/0xfe0 kernel/signal.c:2635 arch_do_signal_or_restart+0x89/0x2b0 arch/x86/kernel/signal.c:306 exit_to_user_mode_loop+0x6d/0xe0 kernel/entry/common.c:168 exit_to_user_mode_prepare+0x6a/0xa0 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline] syscall_exit_to_user_mode+0x26/0x140 kernel/entry/common.c:297 do_syscall_64+0x4d/0xc0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd read to 0xffff888108bf8310 of 4 bytes by task 20448 on cpu 1: io_timeout+0x88/0x270 io_uring/timeout.c:546 io_issue_sqe+0x147/0x660 io_uring/io_uring.c:1907 io_queue_sqe io_uring/io_uring.c:2079 [inline] io_submit_sqe io_uring/io_uring.c:2340 [inline] io_submit_sqes+0x689/0xfe0 io_uring/io_uring.c:2450 __do_sys_io_uring_enter io_uring/io_uring.c:3458 [inline] __se_sys_io_uring_enter+0x1e5/0x1b70 io_uring/io_uring.c:3392 __x64_sys_io_uring_enter+0x78/0x90 io_uring/io_uring.c:3392 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd value changed: 0x00000c75 -> 0x00000c76 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 20448 Comm: syz-executor.2 Not tainted 6.3.0-rc4-syzkaller-00025-g3a93e40326c8 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 ================================================================== --- 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.