bcachefs (loop0): Fixed errors, running fsck a second time to verify fs is clean
bcachefs (loop0): check_extents_to_backpointers... done
bcachefs (loop0): check_snapshots... done
bcachefs (loop0): check_subvols... done
bcachefs (loop0): check_inodes... done
bcachefs (loop0): check_dirents... done
bcachefs (loop0): resume_logged_ops... done
bcachefs (loop0): delete_dead_inodes... done
bcachefs (loop0): set_fs_needs_rebalance... done
bcachefs (loop0): done starting filesystem
loop0: detected capacity change from 0 to 32768
bcachefs (/dev/loop0): error reading default superblock: checksum error, type none: got should be
debugfs: 'loop0' already exists in 'bcachefs'
sysfs: cannot create duplicate filename '/fs/bcachefs/loop0'
CPU: 0 UID: 0 PID: 5359 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full)
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
Call Trace:
dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120
sysfs_warn_dup fs/sysfs/dir.c:30 [inline]
sysfs_create_dir_ns+0x259/0x280 fs/sysfs/dir.c:63
create_dir lib/kobject.c:73 [inline]
kobject_add_internal+0x59f/0xb40 lib/kobject.c:240
kobject_add_varg lib/kobject.c:374 [inline]
kobject_add+0x155/0x220 lib/kobject.c:426
bch2_fs_online+0x1b0/0x560 fs/bcachefs/super.c:-1
bch2_fs_alloc fs/bcachefs/super.c:1064 [inline]
bch2_fs_open+0x253b/0x2600 fs/bcachefs/super.c:2433
bch2_fs_get_tree+0x44f/0x1520 fs/bcachefs/fs.c:2472
vfs_get_tree+0x92/0x2b0 fs/super.c:1815
do_new_mount+0x2a2/0x9e0 fs/namespace.c:3808
do_mount fs/namespace.c:4136 [inline]
__do_sys_mount fs/namespace.c:4347 [inline]
__se_sys_mount+0x317/0x410 fs/namespace.c:4324
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f62eed9034a
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 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:00007f62efb95e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f62efb95ef0 RCX: 00007f62eed9034a
RDX: 00002000000058c0 RSI: 0000200000005900 RDI: 00007f62efb95eb0
RBP: 00002000000058c0 R08: 00007f62efb95ef0 R09: 0000000001000802
R10: 0000000001000802 R11: 0000000000000246 R12: 0000200000005900
R13: 00007f62efb95eb0 R14: 0000000000005a27 R15: 0000200000000140
kobject: kobject_add_internal failed for loop0 with -EEXIST, don't try to register things with the same name in the same directory.
bcachefs (loop0): error creating sysfs objects
bcachefs (loop0): shutdown complete
bcachefs: bch2_fs_get_tree() error: EEXIST
bcachefs (loop0): shutting down
bcachefs (loop0): going read-only
bcachefs (loop0): finished waiting for writes to stop
bcachefs (loop0): flushing journal and stopping allocators, journal seq 24
bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 24
------------[ cut here ]------------
journal shutdown error: cur seq 24 but last empty seq 23
WARNING: CPU: 0 PID: 5359 at fs/bcachefs/journal.c:1472 bch2_fs_journal_stop+0x42b/0x440 fs/bcachefs/journal.c:1468
Modules linked in:
CPU: 0 UID: 0 PID: 5359 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full)
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+0x42b/0x440 fs/bcachefs/journal.c:1468
Code: 44 24 30 42 80 3c 28 00 48 8b 5c 24 20 74 08 48 89 df e8 b8 41 d9 fd 48 8b 13 48 c7 c7 60 95 f5 8b 4c 89 e6 e8 c6 dd 37 fd 90 <0f> 0b 90 90 e9 e4 fe ff ff e8 47 ca 30 07 0f 1f 80 00 00 00 00 90
RSP: 0018:ffffc9000d3ef540 EFLAGS: 00010246
RAX: af6638c69e2ec600 RBX: ffff888052ccaa28 RCX: ffff888000f4c880
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000002
RBP: ffffc9000d3ef660 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffffbfff1c3a22c R12: 0000000000000018
R13: dffffc0000000000 R14: ffff888052cc9800 R15: 1ffff1100a599300
FS: 0000000000000000(0000) GS:ffff88808d00a000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f62efb759a0 CR3: 00000000119bc000 CR4: 0000000000352ef0
Call Trace:
__bch2_fs_read_only+0x343/0x5b0 fs/bcachefs/super.c:306
bch2_fs_read_only+0x42a/0xb00 fs/bcachefs/super.c:366
__bch2_fs_stop+0x100/0x900 fs/bcachefs/super.c:677
generic_shutdown_super+0x132/0x2c0 fs/super.c:643
bch2_kill_sb+0x41/0x50 fs/bcachefs/fs.c:2618
deactivate_locked_super+0xbc/0x130 fs/super.c:474
cleanup_mnt+0x425/0x4c0 fs/namespace.c:1375
task_work_run+0x1d1/0x260 kernel/task_work.c:227
exit_task_work include/linux/task_work.h:40 [inline]
do_exit+0x6b5/0x2300 kernel/exit.c:961
do_group_exit+0x21c/0x2d0 kernel/exit.c:1102
get_signal+0x1286/0x1340 kernel/signal.c:3034
arch_do_signal_or_restart+0x9a/0x750 arch/x86/kernel/signal.c:337
exit_to_user_mode_loop+0x75/0x110 kernel/entry/common.c:40
exit_to_user_mode_prepare include/linux/irq-entry-common.h:225 [inline]
syscall_exit_to_user_mode_work include/linux/entry-common.h:175 [inline]
syscall_exit_to_user_mode include/linux/entry-common.h:210 [inline]
do_syscall_64+0x2bd/0x3b0 arch/x86/entry/syscall_64.c:100
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f62eed8eba9
Code: Unable to access opcode bytes at 0x7f62eed8eb7f.
RSP: 002b:00007f62efb960e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: 0000000000000001 RBX: 00007f62eefd5fa8 RCX: 00007f62eed8eba9
RDX: 00000000000f4240 RSI: 0000000000000081 RDI: 00007f62eefd5fac
RBP: 00007f62eefd5fa0 R08: 7fffffffffffffff R09: 0000000000000000
R10: ffffffffffffffff R11: 0000000000000246 R12: 0000000000000000
R13: 00007f62eefd6038 R14: 00007ffc5f32e140 R15: 00007ffc5f32e228