From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-il1-f199.google.com (mail-il1-f199.google.com [209.85.166.199]) (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 8BC39150997 for ; Sat, 21 Sep 2024 08:17:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.199 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726906643; cv=none; b=pEXPJaP3XOFs/zMQPCzZGSWkV6RxwSgIWVzYMHr4bmeLOPEWxIUA/XrxQkZMw9h1nHNJ7+c64gT+1DAv6Y2mlhl5LkJnK+xGApuu4mG6tWjid6E5FkUTucRsWEMbV8ATm7s+RlQ5L0kqegEFuo2rR9af/Zv0z8iK/RwcxuewWTM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726906643; c=relaxed/simple; bh=g++pXi4T1DSzlKp/R53oIfSkv1FeId8VMhHLbL26c1E=; h=MIME-Version:Date:Message-ID:Subject:From:To:Content-Type; b=GvOFcmLeH7RqHqyPv4pzXm4hVKBC6TSVMUdxUJdIwZJmTRCmCd7KcIEYgjGXIkeYezJmZV9zyRcf1456YMCBmyhIzhgt97FEPAz3bfPw/BCjg/VWgBBoUTDvYN1SnOirQtspsqJIsNpCp8Rg5s7dBwulQmmA7zrrfX1d63d1/k0= 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.199 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-il1-f199.google.com with SMTP id e9e14a558f8ab-3a045e7ed57so33928865ab.2 for ; Sat, 21 Sep 2024 01:17:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726906640; x=1727511440; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=PVoTkAm9RTVzwPh5+t1mp2pZQ32hgob0QzBtdBsA1tI=; b=k0nkG5IhJiccd2pCIxeZOujcvcsvb1yPT719mNpoZm0nIb3czi6V6LJU/M5pMOhP2O 20F86p24eehDXCuMv/1tLRynonp7yIsoWyrKVr9hBDu9uBsGBVXxSsD42R025OFMcMDk HnyQy6TcbUTaw6bIjbgHuvMJJcEhtAOKGZHczDvzBegvkFwPnLm3rPQGjV5MlXn8xolq xOfwxqdQBRCjX/rqE9xbcX9KK4N1nkSSLc51r0+4MkqluWGtwvyKooWEE06u+CvlUEls 55oQLnVqRiBQa2MNwX/Q3WJP0Wos4vfdcMwyoHpQ3WyvyPF9iAWFqXe8QzI2vhGFiiXU 0T1w== X-Forwarded-Encrypted: i=1; AJvYcCX/TVulxAw38HZwRCkV8S/yvLeV+z4SG0PqCsbTypr/g5Gt/t+Pmlby84jMy859DlFEd1g72WCt9VUBfzM=@vger.kernel.org X-Gm-Message-State: AOJu0Yyno910crjDn+tu2+s6bTKyPYD7Uc6l3HG0uZUyk4JVFxa4MClf BJae6yoTfJr99CwrXoytQAcvyRnc7G0AnNMTL4ecEGmswJzsbetMrSk27mHGgCq7U6vPr8uyzt5 isPwLBaUYN9jvZVObof372YlIreGZWM/bbhDoYkzRwgTCE7jM4AyAPvk= X-Google-Smtp-Source: AGHT+IEGT06m/Z0bkz8Gj8M8Hm3ZGerK5oN1wsvWfNEr0w1FNVNcgj7Cuxuw+DotJIzIMK2hTIbJLiFvNQpRW589yZ+Ev3ack4QE 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:184e:b0:39f:6180:afca with SMTP id e9e14a558f8ab-3a0c8cd7625mr61261645ab.13.1726906640696; Sat, 21 Sep 2024 01:17:20 -0700 (PDT) Date: Sat, 21 Sep 2024 01:17:20 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <66ee8110.050a0220.3195df.003f.GAE@google.com> Subject: [syzbot] [ext4?] KCSAN: data-race in __filemap_add_folio / sync_bdevs (2) From: syzbot To: jack@suse.com, linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com, tytso@mit.edu Content-Type: text/plain; charset="UTF-8" Hello, syzbot found the following issue on: HEAD commit: 1868f9d0260e Merge tag 'for-linux-6.12-ofs1' of git://git... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1067ff00580000 kernel config: https://syzkaller.appspot.com/x/.config?x=3b3c9c7ae5fde27e dashboard link: https://syzkaller.appspot.com/bug?extid=cf1fa2a387833ee7edec 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/16d776046b21/disk-1868f9d0.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/2b09f78f002c/vmlinux-1868f9d0.xz kernel image: https://storage.googleapis.com/syzbot-assets/7705cc7035ce/bzImage-1868f9d0.xz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+cf1fa2a387833ee7edec@syzkaller.appspotmail.com ================================================================== BUG: KCSAN: data-race in __filemap_add_folio / sync_bdevs read-write to 0xffff8881004c24b0 of 8 bytes by task 2929 on cpu 0: __filemap_add_folio+0x439/0x710 mm/filemap.c:920 filemap_add_folio+0x9c/0x1b0 mm/filemap.c:972 __filemap_get_folio+0x2f1/0x5b0 mm/filemap.c:1960 grow_dev_folio fs/buffer.c:1043 [inline] grow_buffers fs/buffer.c:1109 [inline] __getblk_slow fs/buffer.c:1135 [inline] bdev_getblk+0x173/0x3b0 fs/buffer.c:1437 __getblk include/linux/buffer_head.h:380 [inline] jbd2_journal_get_descriptor_buffer+0xcf/0x210 fs/jbd2/journal.c:974 jbd2_journal_commit_transaction+0xc03/0x33e0 fs/jbd2/commit.c:610 kjournald2+0x20b/0x3c0 fs/jbd2/journal.c:201 kthread+0x1d1/0x210 kernel/kthread.c:389 ret_from_fork+0x4b/0x60 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 read to 0xffff8881004c24b0 of 8 bytes by task 1695 on cpu 1: sync_bdevs+0xd6/0x260 block/bdev.c:1228 ksys_sync+0x8c/0xe0 fs/sync.c:106 __do_sys_sync+0xe/0x20 fs/sync.c:113 x64_sys_call+0x2693/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:163 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 value changed: 0x0000000000000a25 -> 0x0000000000000a26 Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 1695 Comm: syz.0.18383 Tainted: G W 6.11.0-syzkaller-07462-g1868f9d0260e #0 Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/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