Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1144533lqp; Sun, 14 Apr 2024 17:11:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWyGuTWxTbZReDSQnKBu/k6F9YdpeQPbAOSQtuiX6gx0dRco0cUi8v8Vu+c8xNWDGncblcPS+hSKHeA5GGaFNAQ0cZHZpH6oeIe4hqDlw== X-Google-Smtp-Source: AGHT+IF47gRJKJMsam6e2blxXluBKSkPAtNJ7QFLIbvw8nDvinXjdzK+aZjdb3zW+wfe/fiqvnS6 X-Received: by 2002:a50:8d50:0:b0:570:3b4:53ff with SMTP id t16-20020a508d50000000b0057003b453ffmr4283182edt.6.1713139898150; Sun, 14 Apr 2024 17:11:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713139898; cv=pass; d=google.com; s=arc-20160816; b=aayciLT/zFjNtjDWMSSd4FXPRaP6tw0oA1XM2UZs1Nm4BUEjbPcOmxXd5vqObN4Dau mtDISRxzvTdZ4JrQ3FqXltWfquoGePheqlgN23WjQaUqvbGMoRmoBCjd4/sDhF1Y+pU/ Ud8DZNHvhG5sM1GQg2lWpP/jQG35qe3dU4l/aaO1y0D+edaBwE3059pXU3EtTBiPXufB s7V8fF01Kl74v390ODL+S/DawvdakBw5kETl7JzV9AwyXGDak7Vu0WwufIqY4rgSbfKe mnBseSu6CtdpaHxfa5NW04ZImeO1T5rRGatt71brV8rWdC8rPJU00N8ycKAlw2EvcLYA RbCA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:from:subject:message-id:date:mime-version:list-unsubscribe :list-subscribe:list-id:precedence; bh=EU0hVL6DfpMlcjjVDEdakS6ZSrs74/GbIpJ9Y08C8GI=; fh=eqT3h3/Bh/dqycCVqKKLQrrRf5kWmU8Eb0hB0uspJfk=; b=dxZTVOmdSyedLJrQw/5glACq048p7skoV0B56JdiLfZvoHU9DmByawNiQOEpC+hIYs vFCGDrkRPADLkYO34O3MRUONC0ZE5sgDT3AhiNvLdwiWpNLrq8nQE2RvA+hVrgWvXpdC RED3gwULNejjgklUhn/IWIngimgAoEefrbO5TAE5MBzS4lHWwslf0qwgmu8g2XJNu9kF SO7jKSbozR0x4AcgAHq0OXHNEXM2uQ8M4DdX/XTOBkP8iQKc7j+lmYLSmM0TIksU/aTQ 5s99SCNxWMYg+v3Q4xJnXojYaUDjBHzGupK9PPW+ZwpEtStgoInDkiyvd86ThWEMyQUr vLFg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=m3kw2wvrgufz5godrsrytgd7.apphosting.bounces.google.com); spf=pass (google.com: domain of linux-kernel+bounces-144425-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144425-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id b5-20020a50ccc5000000b0056e2a4da968si3100081edj.213.2024.04.14.17.11.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Apr 2024 17:11:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-144425-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=m3kw2wvrgufz5godrsrytgd7.apphosting.bounces.google.com); spf=pass (google.com: domain of linux-kernel+bounces-144425-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144425-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id B20281F2187F for ; Mon, 15 Apr 2024 00:11:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B1B1879E3; Mon, 15 Apr 2024 00:11:21 +0000 (UTC) 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 8BFD8193 for ; Mon, 15 Apr 2024 00:11:19 +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=1713139881; cv=none; b=RstfG2AZ9TiVVGEuNopn0BygEvhWWjWSwBQyiWDhOu3QLo9NveErkBTnn2ceNGv/hWnPdmu8vhc6pSp3DpWoNlb1GDnsPiQQFLoMPhWnU6UgV+oBnzCMcp5hfNSBCTZbWJZmvH7RTq4Ao6xv7KHUbb5Cx9oUT8zqawyl9r1npSw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713139881; c=relaxed/simple; bh=C/Iu6C+EcnfYBh/f7HXhOOXESwUAXBibk9rsEmyREWw=; h=MIME-Version:Date:Message-ID:Subject:From:To:Content-Type; b=kbaqcuXWiHA/D+/4urWpqCh3KQoZGwAEYF5yEWCQj9EubOT/ylGrW5nQfvicydrnql33RXYDAAGmc/+pBdbbtkcqq2j1J5C7SpDj23jEqGAxlKjRizX7AaJrsC4G2koO76SqqlpzD4DqhiEorhTyXb5WNARHh8u6eLiGEXQI1gE= 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-7d63c6a2559so194646539f.1 for ; Sun, 14 Apr 2024 17:11:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713139879; x=1713744679; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=EU0hVL6DfpMlcjjVDEdakS6ZSrs74/GbIpJ9Y08C8GI=; b=Ia7PV3uzgzv8K2V4icEIHyhu3g9wf6al7xJyezvwzu2lOVwNgtlqaROuoy7TeXTgtg S296InjnrA02sa4xlm019/dMvAltTpv0PsKuQLUTJ1ovzU8W6WMhUvCxOzKV8eL4GsW7 AqowHa878muu+vT5yw5DKW9AXO+wLacHm/g/xzMgF+ZUQJDMIM7Qh1gJQ64bUY/IaYZT VpnAD8uPEMtJH7YuaiZC8qy2vRVnxHvjXmq9NqrmV2/IOwaIhh0G5RG/mc2rccx6EhsK W/RBY5uo4L1yV1FRwgD3lOJ3/zRsZPTJLIEo1yYy6c/oQnd8xbVpaWzEBCYi6/wlwz4X nl2Q== X-Forwarded-Encrypted: i=1; AJvYcCVtvjQTUynIW0MpuW+lvAZ58NwivgAMGM3eINA0e7888ccWrvuZFtjJooT2UFMo6E9cfLq9YQh/sGPLZ+DOl2tRYkeAPzokTV4AgE5e X-Gm-Message-State: AOJu0Yzk/9Y/L+NRDAHSnhFtqoioj9+6AiaqQ0FghUDAN4gLFh0JajaG iMyoqBSB7ndYP7SVuyUNf2ZIabpDnPoM3dlEKEBcwy39CnTLvwF5MDVSrbVme/APIHie1XxMrEz dKo9k88Nkm5Tg7cQMbGnSJzOR9jnZSP1aCgcvftc7w2KlWcrKhWxGtZ8= 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:6638:8504:b0:482:ead5:4f5d with SMTP id is4-20020a056638850400b00482ead54f5dmr321024jab.1.1713139878632; Sun, 14 Apr 2024 17:11:18 -0700 (PDT) Date: Sun, 14 Apr 2024 17:11:18 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000eab13906161775e8@google.com> Subject: [syzbot] [nilfs?] kernel BUG in submit_bh_wbc From: syzbot To: akpm@linux-foundation.org, konishi.ryusuke@gmail.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nilfs@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Hello, syzbot found the following issue on: HEAD commit: fe46a7dd189e Merge tag 'sound-6.9-rc1' of git://git.kernel.. git tree: upstream console+strace: https://syzkaller.appspot.com/x/log.txt?x=13f8135b180000 kernel config: https://syzkaller.appspot.com/x/.config?x=4d90a36f0cab495a dashboard link: https://syzkaller.appspot.com/bug?extid=3a841e887ad90c07541a compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=11a7a983180000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=16c5a29d180000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/72ab73815344/disk-fe46a7dd.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/2d6d6b0d7071/vmlinux-fe46a7dd.xz kernel image: https://storage.googleapis.com/syzbot-assets/48e275e5478b/bzImage-fe46a7dd.xz mounted in repro: https://storage.googleapis.com/syzbot-assets/12d8fad50ce0/mount_0.gz The issue was bisected to: commit 602ce7b8e1343b19c0cf93a3dd1926838ac5a1cc Author: Ryusuke Konishi Date: Fri Jan 27 13:22:02 2023 +0000 nilfs2: prevent WARNING in nilfs_dat_commit_end() bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=128df913180000 final oops: https://syzkaller.appspot.com/x/report.txt?x=118df913180000 console output: https://syzkaller.appspot.com/x/log.txt?x=168df913180000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+3a841e887ad90c07541a@syzkaller.appspotmail.com Fixes: 602ce7b8e134 ("nilfs2: prevent WARNING in nilfs_dat_commit_end()") NILFS (loop0): discard dirty block: blocknr=18446744073709551615, size=1024 NILFS (loop0): nilfs_get_block (ino=18): a race condition while inserting a data block at offset=0 ------------[ cut here ]------------ kernel BUG at fs/buffer.c:2768! invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI CPU: 0 PID: 5056 Comm: syz-executor429 Not tainted 6.8.0-syzkaller-08951-gfe46a7dd189e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 RIP: 0010:submit_bh_wbc+0x543/0x560 fs/buffer.c:2768 Code: 07 7d ff be 00 10 00 00 48 c7 c7 80 f8 26 8e 4c 89 fa e8 f0 cd be 02 e9 98 fe ff ff e8 86 07 7d ff 90 0f 0b e8 7e 07 7d ff 90 <0f> 0b e8 76 07 7d ff 90 0f 0b e8 6e 07 7d ff 90 0f 0b e8 66 07 7d RSP: 0018:ffffc9000399f838 EFLAGS: 00010293 RAX: ffffffff8217ecd2 RBX: 0000000000000000 RCX: ffff88807cfe3c00 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: ffffffff8217e833 R09: 1ffff1100f095cae R10: dffffc0000000000 R11: ffffed100f095caf R12: 0000000000000000 R13: ffff8880784ae570 R14: 0000000000000000 R15: 1ffff1100f095cae FS: 00005555917ee380(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000000066c7e0 CR3: 000000007f430000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: submit_bh fs/buffer.c:2809 [inline] __bh_read fs/buffer.c:3074 [inline] bh_read_nowait include/linux/buffer_head.h:417 [inline] __block_write_begin_int+0x12d0/0x1a70 fs/buffer.c:2134 __block_write_begin fs/buffer.c:2154 [inline] block_write_begin+0x9b/0x1e0 fs/buffer.c:2213 nilfs_write_begin+0xa0/0x110 fs/nilfs2/inode.c:262 generic_perform_write+0x322/0x640 mm/filemap.c:3930 __generic_file_write_iter+0x1b8/0x230 mm/filemap.c:4022 generic_file_write_iter+0xaf/0x310 mm/filemap.c:4051 call_write_iter include/linux/fs.h:2108 [inline] new_sync_write fs/read_write.c:497 [inline] vfs_write+0xa84/0xcb0 fs/read_write.c:590 ksys_write+0x1a0/0x2c0 fs/read_write.c:643 do_syscall_64+0xfb/0x240 entry_SYSCALL_64_after_hwframe+0x6d/0x75 RIP: 0033:0x7f3d6ccdd9f9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffc74baec58 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0073746e6576652e RCX: 00007f3d6ccdd9f9 RDX: 0000000000000020 RSI: 0000000020000140 RDI: 0000000000000005 RBP: 652e79726f6d656d R08: 00000000000b15f8 R09: 00000000000b15f8 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 00007ffc74baee28 R14: 0000000000000001 R15: 0000000000000001 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:submit_bh_wbc+0x543/0x560 fs/buffer.c:2768 Code: 07 7d ff be 00 10 00 00 48 c7 c7 80 f8 26 8e 4c 89 fa e8 f0 cd be 02 e9 98 fe ff ff e8 86 07 7d ff 90 0f 0b e8 7e 07 7d ff 90 <0f> 0b e8 76 07 7d ff 90 0f 0b e8 6e 07 7d ff 90 0f 0b e8 66 07 7d RSP: 0018:ffffc9000399f838 EFLAGS: 00010293 RAX: ffffffff8217ecd2 RBX: 0000000000000000 RCX: ffff88807cfe3c00 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: ffffffff8217e833 R09: 1ffff1100f095cae R10: dffffc0000000000 R11: ffffed100f095caf R12: 0000000000000000 R13: ffff8880784ae570 R14: 0000000000000000 R15: 1ffff1100f095cae FS: 00005555917ee380(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000000066c7e0 CR3: 000000007f430000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 --- 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. For information about bisection process see: https://goo.gl/tpsmEJ#bisection If the report is already addressed, let syzbot know by replying with: #syz fix: exact-commit-title If you want syzbot to run the reproducer, reply with: #syz test: git://repo/address.git branch-or-commit-hash If you attach or paste a git patch, syzbot will apply it before testing. 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