Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp1629703lqo; Sun, 12 May 2024 10:46:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX8nwO56jKzxJawaBU060pygYSVTTKFprYQmoipjef9EClxaGMMXT9nSGgxsWP6LhNVbOoLWtI2R4iA2tEOq5NMEOWH+6ASouQyUYjGPA== X-Google-Smtp-Source: AGHT+IFCVNW8LGSo0xclpCDNt1dDt7pZ8tBN2JZbPejqfQadDQ2Et+PSnFyufQG1BzoKbFiiKxzv X-Received: by 2002:a05:6358:2c93:b0:18a:db68:ae02 with SMTP id e5c5f4694b2df-193bb2dc8e1mr704630355d.31.1715535996819; Sun, 12 May 2024 10:46:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715535996; cv=pass; d=google.com; s=arc-20160816; b=tGhQss7yvzLH8TlQoAWVprzfjuNvBAJORXZF5eWaORABHv+DSy738jtBZ1JBui/WVx 27eJ6WxLIxp8CYrDx3FqYchcUUdAKolxJAILDFbhkBk60+yatBmiBcX6zcp73B8qaIxD Ft8EYHAc2Or34J0hlLlIsUzHqFTBAK1nF+4vziqmeGfzuCBPGduJjzXRaFBUS4XbTFmS vPeVKBuz0Tr0x5zzC2kOEUUMAHFIrKvgiLyY5mrcWRappRqCXF1NdxGvn7x3avA2mkUy xqc/wjX3bCVTgLVUXIKZS8u8ZZk+2KKskAJElwkq5Xemb0eri5UEzjnPurglNAy+36Em qwbg== 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=XAkAAbnbPN/MDGQjNtrkgJIi0Je09liIyw+Sf3X0IEg=; fh=VIfYwwfDNULSPLD76ZZ7YOtMfKOrGTC+yi0ffi5BMnI=; b=JAKPKNG5uTzttA/lhgeH/896Pl02Y5O+OrO/rSpIm/OqAJhheqVu+mq4adSn5fsoDC XVO9MYGZ3iJLmD2hjmDfXzE3T9Y7RqhGfLhdU0E/t3HRDTF0xDWkMUEFLs+VVXUargpM /jBvnxsjbyINQWkXoeS06okDJLjiEjfUUmhpphglhcahXiFtaEeFwBfCUtZDcaUMMXFh nYIPLuGEaY0gSQYR4pAwyN/0ZIM61M3J1MSWByAeEbf2hqN95aVkxA09Kx20rTxdhtc7 AhroD82J4ZYH8rqscB9rQM6P/ZfVCpIXaf94bJeu6T1NXg3sJm/2ufbhNY9CTStmdOZG Jhmw==; 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-176957-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176957-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-635534f2192si7164707a12.865.2024.05.12.10.46.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 May 2024 10:46:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-176957-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; 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-176957-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176957-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 66E4B281400 for ; Sun, 12 May 2024 17:46:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 328C24DA0C; Sun, 12 May 2024 17:46:30 +0000 (UTC) Received: from mail-io1-f79.google.com (mail-io1-f79.google.com [209.85.166.79]) (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 F340346BA6 for ; Sun, 12 May 2024 17:46:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.79 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715535989; cv=none; b=BAmdiUa23KCa0AoJLXmseW7n2BVi+YvCgh/3awRjfnUcttQ5++YJL5bJiLN4ptwXtLEz43vDr9gqoQSfJGX6qWMhIaWGizN9iEsHl2/n0A0dwFW7qjM+5DU27YBN760+2+ADuN0pywSqpwiiyKVxVvgClKrzUKv84lKwbGcNnMA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715535989; c=relaxed/simple; bh=y5aEzV8ufIoSlSzlHlLdymvicZ4i0iAp7RAbKtzODxs=; h=MIME-Version:Date:Message-ID:Subject:From:To:Content-Type; b=CK+79XKuBK7mp+mguHkJGIirRcdhznby16une2UVFBm7f44yDa6FGJ0IrMsI7TRokGYtD1DsrkVlr94LQBMcI1YTX0FratLsIS0f4UtOf9w7nX1eb0TsDT3Fx6Iml6GaV+q7StPNfg5klhCH6rEZuWz5W+33yEimWtXRejxrUcs= 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.79 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-f79.google.com with SMTP id ca18e2360f4ac-7e1db7e5386so72730739f.3 for ; Sun, 12 May 2024 10:46:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715535987; x=1716140787; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=XAkAAbnbPN/MDGQjNtrkgJIi0Je09liIyw+Sf3X0IEg=; b=Fx7fIlqymyxWWJX15PlsHq3BfOnIPHWIP3B4UzoYvewdN5NONT2vZyk9RWnRgm9E61 nqB7h49CEpXwHSz7r/fn9UoDW7iFrUJmlSLhqs+SQ1Oc7JQRmlf4irjxpmzDIOAaiT+F jKLG5RVKK5Jc61sWgnah3F2mjpiaFbnXFD+6L6Vu1aIBmR1Z86xDVKCkuJ5AqmCcpWtY y7RxWGA3AJk68QnrUc5Sk6HgGhkapl1EpJ9346nxzWVav2CRA+iNVLonkLsCE1zG4Eug gkbX529QeAN/4y5+LgGizTstf6zJ5aEzaB7a1ZL+hjaxkjHGhneUV/xVoGF9Y9Rso8c1 QedQ== X-Forwarded-Encrypted: i=1; AJvYcCW2dxhUgSwAvcR8ebBGtveNVKs7D7fD9O9iuAjB8dxH6mr2cM5koN7vOHfBLM3pMjdj5bJmaGrWfnpSnFBDk42QKXOp2JKUdGLkIAA6 X-Gm-Message-State: AOJu0YzrVXqqGPUPch3W/ghu05d6Exvfqr3SVLtOzfXQ+cyyKrCkfdLy Nt4Z9mmn/COm9GE+iyu1bsk2tsogbdYhfn3d9HMuQyK2m0fFqQJgaS+MwY1Jcs0e1/ejFynedxI NEkEF7X2BVrUza7Ln7+6YWEo4NbVlHP+Q5guB+0aec7xSLjjn3c0YbI8= 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:34a7:b0:488:b879:a392 with SMTP id 8926c6da1cb9f-489592479ddmr687079173.6.1715535987230; Sun, 12 May 2024 10:46:27 -0700 (PDT) Date: Sun, 12 May 2024 10:46:27 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000001e59c20618455922@google.com> Subject: [syzbot] [bcachefs?] kernel BUG in cpu_replicas_add_entry From: syzbot To: bfoster@redhat.com, kent.overstreet@linux.dev, linux-bcachefs@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Hello, syzbot found the following issue on: HEAD commit: cf87f46fd34d Merge tag 'drm-fixes-2024-05-11' of https://g.. git tree: upstream console+strace: https://syzkaller.appspot.com/x/log.txt?x=148f37bc980000 kernel config: https://syzkaller.appspot.com/x/.config?x=9d7ea7de0cb32587 dashboard link: https://syzkaller.appspot.com/bug?extid=73414091bd382684ee2b 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=159e243f180000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1460fc5c980000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/9c147953fc8e/disk-cf87f46f.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/a55c9d1f91fc/vmlinux-cf87f46f.xz kernel image: https://storage.googleapis.com/syzbot-assets/f8dab47ae8c2/bzImage-cf87f46f.xz mounted in repro: https://storage.googleapis.com/syzbot-assets/7ca4b9223f48/mount_0.gz The issue was bisected to: commit 03ef80b469d5d83530ce1ce15be78a40e5300f9b Author: Kent Overstreet Date: Sat Sep 23 22:41:51 2023 +0000 bcachefs: Ignore unknown mount options bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=176de750980000 final oops: https://syzkaller.appspot.com/x/report.txt?x=14ede750980000 console output: https://syzkaller.appspot.com/x/log.txt?x=10ede750980000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+73414091bd382684ee2b@syzkaller.appspotmail.com Fixes: 03ef80b469d5 ("bcachefs: Ignore unknown mount options") loop0: detected capacity change from 0 to 32768 bcachefs (loop0): mounting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,nojournal_transaction_names bcachefs (loop0): recovering from clean shutdown, journal seq 10 ------------[ cut here ]------------ kernel BUG at fs/bcachefs/replicas.c:205! invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI CPU: 0 PID: 5075 Comm: syz-executor128 Not tainted 6.9.0-rc7-syzkaller-00183-gcf87f46fd34d #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 RIP: 0010:cpu_replicas_add_entry+0x6c8/0x6f0 fs/bcachefs/replicas.c:205 Code: 24 18 e8 ab 22 be fd e9 57 fd ff ff e8 f1 c5 5c fd 90 0f 0b e8 e9 c5 5c fd 90 0f 0b e8 e1 c5 5c fd 90 0f 0b e8 d9 c5 5c fd 90 <0f> 0b e8 d1 c5 5c fd 90 0f 0b e8 c9 c5 5c fd 90 0f 0b e8 c1 c5 5c RSP: 0018:ffffc9000346ef18 EFLAGS: 00010293 RAX: ffffffff843941b7 RBX: dffffc0000000000 RCX: ffff888023cd5a00 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000001 R08: ffffffff84393d28 R09: ffffffff843804ad R10: 0000000000000007 R11: ffff888023cd5a00 R12: 1ffff1100eb70101 R13: ffff888071e440a3 R14: 0000000000000000 R15: ffff888071e440a0 FS: 000055556e8b0380(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000561d03c02678 CR3: 0000000074648000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bch2_replicas_set_usage+0x3cf/0x710 fs/bcachefs/replicas.c:630 journal_replay_early+0xba/0x4f0 fs/bcachefs/recovery.c:411 bch2_fs_recovery+0x39c2/0x63b0 fs/bcachefs/recovery.c:747 bch2_fs_start+0x356/0x5b0 fs/bcachefs/super.c:1043 bch2_fs_open+0xa8d/0xdf0 fs/bcachefs/super.c:2105 bch2_mount+0x71d/0x1320 fs/bcachefs/fs.c:1903 legacy_get_tree+0xee/0x190 fs/fs_context.c:662 vfs_get_tree+0x90/0x2a0 fs/super.c:1779 do_new_mount+0x2be/0xb40 fs/namespace.c:3352 do_mount fs/namespace.c:3692 [inline] __do_sys_mount fs/namespace.c:3898 [inline] __se_sys_mount+0x2d9/0x3c0 fs/namespace.c:3875 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf5/0x240 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7efe923c2b7a Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 5e 04 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 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:00007ffec93a6af8 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007ffec93a6b10 RCX: 00007efe923c2b7a RDX: 0000000020011a00 RSI: 0000000020011a40 RDI: 00007ffec93a6b10 RBP: 0000000000000004 R08: 00007ffec93a6b50 R09: 0066666666666666 R10: 0000000001200014 R11: 0000000000000282 R12: 0000000001200014 R13: 00007ffec93a6b50 R14: 0000000000000003 R15: 0000000001000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:cpu_replicas_add_entry+0x6c8/0x6f0 fs/bcachefs/replicas.c:205 Code: 24 18 e8 ab 22 be fd e9 57 fd ff ff e8 f1 c5 5c fd 90 0f 0b e8 e9 c5 5c fd 90 0f 0b e8 e1 c5 5c fd 90 0f 0b e8 d9 c5 5c fd 90 <0f> 0b e8 d1 c5 5c fd 90 0f 0b e8 c9 c5 5c fd 90 0f 0b e8 c1 c5 5c RSP: 0018:ffffc9000346ef18 EFLAGS: 00010293 RAX: ffffffff843941b7 RBX: dffffc0000000000 RCX: ffff888023cd5a00 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000001 R08: ffffffff84393d28 R09: ffffffff843804ad R10: 0000000000000007 R11: ffff888023cd5a00 R12: 1ffff1100eb70101 R13: ffff888071e440a3 R14: 0000000000000000 R15: ffff888071e440a0 FS: 000055556e8b0380(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000561d03c02678 CR3: 0000000074648000 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