Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5225697rwr; Mon, 24 Apr 2023 00:22:25 -0700 (PDT) X-Google-Smtp-Source: AKy350aqkbKA8gF4teBqkxYz1wPG732QtRo6mA12h6BmCdFGqoUKBjjmnRqFP8jSATHYWVuvTLTU X-Received: by 2002:a05:6a21:788b:b0:d9:2cef:949a with SMTP id bf11-20020a056a21788b00b000d92cef949amr17978490pzc.28.1682320945118; Mon, 24 Apr 2023 00:22:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682320945; cv=none; d=google.com; s=arc-20160816; b=Woi1NvwtPlxdRwTqqApdCjixRtCU1zfgGj3uNHPanbat6xa+9xzjNQf3aMv/u0LoNF exIGlItglkt/CPNspbU8dQFXoF22KSTjho7Hk2xfpLBLwaQCmR1d7JusnOUlmu6/VR1q 4UT+ei1VM820Go/phPxRwq6zj8MEgzXjQMpetqSt9+rrFBXMe5gRIBkRAPkxdlJvUZS9 P4Vn4BwSZnBX9ahN9eWh7c7SEbYYAKVzRZ/PCCsN8lZ+won4DcBK5Z1qVy8ZryTgBwuG FufM8gvaMqw36pZ3AIN3Ex7coI2d94qPaKw+oo6w+LHIoajHb5KC0Zl/o9Weh2M5HcNV /uBw== 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=cOQMklzzRQ8C4IiTO2E3YRpd1f6ELuERm1Tm7c2LT64=; b=ibRwQ/LqmTZeQSdVORkGTX2+JpxQwvQzKJta0ANN9ah0CZmnqUDT6cLtHZAjJmhh1x bySK1qi5eVk8s0GstmdVtxsBI/WsX5329MUAHBDhaTOWfDvDqV0ZgcZMi1sghrFbKTVs JJ4Rn04uez4JBxKGjrN0VKpa+9VRZJfdlmjJy+Zs5f3HOlNEwmz9eLyEJzisLwsDL90V 0g12AyOLlCqC45P275u7RPXdVJsv8l1xItodT+yNDnrg2BSQq5RPrFfLxOFhMmfnRLee OhEpABd/89DFwlbv6jPBTKup4KD6+LYRDZOQP4jj8xL0cHhXVYWt+3SI0g7tK6ybZpUl qH7Q== 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 n13-20020a6546cd000000b0051b31338860si10365060pgr.542.2023.04.24.00.22.11; Mon, 24 Apr 2023 00:22:25 -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 S231329AbjDXHTy (ORCPT + 99 others); Mon, 24 Apr 2023 03:19:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231308AbjDXHTs (ORCPT ); Mon, 24 Apr 2023 03:19:48 -0400 Received: from mail-io1-f77.google.com (mail-io1-f77.google.com [209.85.166.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CB442D50 for ; Mon, 24 Apr 2023 00:19:46 -0700 (PDT) Received: by mail-io1-f77.google.com with SMTP id ca18e2360f4ac-7636c775952so342817439f.2 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=1682320785; x=1684912785; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=cOQMklzzRQ8C4IiTO2E3YRpd1f6ELuERm1Tm7c2LT64=; b=bROg+WDFZJwTrWMPSMNP2kx7DJkHAfK4vCUqBkiSAd5Unpl2Xax5Gz8dTto9WXDPPS /muBWwf7koadcmcJiUIt/0/Oz7jMBkBpI+dKfqE+ffhlzxZSbW8b1lKgl6rzf9kodY4l p7IhcD9C9M06VpEqvgcH0Rkt956Wk/e966xglyVXaODZLR3gcs4qfPyHSajH6fnJVm6+ I+k1axawyIvtuFgU3uAVmHcxEO2y8IcCyqgZ3a1GXKZSqadZUJ2stJDF8FLWcakxWMC8 ama3GagdAZk1HfFmuDiBeJpY5MfDmBW6g0PvLTjxjIHs5arEWohXjMp5VhpDquIDY7Vm xucA== X-Gm-Message-State: AAQBX9cexRCAq9UhyxPlK4sKT2Llqd1RDRIdZf/slB4eQhEL6Ld3doMo 2RjdASnD+N4SzClDgchy+AE3cTrMjaDxQLXWAJuHubbAJUG3 MIME-Version: 1.0 X-Received: by 2002:a6b:d618:0:b0:763:5f92:afc3 with SMTP id w24-20020a6bd618000000b007635f92afc3mr3924400ioa.0.1682320785648; 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: <000000000000d3b33905fa0fd4a6@google.com> Subject: [syzbot] [ext4?] KCSAN: data-race in __es_find_extent_range / __es_find_extent_range (6) From: syzbot To: adilger.kernel@dilger.ca, linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com, tytso@mit.edu 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,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: 44149752e998 Merge tag 'cgroup-for-6.3-rc6-fixes' of git:/.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=100db37bc80000 kernel config: https://syzkaller.appspot.com/x/.config?x=710057cbb8def08c dashboard link: https://syzkaller.appspot.com/bug?extid=4a03518df1e31b537066 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/7bfa303f05cc/disk-44149752.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/4e8ea8730409/vmlinux-44149752.xz kernel image: https://storage.googleapis.com/syzbot-assets/e584bce13ba7/bzImage-44149752.xz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+4a03518df1e31b537066@syzkaller.appspotmail.com ================================================================== BUG: KCSAN: data-race in __es_find_extent_range / __es_find_extent_range write to 0xffff88810a5a98a8 of 8 bytes by task 10666 on cpu 0: __es_find_extent_range+0x212/0x300 fs/ext4/extents_status.c:296 ext4_es_find_extent_range+0x91/0x260 fs/ext4/extents_status.c:318 ext4_ext_put_gap_in_cache fs/ext4/extents.c:2284 [inline] ext4_ext_map_blocks+0x120d/0x36c0 fs/ext4/extents.c:4191 ext4_map_blocks+0x2a0/0x1050 fs/ext4/inode.c:576 ext4_mpage_readpages+0x699/0x1440 fs/ext4/readpage.c:300 ext4_read_folio+0xc5/0x1a0 fs/ext4/inode.c:3308 filemap_read_folio+0x2c/0x100 mm/filemap.c:2424 filemap_fault+0x66f/0xb20 mm/filemap.c:3367 __do_fault mm/memory.c:4155 [inline] do_read_fault mm/memory.c:4506 [inline] do_fault mm/memory.c:4635 [inline] handle_pte_fault mm/memory.c:4923 [inline] __handle_mm_fault mm/memory.c:5065 [inline] handle_mm_fault+0x115d/0x21d0 mm/memory.c:5211 faultin_page mm/gup.c:925 [inline] __get_user_pages+0x363/0xc30 mm/gup.c:1147 populate_vma_page_range mm/gup.c:1543 [inline] __mm_populate+0x23a/0x360 mm/gup.c:1652 mm_populate include/linux/mm.h:3026 [inline] vm_mmap_pgoff+0x174/0x210 mm/util.c:547 ksys_mmap_pgoff+0x2ac/0x320 mm/mmap.c:1410 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 read to 0xffff88810a5a98a8 of 8 bytes by task 10630 on cpu 1: __es_find_extent_range+0x79/0x300 fs/ext4/extents_status.c:270 __es_scan_range fs/ext4/extents_status.c:345 [inline] __es_scan_clu fs/ext4/extents_status.c:399 [inline] ext4_es_scan_clu+0xe4/0x190 fs/ext4/extents_status.c:415 ext4_insert_delayed_block fs/ext4/inode.c:1694 [inline] ext4_da_map_blocks fs/ext4/inode.c:1806 [inline] ext4_da_get_block_prep+0x575/0xa70 fs/ext4/inode.c:1870 __block_write_begin_int+0x349/0xe50 fs/buffer.c:2034 __block_write_begin+0x5e/0x110 fs/buffer.c:2084 ext4_da_write_begin+0x2fa/0x610 fs/ext4/inode.c:3084 generic_perform_write+0x1c3/0x3d0 mm/filemap.c:3926 ext4_buffered_write_iter+0x234/0x3e0 fs/ext4/file.c:289 ext4_file_write_iter+0xd7/0x10e0 call_write_iter include/linux/fs.h:1851 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x463/0x760 fs/read_write.c:584 ksys_write+0xeb/0x1a0 fs/read_write.c:637 __do_sys_write fs/read_write.c:649 [inline] __se_sys_write fs/read_write.c:646 [inline] __x64_sys_write+0x42/0x50 fs/read_write.c:646 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: 0xffff88810a653dc0 -> 0xffff8881067334d8 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 10630 Comm: syz-executor.0 Not tainted 6.3.0-rc6-syzkaller-00138-g44149752e998 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/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.