loop0: detected capacity change from 0 to 32768
bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names
bcachefs (loop0): recovering from clean shutdown, journal seq 10
bcachefs (loop0): insufficient writeable journal devices available: have 0, need 1
rw journal devs:
bcachefs (loop0): accounting_read... done
bcachefs (loop0): alloc_read... done
bcachefs (loop0): stripes_read... done
bcachefs (loop0): snapshots_read... done
bcachefs (loop0): journal_replay... done
bcachefs (loop0): resume_logged_ops... done
bcachefs (loop0): going read-write
bcachefs (loop0): bch2_rebalance_start(): error creating rebalance thread EINTR
bcachefs (loop0): error starting rebalance thread
bcachefs (loop0): going read-only
bcachefs (loop0): finished waiting for writes to stop
bcachefs (loop0): flushing journal and stopping allocators, journal seq 10
bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 10
------------[ cut here ]------------
journal shutdown error: cur seq 10 but last empty seq 11
WARNING: CPU: 0 PID: 5101 at fs/bcachefs/journal.c:1190 bch2_fs_journal_stop+0x5f3/0x630 fs/bcachefs/journal.c:1186
Modules linked in:
CPU: 0 UID: 0 PID: 5101 Comm: syz.0.0 Not tainted 6.11.0-rc3-syzkaller-00221-g670c12ce09a8 #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
RIP: 0010:bch2_fs_journal_stop+0x5f3/0x630 fs/bcachefs/journal.c:1186
Code: 44 24 18 42 80 3c 20 00 48 8b 5c 24 20 74 08 48 89 df e8 c0 70 c5 fd 48 8b 13 48 c7 c7 00 7c 53 8c 4c 89 f6 e8 5e 51 20 fd 90 <0f> 0b 90 90 e9 e4 fe ff ff 44 89 f1 80 e1 07 38 c1 0f 8c 7f fc ff
RSP: 0018:ffffc9000b8b75a0 EFLAGS: 00010246
RAX: 688c0794ac065300 RBX: ffff88804744a9e0 RCX: ffff88801bbc0000
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc9000b8b76e0 R08: ffffffff8155b4d2 R09: 1ffff1100410519a
R10: dffffc0000000000 R11: ffffed100410519b R12: dffffc0000000000
R13: ffff88804744a380 R14: 000000000000000a R15: 1ffff11008e89470
FS:  00007f3fb8dc06c0(0000) GS:ffff888020800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffe30b77c78 CR3: 00000000376b2000 CR4: 0000000000350ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __bch2_fs_read_only+0x311/0x430 fs/bcachefs/super.c:289
 bch2_fs_read_only+0xb57/0x1220 fs/bcachefs/super.c:354
 __bch2_fs_read_write+0x2e9/0x370 fs/bcachefs/super.c:504
 bch2_fs_read_write fs/bcachefs/super.c:519 [inline]
 bch2_fs_start+0x535/0x5b0 fs/bcachefs/super.c:1057
 bch2_fs_get_tree+0xd61/0x1700 fs/bcachefs/fs.c:1946
 vfs_get_tree+0x90/0x2a0 fs/super.c:1800
 do_new_mount+0x2be/0xb40 fs/namespace.c:3472
 do_mount fs/namespace.c:3812 [inline]
 __do_sys_mount fs/namespace.c:4020 [inline]
 __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:3997
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f3fb7f7b0ba
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 7e 1a 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f3fb8dbfe68 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f3fb8dbfef0 RCX: 00007f3fb7f7b0ba
RDX: 00000000200058c0 RSI: 0000000020005900 RDI: 00007f3fb8dbfeb0
RBP: 00000000200058c0 R08: 00007f3fb8dbfef0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000020005900
R13: 00007f3fb8dbfeb0 R14: 00000000000058d1 R15: 0000000020005940
 </TASK>