./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor2715245192 <...> [ 72.423180][ C0] eth0: bad gso: type: 1, size: 1408 [ 72.577059][ C0] eth0: bad gso: type: 1, size: 1408 [ 73.410130][ C0] eth0: bad gso: type: 1, size: 1408 [ 73.421841][ C0] eth0: bad gso: type: 1, size: 1408 [ 73.428154][ C0] eth0: bad gso: type: 1, size: 1408 [ 73.434335][ C0] eth0: bad gso: type: 1, size: 1408 [ 73.440410][ C0] eth0: bad gso: type: 1, size: 1408 [ 73.445883][ C0] eth0: bad gso: type: 1, size: 1408 [ 73.452213][ C0] eth0: bad gso: type: 1, size: 1408 [ 73.458799][ C0] eth0: bad gso: type: 1, size: 1408 Warning: Permanently added '10.128.0.151' (ED25519) to the list of known hosts. execve("./syz-executor2715245192", ["./syz-executor2715245192"], 0x7ffc546dd550 /* 10 vars */) = 0 brk(NULL) = 0x55555a5d6000 brk(0x55555a5d6d00) = 0x55555a5d6d00 arch_prctl(ARCH_SET_FS, 0x55555a5d6380) = 0 set_tid_address(0x55555a5d6650) = 5102 set_robust_list(0x55555a5d6660, 24) = 0 rseq(0x55555a5d6ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor2715245192", 4096) = 28 getrandom("\xe3\xee\x0e\xd0\x51\x5a\x3f\xea", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x55555a5d6d00 brk(0x55555a5f7d00) = 0x55555a5f7d00 brk(0x55555a5f8000) = 0x55555a5f8000 mprotect(0x7fdab3e64000, 16384, PROT_READ) = 0 mmap(0x1ffff000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x1ffff000 mmap(0x20000000, 16777216, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x20000000 mmap(0x21000000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x21000000 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) close(3) = 0 clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5104 attached , child_tidptr=0x55555a5d6650) = 5104 [pid 5104] set_robust_list(0x55555a5d6660, 24) = 0 [pid 5104] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5104] setpgid(0, 0) = 0 [pid 5104] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5104] write(3, "1000", 4) = 4 [pid 5104] close(3) = 0 executing program [pid 5104] write(1, "executing program\n", 18) = 18 [pid 5104] memfd_create("syzkaller", 0) = 3 [pid 5104] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fdaab800000 [pid 5104] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 5104] munmap(0x7fdaab800000, 138412032) = 0 [pid 5104] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5104] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5104] close(3) = 0 [pid 5104] close(4) = 0 [pid 5104] mkdir("./file1", 0777) = 0 [ 81.026767][ T5104] loop0: detected capacity change from 0 to 32768 [ 81.064744][ T5104] bcachefs (/dev/loop0): error reading default superblock: Not a bcachefs superblock (got magic c68573f6-4e1a-4502-8265-f57f48ba6d81) [ 81.119808][ T5104] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 81.136002][ T5104] bcachefs (loop0): recovering from clean shutdown, journal seq 13 [ 81.144233][ T5104] bcachefs (loop0): Doing compatible version upgrade from 1.7: mi_btree_bitmap to 1.9: disk_accounting_v2 [ 81.144233][ T5104] running recovery passes: check_allocations [ 81.164056][ T5104] BUG: sleeping function called from invalid context at include/linux/sched/mm.h:337 [ 81.173721][ T5104] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5104, name: syz-executor271 [ 81.183255][ T5104] preempt_count: 1, expected: 0 [ 81.188205][ T5104] RCU nest depth: 0, expected: 0 [ 81.193159][ T5104] 2 locks held by syz-executor271/5104: [ 81.198751][ T5104] #0: ffff888078f00278 (&c->state_lock){+.+.}-{3:3}, at: bch2_fs_start+0x45/0x5b0 [ 81.208194][ T5104] #1: ffff888078f4a880 (&j->lock){+.+.}-{2:2}, at: bch2_fs_journal_start+0x1219/0x14a0 [ 81.218039][ T5104] Preemption disabled at: [ 81.218053][ T5104] [<0000000000000000>] 0x0 [ 81.226984][ T5104] CPU: 0 UID: 0 PID: 5104 Comm: syz-executor271 Not tainted 6.10.0-next-20240718-syzkaller #0 [ 81.237243][ T5104] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 [ 81.247319][ T5104] Call Trace: [ 81.250626][ T5104] [ 81.253566][ T5104] dump_stack_lvl+0x241/0x360 [ 81.258283][ T5104] ? __pfx_dump_stack_lvl+0x10/0x10 [ 81.263502][ T5104] ? __pfx__printk+0x10/0x10 [ 81.268119][ T5104] __might_resched+0x5d4/0x780 [ 81.272905][ T5104] ? __pfx___might_resched+0x10/0x10 [ 81.278212][ T5104] ? fs_reclaim_acquire+0x93/0x140 [ 81.283336][ T5104] __kmalloc_node_track_caller_noprof+0xcb/0x440 [ 81.289677][ T5104] ? bch2_printbuf_make_room+0x1f1/0x350 [ 81.295324][ T5104] krealloc_noprof+0x7d/0x120 [ 81.300019][ T5104] bch2_printbuf_make_room+0x1f1/0x350 [ 81.305492][ T5104] bch2_prt_printf+0x267/0x6d0 [ 81.310280][ T5104] ? bch2_journal_space_available+0x11c/0x1b00 [ 81.316454][ T5104] ? __pfx_bch2_prt_printf+0x10/0x10 [ 81.321757][ T5104] bch2_journal_space_available+0x89b/0x1b00 [ 81.327753][ T5104] ? poison_slab_object+0xe0/0x150 [ 81.332868][ T5104] ? __kasan_slab_free+0x37/0x60 [ 81.337826][ T5104] ? bch2_journal_space_available+0x11c/0x1b00 [ 81.344083][ T5104] ? __se_sys_mount+0x2d6/0x3c0 [ 81.348942][ T5104] ? __pfx_bch2_journal_space_available+0x10/0x10 [ 81.355382][ T5104] ? mark_lock+0x9a/0x360 [ 81.359732][ T5104] ? __lock_acquire+0x1384/0x2050 [ 81.364810][ T5104] ? kasan_quarantine_put+0xdc/0x230 [ 81.370117][ T5104] ? lockdep_hardirqs_on+0x99/0x150 [ 81.375334][ T5104] ? __pfx_lock_acquire+0x10/0x10 [ 81.380375][ T5104] ? do_raw_spin_lock+0x14f/0x370 [ 81.385415][ T5104] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 81.390797][ T5104] ? __genradix_iter_peek+0x3d0/0x430 [ 81.396200][ T5104] bch2_fs_journal_start+0x1356/0x14a0 [ 81.401784][ T5104] ? __pfx_bch2_fs_journal_start+0x10/0x10 [ 81.407600][ T5104] ? journal_replay_entry_early+0x4d/0xb70 [ 81.413442][ T5104] ? __pfx_bch2_journal_log_msg+0x10/0x10 [ 81.419195][ T5104] ? bch2_recovery_passes_from_stable+0x104/0x120 [ 81.425643][ T5104] bch2_fs_recovery+0x1ec8/0x38d0 [ 81.430712][ T5104] ? __pfx_bch2_fs_recovery+0x10/0x10 [ 81.436131][ T5104] ? __pfx_lock_release+0x10/0x10 [ 81.441174][ T5104] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 81.446820][ T5104] ? __pfx_lock_release+0x10/0x10 [ 81.451871][ T5104] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 81.457531][ T5104] ? bch2_get_next_online_dev+0x4b9/0x4f0 [ 81.463258][ T5104] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 81.468922][ T5104] ? llist_reverse_order+0x72/0x90 [ 81.474076][ T5104] bch2_fs_start+0x356/0x5b0 [ 81.478698][ T5104] bch2_fs_get_tree+0xd61/0x1700 [ 81.483666][ T5104] ? __pfx_bch2_parse_one_mount_opt+0x10/0x10 [ 81.489769][ T5104] ? __pfx_bch2_fs_get_tree+0x10/0x10 [ 81.495183][ T5104] ? generic_parse_monolithic+0x387/0x400 [ 81.500921][ T5104] ? apparmor_capable+0x13b/0x1b0 [ 81.505965][ T5104] ? bpf_lsm_capable+0x9/0x10 [ 81.510657][ T5104] vfs_get_tree+0x90/0x2a0 [ 81.515085][ T5104] do_new_mount+0x2be/0xb40 [ 81.519602][ T5104] ? __pfx_do_new_mount+0x10/0x10 [ 81.524641][ T5104] __se_sys_mount+0x2d6/0x3c0 [ 81.529334][ T5104] ? __pfx___se_sys_mount+0x10/0x10 [ 81.534545][ T5104] ? do_syscall_64+0x100/0x230 [ 81.539338][ T5104] ? __x64_sys_mount+0x20/0xc0 [ 81.544125][ T5104] do_syscall_64+0xf3/0x230 [ 81.548651][ T5104] ? clear_bhb_loop+0x35/0x90 [ 81.553358][ T5104] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 81.559272][ T5104] RIP: 0033:0x7fdab3de2dea [ 81.563694][ T5104] 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 [ 81.583334][ T5104] RSP: 002b:00007ffc5678dad8 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 [ 81.591818][ T5104] RAX: ffffffffffffffda RBX: 00007ffc5678daf0 RCX: 00007fdab3de2dea [ 81.599833][ T5104] RDX: 0000000020000000 RSI: 000000002000f680 RDI: 00007ffc5678daf0 [ 81.607825][ T5104] RBP: 0000000000000004 R08: 00007ffc5678db30 R09: 000000000000f626 [ 81.615819][ T5104] R10: 0000000000200012 R11: 0000000000000282 R12: 0000000000200012 [ 81.623827][ T5104] R13: 00007ffc5678db30 R14: 0000000000000003 R15: 0000000001000000 [ 81.631821][ T5104] [ 81.635146][ T5104] bcachefs (loop0): insufficient writeable journal devices available: have 0, need 1 [ 81.635146][ T5104] rw journal devs: [ 81.666944][ T5104] bcachefs (loop0): accounting_read... done [ 81.673238][ T5104] bcachefs (loop0): alloc_read... done [ 81.678842][ T5104] bcachefs (loop0): stripes_read... done [ 81.684555][ T5104] bcachefs (loop0): snapshots_read... done [ 81.690784][ T5104] bcachefs (loop0): check_allocations... [ 81.694400][ T5104] btree ptr not marked in member info btree allocated bitmap [ 81.694427][ T5104] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 1818ce08861e3527 written 40 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, shutting down [ 81.723681][ T5104] bcachefs (loop0): inconsistency detected - emergency read only at journal seq 13 [ 81.733306][ T5104] bcachefs (loop0): bch2_gc_mark_key(): error fsck_errors_not_fixed [ 81.741422][ T5104] bcachefs (loop0): bch2_gc_btree(): error fsck_errors_not_fixed [ 81.749221][ T5104] bcachefs (loop0): bch2_gc_btrees(): error fsck_errors_not_fixed [ 81.757975][ T5104] bcachefs (loop0): bch2_check_allocations(): error fsck_errors_not_fixed [ 81.767254][ T5104] bcachefs (loop0): bch2_fs_recovery(): error fsck_errors_not_fixed [ 81.775248][ T5104] bcachefs (loop0): bch2_fs_start(): error starting filesystem fsck_errors_not_fixed [ 81.785320][ T5104] bcachefs (loop0): shutting down [ 81.803190][ T5104] bcachefs (loop0): shutdown complete [pid 5104] mount("/dev/loop0", "./file1", "bcachefs", MS_NOSUID|MS_SYNCHRONOUS|MS_RELATIME, "\xff") = -1 EINVAL (Invalid argument) [pid 5104] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5104] ioctl(3, LOOP_CLR_FD) = 0 [ 82.161508][ T5104] bcachefs: bch2_fs_get_tree() error: fsck_errors_not_fixed [pid 5104] close(3) = 0 [pid 5104] exit_group(0) = ? [pid 5104] +++ exited with 0 +++ --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5104, si_uid=0, si_status=0, si_utime=3 /* 0.03 s */, si_stime=84 /* 0.84 s */} --- openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) close(3) = 0 clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5113 attached , child_tidptr=0x55555a5d6650) = 5113 [pid 5113] set_robust_list(0x55555a5d6660, 24) = 0 [pid 5113] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5113] setpgid(0, 0) = 0 [pid 5113] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5113] write(3, "1000", 4) = 4 [pid 5113] close(3) = 0 [pid 5113] write(1, "executing program\n", 18executing program ) = 18 [pid 5113] memfd_create("syzkaller", 0) = 3 [pid 5113] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fdaab800000 [pid 5113] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 5113] munmap(0x7fdaab800000, 138412032) = 0 [pid 5113] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5113] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5113] close(3) = 0 [pid 5113] close(4) = 0 [pid 5113] mkdir("./file1", 0777) = -1 EEXIST (File exists) [ 82.665758][ T5113] loop0: detected capacity change from 0 to 32768 [ 82.706060][ T5113] bcachefs (/dev/loop0): error reading default superblock: Not a bcachefs superblock (got magic c68573f6-4e1a-4502-8265-f57f48ba6d81) [ 82.756452][ T5113] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 82.771743][ T5113] bcachefs (loop0): recovering from clean shutdown, journal seq 13 [ 82.780062][ T5113] bcachefs (loop0): Doing compatible version upgrade from 1.7: mi_btree_bitmap to 1.9: disk_accounting_v2 [ 82.780062][ T5113] running recovery passes: check_allocations [ 82.798593][ T5113] BUG: sleeping function called from invalid context at include/linux/sched/mm.h:337 [ 82.808143][ T5113] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5113, name: syz-executor271 [ 82.817729][ T5113] preempt_count: 1, expected: 0 [ 82.822670][ T5113] RCU nest depth: 0, expected: 0 [ 82.827661][ T5113] 2 locks held by syz-executor271/5113: [ 82.833240][ T5113] #0: ffff888078f00278 (&c->state_lock){+.+.}-{3:3}, at: bch2_fs_start+0x45/0x5b0 [ 82.842717][ T5113] #1: ffff888078f4a880 (&j->lock){+.+.}-{2:2}, at: bch2_fs_journal_start+0x1219/0x14a0 [ 82.852581][ T5113] Preemption disabled at: [ 82.852592][ T5113] [<0000000000000000>] 0x0 [ 82.861445][ T5113] CPU: 1 UID: 0 PID: 5113 Comm: syz-executor271 Tainted: G W 6.10.0-next-20240718-syzkaller #0 [ 82.873169][ T5113] Tainted: [W]=WARN [ 82.876971][ T5113] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 [ 82.887026][ T5113] Call Trace: [ 82.890310][ T5113] [ 82.893238][ T5113] dump_stack_lvl+0x241/0x360 [ 82.897938][ T5113] ? __pfx_dump_stack_lvl+0x10/0x10 [ 82.903231][ T5113] ? __pfx__printk+0x10/0x10 [ 82.907841][ T5113] __might_resched+0x5d4/0x780 [ 82.912636][ T5113] ? __pfx___might_resched+0x10/0x10 [ 82.917937][ T5113] ? fs_reclaim_acquire+0x93/0x140 [ 82.923058][ T5113] __kmalloc_node_track_caller_noprof+0xcb/0x440 [ 82.929395][ T5113] ? bch2_printbuf_make_room+0x1f1/0x350 [ 82.935034][ T5113] krealloc_noprof+0x7d/0x120 [ 82.939721][ T5113] bch2_printbuf_make_room+0x1f1/0x350 [ 82.945187][ T5113] bch2_prt_printf+0x267/0x6d0 [ 82.949958][ T5113] ? bch2_journal_space_available+0x11c/0x1b00 [ 82.956138][ T5113] ? __pfx_bch2_prt_printf+0x10/0x10 [ 82.961523][ T5113] bch2_journal_space_available+0x89b/0x1b00 [ 82.967518][ T5113] ? kasan_save_track+0x51/0x80 [ 82.972389][ T5113] ? kasan_save_track+0x3f/0x80 [ 82.977254][ T5113] ? poison_slab_object+0xe0/0x150 [ 82.982373][ T5113] ? __kasan_slab_free+0x37/0x60 [ 82.987319][ T5113] ? bch2_journal_space_available+0x11c/0x1b00 [ 82.993486][ T5113] ? bch2_journal_log_msg+0xda/0x120 [ 82.998778][ T5113] ? bch2_fs_recovery+0x1e48/0x38d0 [ 83.003995][ T5113] ? bch2_fs_get_tree+0xd61/0x1700 [ 83.009119][ T5113] ? vfs_get_tree+0x90/0x2a0 [ 83.013718][ T5113] ? do_new_mount+0x2be/0xb40 [ 83.018403][ T5113] ? __se_sys_mount+0x2d6/0x3c0 [ 83.023259][ T5113] ? __pfx_bch2_journal_space_available+0x10/0x10 [ 83.029693][ T5113] ? mark_lock+0x9a/0x360 [ 83.034046][ T5113] ? __lock_acquire+0x1384/0x2050 [ 83.039105][ T5113] ? kasan_quarantine_put+0xdc/0x230 [ 83.044405][ T5113] ? lockdep_hardirqs_on+0x99/0x150 [ 83.049634][ T5113] ? __pfx_lock_acquire+0x10/0x10 [ 83.054851][ T5113] ? do_raw_spin_lock+0x14f/0x370 [ 83.059895][ T5113] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 83.065278][ T5113] ? __genradix_iter_peek+0x3d0/0x430 [ 83.070769][ T5113] bch2_fs_journal_start+0x1356/0x14a0 [ 83.076278][ T5113] ? __pfx_bch2_fs_journal_start+0x10/0x10 [ 83.082177][ T5113] ? journal_replay_entry_early+0x4d/0xb70 [ 83.088001][ T5113] ? __pfx_bch2_journal_log_msg+0x10/0x10 [ 83.093749][ T5113] ? bch2_recovery_passes_from_stable+0x104/0x120 [ 83.100185][ T5113] bch2_fs_recovery+0x1ec8/0x38d0 [ 83.105247][ T5113] ? __pfx_bch2_fs_recovery+0x10/0x10 [ 83.110656][ T5113] ? __pfx_lock_release+0x10/0x10 [ 83.115698][ T5113] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 83.121351][ T5113] ? __pfx_lock_release+0x10/0x10 [ 83.126401][ T5113] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 83.132044][ T5113] ? bch2_get_next_online_dev+0x4b9/0x4f0 [ 83.137820][ T5113] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 83.143478][ T5113] ? llist_reverse_order+0x72/0x90 [ 83.148614][ T5113] bch2_fs_start+0x356/0x5b0 [ 83.153224][ T5113] bch2_fs_get_tree+0xd61/0x1700 [ 83.158191][ T5113] ? __pfx_bch2_parse_one_mount_opt+0x10/0x10 [ 83.164275][ T5113] ? __pfx_bch2_fs_get_tree+0x10/0x10 [ 83.169681][ T5113] ? generic_parse_monolithic+0x387/0x400 [ 83.175419][ T5113] ? apparmor_capable+0x13b/0x1b0 [ 83.180475][ T5113] ? bpf_lsm_capable+0x9/0x10 [ 83.185193][ T5113] vfs_get_tree+0x90/0x2a0 [ 83.189634][ T5113] do_new_mount+0x2be/0xb40 [ 83.194255][ T5113] ? __pfx_do_new_mount+0x10/0x10 [ 83.199306][ T5113] __se_sys_mount+0x2d6/0x3c0 [ 83.204091][ T5113] ? __pfx___se_sys_mount+0x10/0x10 [ 83.209389][ T5113] ? do_syscall_64+0x100/0x230 [ 83.214174][ T5113] ? __x64_sys_mount+0x20/0xc0 [ 83.218959][ T5113] do_syscall_64+0xf3/0x230 [ 83.223571][ T5113] ? clear_bhb_loop+0x35/0x90 [ 83.228259][ T5113] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 83.234160][ T5113] RIP: 0033:0x7fdab3de2dea [ 83.238585][ T5113] 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 [ 83.258198][ T5113] RSP: 002b:00007ffc5678dad8 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 [ 83.266626][ T5113] RAX: ffffffffffffffda RBX: 00007ffc5678daf0 RCX: 00007fdab3de2dea [ 83.274613][ T5113] RDX: 0000000020000000 RSI: 000000002000f680 RDI: 00007ffc5678daf0 [ 83.282610][ T5113] RBP: 0000000000000004 R08: 00007ffc5678db30 R09: 000000000000f626 [ 83.290590][ T5113] R10: 0000000000200012 R11: 0000000000000282 R12: 0000000000200012 [ 83.298563][ T5113] R13: 00007ffc5678db30 R14: 0000000000000003 R15: 0000000001000000 [ 83.306565][ T5113] [ 83.310700][ T5113] bcachefs (loop0): insufficient writeable journal devices available: have 0, need 1 [ 83.310700][ T5113] rw journal devs: [ 83.336601][ T5113] bcachefs (loop0): accounting_read... done [ 83.342697][ T5113] bcachefs (loop0): alloc_read... done [ 83.348296][ T5113] bcachefs (loop0): stripes_read... done [ 83.353993][ T5113] bcachefs (loop0): snapshots_read... done [ 83.360039][ T5113] bcachefs (loop0): check_allocations... [ 83.362318][ T5113] btree ptr not marked in member info btree allocated bitmap [ 83.362334][ T5113] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 1818ce08861e3527 written 40 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, shutting down [ 83.390504][ T5113] bcachefs (loop0): inconsistency detected - emergency read only at journal seq 13 [ 83.399896][ T5113] bcachefs (loop0): bch2_gc_mark_key(): error fsck_errors_not_fixed [ 83.407962][ T5113] bcachefs (loop0): bch2_gc_btree(): error fsck_errors_not_fixed [ 83.415800][ T5113] bcachefs (loop0): bch2_gc_btrees(): error fsck_errors_not_fixed [ 83.423717][ T5113] bcachefs (loop0): bch2_check_allocations(): error fsck_errors_not_fixed [ 83.432358][ T5113] bcachefs (loop0): bch2_fs_recovery(): error fsck_errors_not_fixed [ 83.440464][ T5113] bcachefs (loop0): bch2_fs_start(): error starting filesystem fsck_errors_not_fixed [ 83.450294][ T5113] bcachefs (loop0): shutting down [ 83.465868][ T5113] bcachefs (loop0): shutdown complete [pid 5113] mount("/dev/loop0", "./file1", "bcachefs", MS_NOSUID|MS_SYNCHRONOUS|MS_RELATIME, "\xff") = -1 EINVAL (Invalid argument) [pid 5113] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5113] ioctl(3, LOOP_CLR_FD) = 0 [ 83.681199][ T5113] bcachefs: bch2_fs_get_tree() error: fsck_errors_not_fixed [pid 5113] close(3) = 0 [pid 5113] exit_group(0) = ? [pid 5113] +++ exited with 0 +++ --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5113, si_uid=0, si_status=0, si_utime=5 /* 0.05 s */, si_stime=73 /* 0.73 s */} --- restart_syscall(<... resuming interrupted clone ...>) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) close(3) = 0 clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x55555a5d6650) = 5122 ./strace-static-x86_64: Process 5122 attached [pid 5122] set_robust_list(0x55555a5d6660, 24) = 0 [pid 5122] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5122] setpgid(0, 0) = 0 [pid 5122] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5122] write(3, "1000", 4) = 4 [pid 5122] close(3) = 0 executing program [pid 5122] write(1, "executing program\n", 18) = 18 [pid 5122] memfd_create("syzkaller", 0) = 3 [pid 5122] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fdaab800000 [pid 5122] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 5122] munmap(0x7fdaab800000, 138412032) = 0 [pid 5122] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5122] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5122] close(3) = 0 [pid 5122] close(4) = 0 [pid 5122] mkdir("./file1", 0777) = -1 EEXIST (File exists) [ 84.110796][ T5122] loop0: detected capacity change from 0 to 32768 [ 84.131577][ T5122] bcachefs (/dev/loop0): error reading default superblock: Not a bcachefs superblock (got magic c68573f6-4e1a-4502-8265-f57f48ba6d81) [ 84.181685][ T5122] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 84.197030][ T5122] bcachefs (loop0): recovering from clean shutdown, journal seq 13 [ 84.205039][ T5122] bcachefs (loop0): Doing compatible version upgrade from 1.7: mi_btree_bitmap to 1.9: disk_accounting_v2 [ 84.205039][ T5122] running recovery passes: check_allocations [ 84.224085][ T5122] BUG: sleeping function called from invalid context at include/linux/sched/mm.h:337 [ 84.233696][ T5122] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5122, name: syz-executor271 [ 84.243249][ T5122] preempt_count: 1, expected: 0 [ 84.248154][ T5122] RCU nest depth: 0, expected: 0 [ 84.253094][ T5122] 2 locks held by syz-executor271/5122: [ 84.258742][ T5122] #0: ffff888078f00278 (&c->state_lock){+.+.}-{3:3}, at: bch2_fs_start+0x45/0x5b0 [ 84.268201][ T5122] #1: ffff888078f4a880 (&j->lock){+.+.}-{2:2}, at: bch2_fs_journal_start+0x1219/0x14a0 [ 84.278165][ T5122] Preemption disabled at: [ 84.278180][ T5122] [<0000000000000000>] 0x0 [ 84.287026][ T5122] CPU: 0 UID: 0 PID: 5122 Comm: syz-executor271 Tainted: G W 6.10.0-next-20240718-syzkaller #0 [ 84.298807][ T5122] Tainted: [W]=WARN [ 84.302639][ T5122] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 [ 84.312709][ T5122] Call Trace: [ 84.316002][ T5122] [ 84.318943][ T5122] dump_stack_lvl+0x241/0x360 [ 84.323643][ T5122] ? __pfx_dump_stack_lvl+0x10/0x10 [ 84.328861][ T5122] ? __pfx__printk+0x10/0x10 [ 84.333478][ T5122] __might_resched+0x5d4/0x780 [ 84.338263][ T5122] ? __pfx___might_resched+0x10/0x10 [ 84.343568][ T5122] ? fs_reclaim_acquire+0x93/0x140 [ 84.348694][ T5122] __kmalloc_node_track_caller_noprof+0xcb/0x440 [ 84.355053][ T5122] ? bch2_printbuf_make_room+0x1f1/0x350 [ 84.360720][ T5122] krealloc_noprof+0x7d/0x120 [ 84.365412][ T5122] bch2_printbuf_make_room+0x1f1/0x350 [ 84.370883][ T5122] bch2_prt_printf+0x267/0x6d0 [ 84.375661][ T5122] ? bch2_journal_space_available+0x11c/0x1b00 [ 84.381837][ T5122] ? __pfx_bch2_prt_printf+0x10/0x10 [ 84.387143][ T5122] bch2_journal_space_available+0x89b/0x1b00 [ 84.393142][ T5122] ? kasan_save_track+0x51/0x80 [ 84.398006][ T5122] ? kasan_save_track+0x3f/0x80 [ 84.402873][ T5122] ? poison_slab_object+0xe0/0x150 [ 84.408007][ T5122] ? __kasan_slab_free+0x37/0x60 [ 84.412950][ T5122] ? bch2_journal_space_available+0x11c/0x1b00 [ 84.419118][ T5122] ? bch2_journal_log_msg+0xda/0x120 [ 84.424436][ T5122] ? bch2_fs_recovery+0x1e48/0x38d0 [ 84.429666][ T5122] ? bch2_fs_get_tree+0xd61/0x1700 [ 84.434804][ T5122] ? vfs_get_tree+0x90/0x2a0 [ 84.439413][ T5122] ? do_new_mount+0x2be/0xb40 [ 84.444102][ T5122] ? __se_sys_mount+0x2d6/0x3c0 [ 84.448985][ T5122] ? __pfx_bch2_journal_space_available+0x10/0x10 [ 84.455425][ T5122] ? mark_lock+0x9a/0x360 [ 84.459786][ T5122] ? __lock_acquire+0x1384/0x2050 [ 84.464861][ T5122] ? kasan_quarantine_put+0xdc/0x230 [ 84.470164][ T5122] ? lockdep_hardirqs_on+0x99/0x150 [ 84.475657][ T5122] ? __pfx_lock_acquire+0x10/0x10 [ 84.480708][ T5122] ? do_raw_spin_lock+0x14f/0x370 [ 84.485779][ T5122] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 84.491169][ T5122] ? __genradix_iter_peek+0x3d0/0x430 [ 84.496561][ T5122] bch2_fs_journal_start+0x1356/0x14a0 [ 84.502051][ T5122] ? __pfx_bch2_fs_journal_start+0x10/0x10 [ 84.507867][ T5122] ? journal_replay_entry_early+0x4d/0xb70 [ 84.513689][ T5122] ? __pfx_bch2_journal_log_msg+0x10/0x10 [ 84.519534][ T5122] ? bch2_recovery_passes_from_stable+0x104/0x120 [ 84.525980][ T5122] bch2_fs_recovery+0x1ec8/0x38d0 [ 84.531034][ T5122] ? __pfx_bch2_fs_recovery+0x10/0x10 [ 84.536444][ T5122] ? __pfx_lock_release+0x10/0x10 [ 84.541484][ T5122] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 84.547133][ T5122] ? __pfx_lock_release+0x10/0x10 [ 84.552184][ T5122] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 84.557828][ T5122] ? bch2_get_next_online_dev+0x4b9/0x4f0 [ 84.563558][ T5122] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 84.569293][ T5122] ? llist_reverse_order+0x72/0x90 [ 84.574428][ T5122] bch2_fs_start+0x356/0x5b0 [ 84.579038][ T5122] bch2_fs_get_tree+0xd61/0x1700 [ 84.584006][ T5122] ? __pfx_bch2_parse_one_mount_opt+0x10/0x10 [ 84.590089][ T5122] ? __pfx_bch2_fs_get_tree+0x10/0x10 [ 84.595504][ T5122] ? generic_parse_monolithic+0x387/0x400 [ 84.601258][ T5122] ? apparmor_capable+0x13b/0x1b0 [ 84.606303][ T5122] ? bpf_lsm_capable+0x9/0x10 [ 84.610996][ T5122] vfs_get_tree+0x90/0x2a0 [ 84.615421][ T5122] do_new_mount+0x2be/0xb40 [ 84.619936][ T5122] ? __pfx_do_new_mount+0x10/0x10 [ 84.624976][ T5122] __se_sys_mount+0x2d6/0x3c0 [ 84.629679][ T5122] ? __pfx___se_sys_mount+0x10/0x10 [ 84.634908][ T5122] ? do_syscall_64+0x100/0x230 [ 84.639690][ T5122] ? __x64_sys_mount+0x20/0xc0 [ 84.644467][ T5122] do_syscall_64+0xf3/0x230 [ 84.648988][ T5122] ? clear_bhb_loop+0x35/0x90 [ 84.653680][ T5122] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 84.659608][ T5122] RIP: 0033:0x7fdab3de2dea [ 84.664042][ T5122] 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 [ 84.683692][ T5122] RSP: 002b:00007ffc5678dad8 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 [ 84.692154][ T5122] RAX: ffffffffffffffda RBX: 00007ffc5678daf0 RCX: 00007fdab3de2dea [ 84.700134][ T5122] RDX: 0000000020000000 RSI: 000000002000f680 RDI: 00007ffc5678daf0 [ 84.708141][ T5122] RBP: 0000000000000004 R08: 00007ffc5678db30 R09: 000000000000f626 [ 84.716209][ T5122] R10: 0000000000200012 R11: 0000000000000282 R12: 0000000000200012 [ 84.724185][ T5122] R13: 00007ffc5678db30 R14: 0000000000000003 R15: 0000000001000000 [ 84.732183][ T5122] [ 84.735428][ T5122] bcachefs (loop0): insufficient writeable journal devices available: have 0, need 1 [ 84.735428][ T5122] rw journal devs: [ 84.760525][ T5122] bcachefs (loop0): accounting_read... done [ 84.766558][ T5122] bcachefs (loop0): alloc_read... done [ 84.772119][ T5122] bcachefs (loop0): stripes_read... done [ 84.777857][ T5122] bcachefs (loop0): snapshots_read... done [ 84.783818][ T5122] bcachefs (loop0): check_allocations... [ 84.785320][ T5122] btree ptr not marked in member info btree allocated bitmap [ 84.785335][ T5122] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 1818ce08861e3527 written 40 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, shutting down [ 84.813469][ T5122] bcachefs (loop0): inconsistency detected - emergency read only at journal seq 13 [ 84.822880][ T5122] bcachefs (loop0): bch2_gc_mark_key(): error fsck_errors_not_fixed [ 84.830922][ T5122] bcachefs (loop0): bch2_gc_btree(): error fsck_errors_not_fixed [ 84.838800][ T5122] bcachefs (loop0): bch2_gc_btrees(): error fsck_errors_not_fixed [ 84.846714][ T5122] bcachefs (loop0): bch2_check_allocations(): error fsck_errors_not_fixed [ 84.855386][ T5122] bcachefs (loop0): bch2_fs_recovery(): error fsck_errors_not_fixed [ 84.863461][ T5122] bcachefs (loop0): bch2_fs_start(): error starting filesystem fsck_errors_not_fixed [ 84.873019][ T5122] bcachefs (loop0): shutting down [ 84.891091][ T5122] bcachefs (loop0): shutdown complete [pid 5122] mount("/dev/loop0", "./file1", "bcachefs", MS_NOSUID|MS_SYNCHRONOUS|MS_RELATIME, "\xff") = -1 EINVAL (Invalid argument) [pid 5122] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5122] ioctl(3, LOOP_CLR_FD) = 0 [ 85.126494][ T5122] bcachefs: bch2_fs_get_tree() error: fsck_errors_not_fixed [pid 5122] close(3) = 0 [pid 5122] exit_group(0) = ? [pid 5122] +++ exited with 0 +++ --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5122, si_uid=0, si_status=0, si_utime=5 /* 0.05 s */, si_stime=72 /* 0.72 s */} --- restart_syscall(<... resuming interrupted clone ...>) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) close(3) = 0 clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5131 attached , child_tidptr=0x55555a5d6650) = 5131 [pid 5131] set_robust_list(0x55555a5d6660, 24) = 0 [pid 5131] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5131] setpgid(0, 0) = 0 [pid 5131] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5131] write(3, "1000", 4) = 4 [pid 5131] close(3) = 0 [pid 5131] write(1, "executing program\n", 18executing program ) = 18 [pid 5131] memfd_create("syzkaller", 0) = 3 [pid 5131] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fdaab800000 [pid 5131] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 5131] munmap(0x7fdaab800000, 138412032) = 0 [pid 5131] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5131] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5131] close(3) = 0 [pid 5131] close(4) = 0 [pid 5131] mkdir("./file1", 0777) = -1 EEXIST (File exists) [ 85.535299][ T5131] loop0: detected capacity change from 0 to 32768 [ 85.557710][ T5131] bcachefs (/dev/loop0): error reading default superblock: Not a bcachefs superblock (got magic c68573f6-4e1a-4502-8265-f57f48ba6d81) [ 85.613716][ T5131] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 85.628962][ T5131] bcachefs (loop0): recovering from clean shutdown, journal seq 13 [ 85.637072][ T5131] bcachefs (loop0): Doing compatible version upgrade from 1.7: mi_btree_bitmap to 1.9: disk_accounting_v2 [ 85.637072][ T5131] running recovery passes: check_allocations [ 85.655449][ T5131] BUG: sleeping function called from invalid context at include/linux/sched/mm.h:337 [ 85.664986][ T5131] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5131, name: syz-executor271 [ 85.674495][ T5131] preempt_count: 1, expected: 0 [ 85.679447][ T5131] RCU nest depth: 0, expected: 0 [ 85.684420][ T5131] 2 locks held by syz-executor271/5131: [ 85.690069][ T5131] #0: ffff888078f00278 (&c->state_lock){+.+.}-{3:3}, at: bch2_fs_start+0x45/0x5b0 [ 85.699515][ T5131] #1: ffff888078f4a880 (&j->lock){+.+.}-{2:2}, at: bch2_fs_journal_start+0x1219/0x14a0 [ 85.709389][ T5131] Preemption disabled at: [ 85.709408][ T5131] [<0000000000000000>] 0x0 [ 85.718238][ T5131] CPU: 0 UID: 0 PID: 5131 Comm: syz-executor271 Tainted: G W 6.10.0-next-20240718-syzkaller #0 [ 85.729978][ T5131] Tainted: [W]=WARN [ 85.733791][ T5131] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 [ 85.743891][ T5131] Call Trace: [ 85.747179][ T5131] [ 85.750117][ T5131] dump_stack_lvl+0x241/0x360 [ 85.754826][ T5131] ? __pfx_dump_stack_lvl+0x10/0x10 [ 85.760045][ T5131] ? __pfx__printk+0x10/0x10 [ 85.764660][ T5131] __might_resched+0x5d4/0x780 [ 85.769447][ T5131] ? __pfx___might_resched+0x10/0x10 [ 85.774755][ T5131] ? fs_reclaim_acquire+0x93/0x140 [ 85.779877][ T5131] __kmalloc_node_track_caller_noprof+0xcb/0x440 [ 85.786218][ T5131] ? bch2_printbuf_make_room+0x1f1/0x350 [ 85.791863][ T5131] krealloc_noprof+0x7d/0x120 [ 85.796655][ T5131] bch2_printbuf_make_room+0x1f1/0x350 [ 85.802127][ T5131] bch2_prt_printf+0x267/0x6d0 [ 85.806907][ T5131] ? bch2_journal_space_available+0x11c/0x1b00 [ 85.813077][ T5131] ? __pfx_bch2_prt_printf+0x10/0x10 [ 85.818470][ T5131] bch2_journal_space_available+0x89b/0x1b00 [ 85.824467][ T5131] ? kasan_save_track+0x51/0x80 [ 85.829335][ T5131] ? kasan_save_track+0x3f/0x80 [ 85.834207][ T5131] ? poison_slab_object+0xe0/0x150 [ 85.839326][ T5131] ? __kasan_slab_free+0x37/0x60 [ 85.844273][ T5131] ? bch2_journal_space_available+0x11c/0x1b00 [ 85.850437][ T5131] ? bch2_journal_log_msg+0xda/0x120 [ 85.855737][ T5131] ? bch2_fs_recovery+0x1e48/0x38d0 [ 85.860949][ T5131] ? bch2_fs_get_tree+0xd61/0x1700 [ 85.866073][ T5131] ? vfs_get_tree+0x90/0x2a0 [ 85.870668][ T5131] ? do_new_mount+0x2be/0xb40 [ 85.875351][ T5131] ? __se_sys_mount+0x2d6/0x3c0 [ 85.880225][ T5131] ? __pfx_bch2_journal_space_available+0x10/0x10 [ 85.886660][ T5131] ? mark_lock+0x9a/0x360 [ 85.891013][ T5131] ? __lock_acquire+0x1384/0x2050 [ 85.896073][ T5131] ? kasan_quarantine_put+0xdc/0x230 [ 85.901394][ T5131] ? lockdep_hardirqs_on+0x99/0x150 [ 85.906703][ T5131] ? __pfx_lock_acquire+0x10/0x10 [ 85.911747][ T5131] ? do_raw_spin_lock+0x14f/0x370 [ 85.916787][ T5131] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 85.922167][ T5131] ? __genradix_iter_peek+0x3d0/0x430 [ 85.927584][ T5131] bch2_fs_journal_start+0x1356/0x14a0 [ 85.933073][ T5131] ? __pfx_bch2_fs_journal_start+0x10/0x10 [ 85.938888][ T5131] ? journal_replay_entry_early+0x4d/0xb70 [ 85.944710][ T5131] ? __pfx_bch2_journal_log_msg+0x10/0x10 [ 85.950461][ T5131] ? bch2_recovery_passes_from_stable+0x104/0x120 [ 85.956899][ T5131] bch2_fs_recovery+0x1ec8/0x38d0 [ 85.961955][ T5131] ? __pfx_bch2_fs_recovery+0x10/0x10 [ 85.967370][ T5131] ? __pfx_lock_release+0x10/0x10 [ 85.972409][ T5131] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 85.978051][ T5131] ? __pfx_lock_release+0x10/0x10 [ 85.983101][ T5131] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 85.988743][ T5131] ? bch2_get_next_online_dev+0x4b9/0x4f0 [ 85.994470][ T5131] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 86.000115][ T5131] ? llist_reverse_order+0x72/0x90 [ 86.005249][ T5131] bch2_fs_start+0x356/0x5b0 [ 86.009860][ T5131] bch2_fs_get_tree+0xd61/0x1700 [ 86.014827][ T5131] ? __pfx_bch2_parse_one_mount_opt+0x10/0x10 [ 86.020910][ T5131] ? __pfx_bch2_fs_get_tree+0x10/0x10 [ 86.026315][ T5131] ? generic_parse_monolithic+0x387/0x400 [ 86.032056][ T5131] ? apparmor_capable+0x13b/0x1b0 [ 86.037096][ T5131] ? bpf_lsm_capable+0x9/0x10 [ 86.041788][ T5131] vfs_get_tree+0x90/0x2a0 [ 86.046215][ T5131] do_new_mount+0x2be/0xb40 [ 86.050730][ T5131] ? __pfx_do_new_mount+0x10/0x10 [ 86.055772][ T5131] __se_sys_mount+0x2d6/0x3c0 [ 86.060461][ T5131] ? __pfx___se_sys_mount+0x10/0x10 [ 86.065667][ T5131] ? do_syscall_64+0x100/0x230 [ 86.070458][ T5131] ? __x64_sys_mount+0x20/0xc0 [ 86.075231][ T5131] do_syscall_64+0xf3/0x230 [ 86.079756][ T5131] ? clear_bhb_loop+0x35/0x90 [ 86.084444][ T5131] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 86.090523][ T5131] RIP: 0033:0x7fdab3de2dea [ 86.094948][ T5131] 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 [ 86.114595][ T5131] RSP: 002b:00007ffc5678dad8 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 [ 86.123029][ T5131] RAX: ffffffffffffffda RBX: 00007ffc5678daf0 RCX: 00007fdab3de2dea [ 86.131008][ T5131] RDX: 0000000020000000 RSI: 000000002000f680 RDI: 00007ffc5678daf0 [ 86.138986][ T5131] RBP: 0000000000000004 R08: 00007ffc5678db30 R09: 000000000000f626 [ 86.146966][ T5131] R10: 0000000000200012 R11: 0000000000000282 R12: 0000000000200012 [ 86.154946][ T5131] R13: 00007ffc5678db30 R14: 0000000000000003 R15: 0000000001000000 [ 86.162941][ T5131] [ 86.166222][ T5131] bcachefs (loop0): insufficient writeable journal devices available: have 0, need 1 [ 86.166222][ T5131] rw journal devs: [ 86.193048][ T5131] bcachefs (loop0): accounting_read... done [ 86.199188][ T5131] bcachefs (loop0): alloc_read... done [ 86.204818][ T5131] bcachefs (loop0): stripes_read... done [ 86.210769][ T5131] bcachefs (loop0): snapshots_read... done [ 86.216806][ T5131] bcachefs (loop0): check_allocations... [ 86.218297][ T5131] btree ptr not marked in member info btree allocated bitmap [ 86.218312][ T5131] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 1818ce08861e3527 written 40 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, shutting down [ 86.246547][ T5131] bcachefs (loop0): inconsistency detected - emergency read only at journal seq 13 [ 86.255954][ T5131] bcachefs (loop0): bch2_gc_mark_key(): error fsck_errors_not_fixed [ 86.263947][ T5131] bcachefs (loop0): bch2_gc_btree(): error fsck_errors_not_fixed [ 86.271817][ T5131] bcachefs (loop0): bch2_gc_btrees(): error fsck_errors_not_fixed [ 86.279755][ T5131] bcachefs (loop0): bch2_check_allocations(): error fsck_errors_not_fixed [ 86.288471][ T5131] bcachefs (loop0): bch2_fs_recovery(): error fsck_errors_not_fixed [ 86.296652][ T5131] bcachefs (loop0): bch2_fs_start(): error starting filesystem fsck_errors_not_fixed [ 86.306426][ T5131] bcachefs (loop0): shutting down [ 86.322215][ T5131] bcachefs (loop0): shutdown complete [pid 5131] mount("/dev/loop0", "./file1", "bcachefs", MS_NOSUID|MS_SYNCHRONOUS|MS_RELATIME, "\xff") = -1 EINVAL (Invalid argument) [pid 5131] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5131] ioctl(3, LOOP_CLR_FD) = 0 [ 86.557173][ T5131] bcachefs: bch2_fs_get_tree() error: fsck_errors_not_fixed [pid 5131] close(3) = 0 [pid 5131] exit_group(0) = ? [pid 5131] +++ exited with 0 +++ --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5131, si_uid=0, si_status=0, si_utime=3 /* 0.03 s */, si_stime=73 /* 0.73 s */} --- restart_syscall(<... resuming interrupted clone ...>) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) close(3) = 0 clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x55555a5d6650) = 5140 ./strace-static-x86_64: Process 5140 attached [pid 5140] set_robust_list(0x55555a5d6660, 24) = 0 [pid 5140] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5140] setpgid(0, 0) = 0 [pid 5140] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5140] write(3, "1000", 4) = 4 [pid 5140] close(3) = 0 [pid 5140] write(1, "executing program\n", 18executing program ) = 18 [pid 5140] memfd_create("syzkaller", 0) = 3 [pid 5140] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fdaab800000 [pid 5140] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 5140] munmap(0x7fdaab800000, 138412032) = 0 [pid 5140] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5140] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5140] close(3) = 0 [pid 5140] close(4) = 0 [pid 5140] mkdir("./file1", 0777) = -1 EEXIST (File exists) [ 86.947135][ T5140] loop0: detected capacity change from 0 to 32768 [ 86.970085][ T5140] bcachefs (/dev/loop0): error reading default superblock: Not a bcachefs superblock (got magic c68573f6-4e1a-4502-8265-f57f48ba6d81) [ 87.023867][ T5140] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 87.039272][ T5140] bcachefs (loop0): recovering from clean shutdown, journal seq 13 [ 87.049475][ T1172] cfg80211: failed to load regulatory.db [ 87.051048][ T5140] bcachefs (loop0): Doing compatible version upgrade from 1.7: mi_btree_bitmap to 1.9: disk_accounting_v2 [ 87.051048][ T5140] running recovery passes: check_allocations [ 87.073980][ T5140] BUG: sleeping function called from invalid context at include/linux/sched/mm.h:337 [ 87.083599][ T5140] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5140, name: syz-executor271 [ 87.093172][ T5140] preempt_count: 1, expected: 0 [ 87.098071][ T5140] RCU nest depth: 0, expected: 0 [ 87.103003][ T5140] 2 locks held by syz-executor271/5140: [ 87.109064][ T5140] #0: ffff888078f00278 (&c->state_lock){+.+.}-{3:3}, at: bch2_fs_start+0x45/0x5b0 [ 87.118487][ T5140] #1: ffff888078f4a880 (&j->lock){+.+.}-{2:2}, at: bch2_fs_journal_start+0x1219/0x14a0 [ 87.128368][ T5140] Preemption disabled at: [ 87.128379][ T5140] [<0000000000000000>] 0x0 [ 87.137208][ T5140] CPU: 1 UID: 0 PID: 5140 Comm: syz-executor271 Tainted: G W 6.10.0-next-20240718-syzkaller #0 [ 87.148959][ T5140] Tainted: [W]=WARN [ 87.152761][ T5140] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 [ 87.162818][ T5140] Call Trace: [ 87.166105][ T5140] [ 87.169044][ T5140] dump_stack_lvl+0x241/0x360 [ 87.173745][ T5140] ? __pfx_dump_stack_lvl+0x10/0x10 [ 87.178961][ T5140] ? __pfx__printk+0x10/0x10 [ 87.183577][ T5140] __might_resched+0x5d4/0x780 [ 87.188359][ T5140] ? __pfx___might_resched+0x10/0x10 [ 87.193668][ T5140] ? fs_reclaim_acquire+0x93/0x140 [ 87.198794][ T5140] __kmalloc_node_track_caller_noprof+0xcb/0x440 [ 87.205154][ T5140] ? bch2_printbuf_make_room+0x1f1/0x350 [ 87.210801][ T5140] krealloc_noprof+0x7d/0x120 [ 87.215580][ T5140] bch2_printbuf_make_room+0x1f1/0x350 [ 87.221051][ T5140] bch2_prt_printf+0x267/0x6d0 [ 87.225838][ T5140] ? bch2_journal_space_available+0x11c/0x1b00 [ 87.232022][ T5140] ? __pfx_bch2_prt_printf+0x10/0x10 [ 87.237329][ T5140] bch2_journal_space_available+0x89b/0x1b00 [ 87.243325][ T5140] ? kasan_save_track+0x51/0x80 [ 87.248196][ T5140] ? kasan_save_track+0x3f/0x80 [ 87.253066][ T5140] ? poison_slab_object+0xe0/0x150 [ 87.258200][ T5140] ? __kasan_slab_free+0x37/0x60 [ 87.263145][ T5140] ? bch2_journal_space_available+0x11c/0x1b00 [ 87.269317][ T5140] ? bch2_journal_log_msg+0xda/0x120 [ 87.274607][ T5140] ? bch2_fs_recovery+0x1e48/0x38d0 [ 87.279818][ T5140] ? bch2_fs_get_tree+0xd61/0x1700 [ 87.284941][ T5140] ? vfs_get_tree+0x90/0x2a0 [ 87.289536][ T5140] ? do_new_mount+0x2be/0xb40 [ 87.294234][ T5140] ? __se_sys_mount+0x2d6/0x3c0 [ 87.299113][ T5140] ? __pfx_bch2_journal_space_available+0x10/0x10 [ 87.305579][ T5140] ? mark_lock+0x9a/0x360 [ 87.310204][ T5140] ? __lock_acquire+0x1384/0x2050 [ 87.315297][ T5140] ? kasan_quarantine_put+0xdc/0x230 [ 87.320643][ T5140] ? lockdep_hardirqs_on+0x99/0x150 [ 87.325869][ T5140] ? __pfx_lock_acquire+0x10/0x10 [ 87.330915][ T5140] ? do_raw_spin_lock+0x14f/0x370 [ 87.335972][ T5140] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 87.341441][ T5140] ? __genradix_iter_peek+0x3d0/0x430 [ 87.346837][ T5140] bch2_fs_journal_start+0x1356/0x14a0 [ 87.352326][ T5140] ? __pfx_bch2_fs_journal_start+0x10/0x10 [ 87.358138][ T5140] ? journal_replay_entry_early+0x4d/0xb70 [ 87.363962][ T5140] ? __pfx_bch2_journal_log_msg+0x10/0x10 [ 87.369698][ T5140] ? bch2_recovery_passes_from_stable+0x104/0x120 [ 87.376130][ T5140] bch2_fs_recovery+0x1ec8/0x38d0 [ 87.381179][ T5140] ? __pfx_bch2_fs_recovery+0x10/0x10 [ 87.386589][ T5140] ? __pfx_lock_release+0x10/0x10 [ 87.391625][ T5140] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 87.397270][ T5140] ? __pfx_lock_release+0x10/0x10 [ 87.402317][ T5140] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 87.408225][ T5140] ? bch2_get_next_online_dev+0x4b9/0x4f0 [ 87.413948][ T5140] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 87.419610][ T5140] ? llist_reverse_order+0x72/0x90 [ 87.424743][ T5140] bch2_fs_start+0x356/0x5b0 [ 87.429366][ T5140] bch2_fs_get_tree+0xd61/0x1700 [ 87.434340][ T5140] ? __pfx_bch2_parse_one_mount_opt+0x10/0x10 [ 87.440445][ T5140] ? __pfx_bch2_fs_get_tree+0x10/0x10 [ 87.445850][ T5140] ? generic_parse_monolithic+0x387/0x400 [ 87.451614][ T5140] ? apparmor_capable+0x13b/0x1b0 [ 87.456673][ T5140] ? bpf_lsm_capable+0x9/0x10 [ 87.461372][ T5140] vfs_get_tree+0x90/0x2a0 [ 87.465804][ T5140] do_new_mount+0x2be/0xb40 [ 87.470321][ T5140] ? __pfx_do_new_mount+0x10/0x10 [ 87.475384][ T5140] __se_sys_mount+0x2d6/0x3c0 [ 87.480089][ T5140] ? __pfx___se_sys_mount+0x10/0x10 [ 87.485303][ T5140] ? do_syscall_64+0x100/0x230 [ 87.490094][ T5140] ? __x64_sys_mount+0x20/0xc0 [ 87.494873][ T5140] do_syscall_64+0xf3/0x230 [ 87.499403][ T5140] ? clear_bhb_loop+0x35/0x90 [ 87.504129][ T5140] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 87.510035][ T5140] RIP: 0033:0x7fdab3de2dea [ 87.514462][ T5140] 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 [ 87.534339][ T5140] RSP: 002b:00007ffc5678dad8 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 [ 87.542765][ T5140] RAX: ffffffffffffffda RBX: 00007ffc5678daf0 RCX: 00007fdab3de2dea [ 87.550747][ T5140] RDX: 0000000020000000 RSI: 000000002000f680 RDI: 00007ffc5678daf0 [ 87.558729][ T5140] RBP: 0000000000000004 R08: 00007ffc5678db30 R09: 000000000000f626 [ 87.566707][ T5140] R10: 0000000000200012 R11: 0000000000000282 R12: 0000000000200012 [ 87.574682][ T5140] R13: 00007ffc5678db30 R14: 0000000000000003 R15: 0000000001000000 [ 87.582682][ T5140] [ 87.586238][ T5140] bcachefs (loop0): insufficient writeable journal devices available: have 0, need 1 [ 87.586238][ T5140] rw journal devs: [ 87.611762][ T5140] bcachefs (loop0): accounting_read... done [ 87.618293][ T5140] bcachefs (loop0): alloc_read... done [ 87.623828][ T5140] bcachefs (loop0): stripes_read... done [ 87.629564][ T5140] bcachefs (loop0): snapshots_read... done [ 87.635515][ T5140] bcachefs (loop0): check_allocations... [ 87.637011][ T5140] btree ptr not marked in member info btree allocated bitmap [ 87.637026][ T5140] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 1818ce08861e3527 written 40 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, shutting down [ 87.665169][ T5140] bcachefs (loop0): inconsistency detected - emergency read only at journal seq 13 [ 87.674623][ T5140] bcachefs (loop0): bch2_gc_mark_key(): error fsck_errors_not_fixed [ 87.682685][ T5140] bcachefs (loop0): bch2_gc_btree(): error fsck_errors_not_fixed [ 87.690462][ T5140] bcachefs (loop0): bch2_gc_btrees(): error fsck_errors_not_fixed [ 87.698357][ T5140] bcachefs (loop0): bch2_check_allocations(): error fsck_errors_not_fixed [ 87.706998][ T5140] bcachefs (loop0): bch2_fs_recovery(): error fsck_errors_not_fixed [ 87.714999][ T5140] bcachefs (loop0): bch2_fs_start(): error starting filesystem fsck_errors_not_fixed [ 87.724625][ T5140] bcachefs (loop0): shutting down [ 87.740472][ T5140] bcachefs (loop0): shutdown complete [pid 5140] mount("/dev/loop0", "./file1", "bcachefs", MS_NOSUID|MS_SYNCHRONOUS|MS_RELATIME, "\xff") = -1 EINVAL (Invalid argument) [pid 5140] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5140] ioctl(3, LOOP_CLR_FD) = 0 [ 87.987616][ T5140] bcachefs: bch2_fs_get_tree() error: fsck_errors_not_fixed [pid 5140] close(3) = 0 [pid 5140] exit_group(0) = ? [pid 5140] +++ exited with 0 +++ --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5140, si_uid=0, si_status=0, si_utime=3 /* 0.03 s */, si_stime=75 /* 0.75 s */} --- restart_syscall(<... resuming interrupted clone ...>) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) close(3) = 0 clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5149 attached [pid 5149] set_robust_list(0x55555a5d6660, 24) = 0 [pid 5102] <... clone resumed>, child_tidptr=0x55555a5d6650) = 5149 [pid 5149] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5149] setpgid(0, 0) = 0 [pid 5149] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5149] write(3, "1000", 4) = 4 [pid 5149] close(3) = 0 [pid 5149] write(1, "executing program\n", 18executing program ) = 18 [pid 5149] memfd_create("syzkaller", 0) = 3 [pid 5149] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fdaab800000 [pid 5149] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 5149] munmap(0x7fdaab800000, 138412032) = 0 [pid 5149] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5149] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5149] close(3) = 0 [pid 5149] close(4) = 0 [pid 5149] mkdir("./file1", 0777) = -1 EEXIST (File exists) [ 88.365853][ T5149] loop0: detected capacity change from 0 to 32768 [ 88.390609][ T5149] bcachefs (/dev/loop0): error reading default superblock: Not a bcachefs superblock (got magic c68573f6-4e1a-4502-8265-f57f48ba6d81) [ 88.450210][ T5149] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 88.465597][ T5149] bcachefs (loop0): recovering from clean shutdown, journal seq 13 [ 88.473761][ T5149] bcachefs (loop0): Doing compatible version upgrade from 1.7: mi_btree_bitmap to 1.9: disk_accounting_v2 [ 88.473761][ T5149] running recovery passes: check_allocations [ 88.492491][ T5149] BUG: sleeping function called from invalid context at include/linux/sched/mm.h:337 [ 88.502060][ T5149] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5149, name: syz-executor271 [ 88.511660][ T5149] preempt_count: 1, expected: 0 [ 88.516551][ T5149] RCU nest depth: 0, expected: 0 [ 88.521587][ T5149] 2 locks held by syz-executor271/5149: [ 88.527222][ T5149] #0: ffff888078f00278 (&c->state_lock){+.+.}-{3:3}, at: bch2_fs_start+0x45/0x5b0 [ 88.536623][ T5149] #1: ffff888078f4a880 (&j->lock){+.+.}-{2:2}, at: bch2_fs_journal_start+0x1219/0x14a0 [ 88.546513][ T5149] Preemption disabled at: [ 88.546527][ T5149] [<0000000000000000>] 0x0 [ 88.555356][ T5149] CPU: 1 UID: 0 PID: 5149 Comm: syz-executor271 Tainted: G W 6.10.0-next-20240718-syzkaller #0 [ 88.567098][ T5149] Tainted: [W]=WARN [ 88.570916][ T5149] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 [ 88.581061][ T5149] Call Trace: [ 88.584344][ T5149] [ 88.587285][ T5149] dump_stack_lvl+0x241/0x360 [ 88.592156][ T5149] ? __pfx_dump_stack_lvl+0x10/0x10 [ 88.597373][ T5149] ? __pfx__printk+0x10/0x10 [ 88.601994][ T5149] __might_resched+0x5d4/0x780 [ 88.606776][ T5149] ? __pfx___might_resched+0x10/0x10 [ 88.612084][ T5149] ? fs_reclaim_acquire+0x93/0x140 [ 88.617212][ T5149] __kmalloc_node_track_caller_noprof+0xcb/0x440 [ 88.623554][ T5149] ? bch2_printbuf_make_room+0x1f1/0x350 [ 88.629198][ T5149] krealloc_noprof+0x7d/0x120 [ 88.633892][ T5149] bch2_printbuf_make_room+0x1f1/0x350 [ 88.639365][ T5149] bch2_prt_printf+0x267/0x6d0 [ 88.644139][ T5149] ? bch2_journal_space_available+0x11c/0x1b00 [ 88.650330][ T5149] ? __pfx_bch2_prt_printf+0x10/0x10 [ 88.655636][ T5149] bch2_journal_space_available+0x89b/0x1b00 [ 88.661633][ T5149] ? kasan_save_track+0x51/0x80 [ 88.666498][ T5149] ? kasan_save_track+0x3f/0x80 [ 88.671363][ T5149] ? poison_slab_object+0xe0/0x150 [ 88.676574][ T5149] ? __kasan_slab_free+0x37/0x60 [ 88.681527][ T5149] ? bch2_journal_space_available+0x11c/0x1b00 [ 88.687706][ T5149] ? bch2_journal_log_msg+0xda/0x120 [ 88.692997][ T5149] ? bch2_fs_recovery+0x1e48/0x38d0 [ 88.698205][ T5149] ? bch2_fs_get_tree+0xd61/0x1700 [ 88.703324][ T5149] ? vfs_get_tree+0x90/0x2a0 [ 88.707915][ T5149] ? do_new_mount+0x2be/0xb40 [ 88.712685][ T5149] ? __se_sys_mount+0x2d6/0x3c0 [ 88.717541][ T5149] ? __pfx_bch2_journal_space_available+0x10/0x10 [ 88.723972][ T5149] ? mark_lock+0x9a/0x360 [ 88.728322][ T5149] ? __lock_acquire+0x1384/0x2050 [ 88.733403][ T5149] ? kasan_quarantine_put+0xdc/0x230 [ 88.738699][ T5149] ? lockdep_hardirqs_on+0x99/0x150 [ 88.744041][ T5149] ? __pfx_lock_acquire+0x10/0x10 [ 88.749217][ T5149] ? do_raw_spin_lock+0x14f/0x370 [ 88.754274][ T5149] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 88.759678][ T5149] ? __genradix_iter_peek+0x3d0/0x430 [ 88.765088][ T5149] bch2_fs_journal_start+0x1356/0x14a0 [ 88.770581][ T5149] ? __pfx_bch2_fs_journal_start+0x10/0x10 [ 88.776401][ T5149] ? journal_replay_entry_early+0x4d/0xb70 [ 88.782232][ T5149] ? __pfx_bch2_journal_log_msg+0x10/0x10 [ 88.787975][ T5149] ? bch2_recovery_passes_from_stable+0x104/0x120 [ 88.794409][ T5149] bch2_fs_recovery+0x1ec8/0x38d0 [ 88.799459][ T5149] ? __pfx_bch2_fs_recovery+0x10/0x10 [ 88.804909][ T5149] ? __pfx_lock_release+0x10/0x10 [ 88.809950][ T5149] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 88.815589][ T5149] ? __pfx_lock_release+0x10/0x10 [ 88.820638][ T5149] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 88.826277][ T5149] ? bch2_get_next_online_dev+0x4b9/0x4f0 [ 88.832004][ T5149] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 88.837649][ T5149] ? llist_reverse_order+0x72/0x90 [ 88.842791][ T5149] bch2_fs_start+0x356/0x5b0 [ 88.847396][ T5149] bch2_fs_get_tree+0xd61/0x1700 [ 88.852364][ T5149] ? __pfx_bch2_parse_one_mount_opt+0x10/0x10 [ 88.858444][ T5149] ? __pfx_bch2_fs_get_tree+0x10/0x10 [ 88.863939][ T5149] ? generic_parse_monolithic+0x387/0x400 [ 88.869679][ T5149] ? apparmor_capable+0x13b/0x1b0 [ 88.874735][ T5149] ? bpf_lsm_capable+0x9/0x10 [ 88.879428][ T5149] vfs_get_tree+0x90/0x2a0 [ 88.883858][ T5149] do_new_mount+0x2be/0xb40 [ 88.888373][ T5149] ? __pfx_do_new_mount+0x10/0x10 [ 88.893412][ T5149] __se_sys_mount+0x2d6/0x3c0 [ 88.898101][ T5149] ? __pfx___se_sys_mount+0x10/0x10 [ 88.903313][ T5149] ? do_syscall_64+0x100/0x230 [ 88.908096][ T5149] ? __x64_sys_mount+0x20/0xc0 [ 88.912868][ T5149] do_syscall_64+0xf3/0x230 [ 88.917396][ T5149] ? clear_bhb_loop+0x35/0x90 [ 88.922087][ T5149] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 88.927994][ T5149] RIP: 0033:0x7fdab3de2dea [ 88.932418][ T5149] 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 [ 88.952037][ T5149] RSP: 002b:00007ffc5678dad8 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 [ 88.960464][ T5149] RAX: ffffffffffffffda RBX: 00007ffc5678daf0 RCX: 00007fdab3de2dea [ 88.968449][ T5149] RDX: 0000000020000000 RSI: 000000002000f680 RDI: 00007ffc5678daf0 [ 88.976425][ T5149] RBP: 0000000000000004 R08: 00007ffc5678db30 R09: 000000000000f626 [ 88.984400][ T5149] R10: 0000000000200012 R11: 0000000000000282 R12: 0000000000200012 [ 88.992376][ T5149] R13: 00007ffc5678db30 R14: 0000000000000003 R15: 0000000001000000 [ 89.000361][ T5149] [ 89.003979][ T5149] bcachefs (loop0): insufficient writeable journal devices available: have 0, need 1 [ 89.003979][ T5149] rw journal devs: [ 89.028647][ T5149] bcachefs (loop0): accounting_read... done [ 89.034643][ T5149] bcachefs (loop0): alloc_read... done [ 89.040325][ T5149] bcachefs (loop0): stripes_read... done [ 89.046087][ T5149] bcachefs (loop0): snapshots_read... done [ 89.052020][ T5149] bcachefs (loop0): check_allocations... [ 89.053548][ T5149] btree ptr not marked in member info btree allocated bitmap [ 89.053562][ T5149] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 1818ce08861e3527 written 40 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, shutting down [ 89.081856][ T5149] bcachefs (loop0): inconsistency detected - emergency read only at journal seq 13 [ 89.091368][ T5149] bcachefs (loop0): bch2_gc_mark_key(): error fsck_errors_not_fixed [ 89.099472][ T5149] bcachefs (loop0): bch2_gc_btree(): error fsck_errors_not_fixed [ 89.107385][ T5149] bcachefs (loop0): bch2_gc_btrees(): error fsck_errors_not_fixed [ 89.115239][ T5149] bcachefs (loop0): bch2_check_allocations(): error fsck_errors_not_fixed [ 89.123942][ T5149] bcachefs (loop0): bch2_fs_recovery(): error fsck_errors_not_fixed [ 89.131995][ T5149] bcachefs (loop0): bch2_fs_start(): error starting filesystem fsck_errors_not_fixed [ 89.141535][ T5149] bcachefs (loop0): shutting down [ 89.157819][ T5149] bcachefs (loop0): shutdown complete [pid 5149] mount("/dev/loop0", "./file1", "bcachefs", MS_NOSUID|MS_SYNCHRONOUS|MS_RELATIME, "\xff") = -1 EINVAL (Invalid argument) [pid 5149] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5149] ioctl(3, LOOP_CLR_FD) = 0 [ 89.389703][ T5149] bcachefs: bch2_fs_get_tree() error: fsck_errors_not_fixed [pid 5149] close(3) = 0 [pid 5149] exit_group(0) = ? [pid 5149] +++ exited with 0 +++ --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5149, si_uid=0, si_status=0, si_utime=6 /* 0.06 s */, si_stime=70 /* 0.70 s */} --- restart_syscall(<... resuming interrupted clone ...>) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) close(3) = 0 clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5158 attached [pid 5158] set_robust_list(0x55555a5d6660, 24) = 0 [pid 5158] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5158] setpgid(0, 0 [pid 5102] <... clone resumed>, child_tidptr=0x55555a5d6650) = 5158 [pid 5158] <... setpgid resumed>) = 0 [pid 5158] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5158] write(3, "1000", 4) = 4 [pid 5158] close(3) = 0 [pid 5158] write(1, "executing program\n", 18executing program ) = 18 [pid 5158] memfd_create("syzkaller", 0) = 3 [pid 5158] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fdaab800000 [pid 5158] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 5158] munmap(0x7fdaab800000, 138412032) = 0 [pid 5158] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5158] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5158] close(3) = 0 [pid 5158] close(4) = 0 [pid 5158] mkdir("./file1", 0777) = -1 EEXIST (File exists) [ 89.777816][ T5158] loop0: detected capacity change from 0 to 32768 [ 89.807953][ T5158] bcachefs (/dev/loop0): error reading default superblock: Not a bcachefs superblock (got magic c68573f6-4e1a-4502-8265-f57f48ba6d81) [ 89.860362][ T5158] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 89.875802][ T5158] bcachefs (loop0): recovering from clean shutdown, journal seq 13 [ 89.883805][ T5158] bcachefs (loop0): Doing compatible version upgrade from 1.7: mi_btree_bitmap to 1.9: disk_accounting_v2 [ 89.883805][ T5158] running recovery passes: check_allocations [ 89.902316][ T5158] BUG: sleeping function called from invalid context at include/linux/sched/mm.h:337 [ 89.911873][ T5158] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5158, name: syz-executor271 [ 89.921438][ T5158] preempt_count: 1, expected: 0 [ 89.926346][ T5158] RCU nest depth: 0, expected: 0 [ 89.931299][ T5158] 2 locks held by syz-executor271/5158: [ 89.936933][ T5158] #0: ffff888078f00278 (&c->state_lock){+.+.}-{3:3}, at: bch2_fs_start+0x45/0x5b0 [ 89.946388][ T5158] #1: ffff888078f4a880 (&j->lock){+.+.}-{2:2}, at: bch2_fs_journal_start+0x1219/0x14a0 [ 89.956220][ T5158] Preemption disabled at: [ 89.956234][ T5158] [<0000000000000000>] 0x0 [ 89.965013][ T5158] CPU: 0 UID: 0 PID: 5158 Comm: syz-executor271 Tainted: G W 6.10.0-next-20240718-syzkaller #0 [ 89.976754][ T5158] Tainted: [W]=WARN [ 89.980556][ T5158] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 [ 89.990609][ T5158] Call Trace: [ 89.993894][ T5158] [ 89.996828][ T5158] dump_stack_lvl+0x241/0x360 [ 90.001528][ T5158] ? __pfx_dump_stack_lvl+0x10/0x10 [ 90.006741][ T5158] ? __pfx__printk+0x10/0x10 [ 90.011358][ T5158] __might_resched+0x5d4/0x780 [ 90.016141][ T5158] ? __pfx___might_resched+0x10/0x10 [ 90.021441][ T5158] ? fs_reclaim_acquire+0x93/0x140 [ 90.026563][ T5158] __kmalloc_node_track_caller_noprof+0xcb/0x440 [ 90.032936][ T5158] ? bch2_printbuf_make_room+0x1f1/0x350 [ 90.038578][ T5158] krealloc_noprof+0x7d/0x120 [ 90.043264][ T5158] bch2_printbuf_make_room+0x1f1/0x350 [ 90.048732][ T5158] bch2_prt_printf+0x267/0x6d0 [ 90.053511][ T5158] ? bch2_journal_space_available+0x11c/0x1b00 [ 90.059724][ T5158] ? __pfx_bch2_prt_printf+0x10/0x10 [ 90.065035][ T5158] bch2_journal_space_available+0x89b/0x1b00 [ 90.071033][ T5158] ? kasan_save_track+0x51/0x80 [ 90.075902][ T5158] ? kasan_save_track+0x3f/0x80 [ 90.080768][ T5158] ? poison_slab_object+0xe0/0x150 [ 90.085883][ T5158] ? __kasan_slab_free+0x37/0x60 [ 90.090841][ T5158] ? bch2_journal_space_available+0x11c/0x1b00 [ 90.097009][ T5158] ? bch2_journal_log_msg+0xda/0x120 [ 90.102328][ T5158] ? bch2_fs_recovery+0x1e48/0x38d0 [ 90.107539][ T5158] ? bch2_fs_get_tree+0xd61/0x1700 [ 90.112658][ T5158] ? vfs_get_tree+0x90/0x2a0 [ 90.117270][ T5158] ? do_new_mount+0x2be/0xb40 [ 90.121968][ T5158] ? __se_sys_mount+0x2d6/0x3c0 [ 90.126912][ T5158] ? __pfx_bch2_journal_space_available+0x10/0x10 [ 90.133345][ T5158] ? mark_lock+0x9a/0x360 [ 90.137696][ T5158] ? __lock_acquire+0x1384/0x2050 [ 90.142767][ T5158] ? kasan_quarantine_put+0xdc/0x230 [ 90.148068][ T5158] ? lockdep_hardirqs_on+0x99/0x150 [ 90.153371][ T5158] ? __pfx_lock_acquire+0x10/0x10 [ 90.158410][ T5158] ? do_raw_spin_lock+0x14f/0x370 [ 90.163445][ T5158] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 90.168839][ T5158] ? __genradix_iter_peek+0x3d0/0x430 [ 90.174248][ T5158] bch2_fs_journal_start+0x1356/0x14a0 [ 90.179739][ T5158] ? __pfx_bch2_fs_journal_start+0x10/0x10 [ 90.185569][ T5158] ? journal_replay_entry_early+0x4d/0xb70 [ 90.191402][ T5158] ? __pfx_bch2_journal_log_msg+0x10/0x10 [ 90.197141][ T5158] ? bch2_recovery_passes_from_stable+0x104/0x120 [ 90.203608][ T5158] bch2_fs_recovery+0x1ec8/0x38d0 [ 90.208664][ T5158] ? __pfx_bch2_fs_recovery+0x10/0x10 [ 90.214069][ T5158] ? __pfx_lock_release+0x10/0x10 [ 90.219126][ T5158] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 90.224768][ T5158] ? __pfx_lock_release+0x10/0x10 [ 90.229818][ T5158] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 90.235462][ T5158] ? bch2_get_next_online_dev+0x4b9/0x4f0 [ 90.241193][ T5158] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 90.246854][ T5158] ? llist_reverse_order+0x72/0x90 [ 90.252086][ T5158] bch2_fs_start+0x356/0x5b0 [ 90.256710][ T5158] bch2_fs_get_tree+0xd61/0x1700 [ 90.261711][ T5158] ? __pfx_bch2_parse_one_mount_opt+0x10/0x10 [ 90.267801][ T5158] ? __pfx_bch2_fs_get_tree+0x10/0x10 [ 90.273228][ T5158] ? generic_parse_monolithic+0x387/0x400 [ 90.279064][ T5158] ? apparmor_capable+0x13b/0x1b0 [ 90.284106][ T5158] ? bpf_lsm_capable+0x9/0x10 [ 90.288797][ T5158] vfs_get_tree+0x90/0x2a0 [ 90.293247][ T5158] do_new_mount+0x2be/0xb40 [ 90.297761][ T5158] ? __pfx_do_new_mount+0x10/0x10 [ 90.302798][ T5158] __se_sys_mount+0x2d6/0x3c0 [ 90.307486][ T5158] ? __pfx___se_sys_mount+0x10/0x10 [ 90.312692][ T5158] ? do_syscall_64+0x100/0x230 [ 90.317477][ T5158] ? __x64_sys_mount+0x20/0xc0 [ 90.322249][ T5158] do_syscall_64+0xf3/0x230 [ 90.326768][ T5158] ? clear_bhb_loop+0x35/0x90 [ 90.331460][ T5158] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 90.337362][ T5158] RIP: 0033:0x7fdab3de2dea [ 90.341788][ T5158] 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 [ 90.361402][ T5158] RSP: 002b:00007ffc5678dad8 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 [ 90.369847][ T5158] RAX: ffffffffffffffda RBX: 00007ffc5678daf0 RCX: 00007fdab3de2dea [ 90.377849][ T5158] RDX: 0000000020000000 RSI: 000000002000f680 RDI: 00007ffc5678daf0 [ 90.385839][ T5158] RBP: 0000000000000004 R08: 00007ffc5678db30 R09: 000000000000f626 [ 90.393823][ T5158] R10: 0000000000200012 R11: 0000000000000282 R12: 0000000000200012 [ 90.401808][ T5158] R13: 00007ffc5678db30 R14: 0000000000000003 R15: 0000000001000000 [ 90.409804][ T5158] [ 90.413821][ T5158] bcachefs (loop0): insufficient writeable journal devices available: have 0, need 1 [ 90.413821][ T5158] rw journal devs: [ 90.447573][ T5158] bcachefs (loop0): accounting_read... done [ 90.453562][ T5158] bcachefs (loop0): alloc_read... done [ 90.459289][ T5158] bcachefs (loop0): stripes_read... done [ 90.464991][ T5158] bcachefs (loop0): snapshots_read... done [ 90.470980][ T5158] bcachefs (loop0): check_allocations... [ 90.472550][ T5158] btree ptr not marked in member info btree allocated bitmap [ 90.472565][ T5158] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 1818ce08861e3527 written 40 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, shutting down [ 90.501003][ T5158] bcachefs (loop0): inconsistency detected - emergency read only at journal seq 13 [ 90.510466][ T5158] bcachefs (loop0): bch2_gc_mark_key(): error fsck_errors_not_fixed [ 90.518550][ T5158] bcachefs (loop0): bch2_gc_btree(): error fsck_errors_not_fixed [ 90.526351][ T5158] bcachefs (loop0): bch2_gc_btrees(): error fsck_errors_not_fixed [ 90.534214][ T5158] bcachefs (loop0): bch2_check_allocations(): error fsck_errors_not_fixed [ 90.543147][ T5158] bcachefs (loop0): bch2_fs_recovery(): error fsck_errors_not_fixed [ 90.551318][ T5158] bcachefs (loop0): bch2_fs_start(): error starting filesystem fsck_errors_not_fixed [ 90.560887][ T5158] bcachefs (loop0): shutting down [ 90.578317][ T5158] bcachefs (loop0): shutdown complete [pid 5158] mount("/dev/loop0", "./file1", "bcachefs", MS_NOSUID|MS_SYNCHRONOUS|MS_RELATIME, "\xff") = -1 EINVAL (Invalid argument) [pid 5158] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5158] ioctl(3, LOOP_CLR_FD) = 0 [ 90.791339][ T5158] bcachefs: bch2_fs_get_tree() error: fsck_errors_not_fixed [pid 5158] close(3) = 0 [pid 5158] exit_group(0) = ? [pid 5158] +++ exited with 0 +++ --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5158, si_uid=0, si_status=0, si_utime=1 /* 0.01 s */, si_stime=77 /* 0.77 s */} --- restart_syscall(<... resuming interrupted clone ...>) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) close(3) = 0 clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5167 attached , child_tidptr=0x55555a5d6650) = 5167 [pid 5167] set_robust_list(0x55555a5d6660, 24) = 0 [pid 5167] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5167] setpgid(0, 0) = 0 [pid 5167] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5167] write(3, "1000", 4) = 4 [pid 5167] close(3) = 0 executing program [pid 5167] write(1, "executing program\n", 18) = 18 [pid 5167] memfd_create("syzkaller", 0) = 3 [pid 5167] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fdaab800000 [pid 5167] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 5167] munmap(0x7fdaab800000, 138412032) = 0 [pid 5167] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5167] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5167] close(3) = 0 [pid 5167] close(4) = 0 [pid 5167] mkdir("./file1", 0777) = -1 EEXIST (File exists)