./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor4032034663
<...>
Warning: Permanently added '10.128.0.142' (ED25519) to the list of known hosts.
execve("./syz-executor4032034663", ["./syz-executor4032034663"], 0x7ffe965d9090 /* 10 vars */) = 0
brk(NULL) = 0x5555628cf000
brk(0x5555628cfd00) = 0x5555628cfd00
arch_prctl(ARCH_SET_FS, 0x5555628cf380) = 0
set_tid_address(0x5555628cf650) = 5105
set_robust_list(0x5555628cf660, 24) = 0
rseq(0x5555628cfca0, 0x20, 0, 0x53053053) = 0
prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
readlink("/proc/self/exe", "/root/syz-executor4032034663", 4096) = 28
getrandom("\x90\x80\xc5\x5c\xf0\xdc\x0a\xba", 8, GRND_NONBLOCK) = 8
brk(NULL) = 0x5555628cfd00
brk(0x5555628f0d00) = 0x5555628f0d00
brk(0x5555628f1000) = 0x5555628f1000
mprotect(0x7f031b21d000, 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 5106 attached
, child_tidptr=0x5555628cf650) = 5106
[pid 5106] set_robust_list(0x5555628cf660, 24) = 0
[pid 5106] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0
[pid 5106] setpgid(0, 0) = 0
[pid 5106] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3
[pid 5106] write(3, "1000", 4) = 4
[pid 5106] close(3) = 0
[pid 5106] write(1, "executing program\n", 18executing program
) = 18
[pid 5106] memfd_create("syzkaller", 0) = 3
[pid 5106] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0312c00000
[pid 5106] 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 5106] munmap(0x7f0312c00000, 138412032) = 0
[pid 5106] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4
[pid 5106] ioctl(4, LOOP_SET_FD, 3) = 0
[pid 5106] close(3) = 0
[pid 5106] close(4) = 0
[pid 5106] mkdir("./file1", 0777) = 0
[ 76.330828][ T5106] loop0: detected capacity change from 0 to 32768
[ 76.356262][ T5106] bcachefs (/dev/loop0): error reading default superblock: Not a bcachefs superblock (got magic c68573f6-4e1a-4502-8265-f57f48ba6d81)
[ 76.412357][ T5106] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names
[ 76.427956][ T5106] bcachefs (loop0): recovering from clean shutdown, journal seq 13
[ 76.436111][ T5106] bcachefs (loop0): Doing compatible version upgrade from 1.7: mi_btree_bitmap to 1.9: disk_accounting_v2
[ 76.436111][ T5106] running recovery passes: check_allocations
[ 76.455993][ T5106] BUG: sleeping function called from invalid context at include/linux/sched/mm.h:337
[ 76.465632][ T5106] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5106, name: syz-executor403
[ 76.475192][ T5106] preempt_count: 1, expected: 0
[ 76.480087][ T5106] RCU nest depth: 0, expected: 0
[ 76.485018][ T5106] 2 locks held by syz-executor403/5106:
[ 76.490624][ T5106] #0: ffff888073680278 (&c->state_lock){+.+.}-{3:3}, at: bch2_fs_start+0x45/0x5b0
[ 76.500178][ T5106] #1: ffff8880736ca880 (&j->lock){+.+.}-{2:2}, at: bch2_fs_journal_start+0x1219/0x14a0
[ 76.510088][ T5106] Preemption disabled at:
[ 76.510102][ T5106] [<0000000000000000>] 0x0
[ 76.518963][ T5106] CPU: 1 UID: 0 PID: 5106 Comm: syz-executor403 Not tainted 6.10.0-next-20240718-syzkaller #0
[ 76.529222][ T5106] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
[ 76.539298][ T5106] Call Trace:
[ 76.542585][ T5106]
[ 76.545533][ T5106] dump_stack_lvl+0x241/0x360
[ 76.550355][ T5106] ? __pfx_dump_stack_lvl+0x10/0x10
[ 76.555579][ T5106] ? __pfx__printk+0x10/0x10
[ 76.560207][ T5106] __might_resched+0x5d4/0x780
[ 76.564995][ T5106] ? __pfx___might_resched+0x10/0x10
[ 76.570300][ T5106] ? fs_reclaim_acquire+0x93/0x140
[ 76.575424][ T5106] __kmalloc_node_track_caller_noprof+0xcb/0x440
[ 76.581768][ T5106] ? bch2_printbuf_make_room+0x1f1/0x350
[ 76.587416][ T5106] krealloc_noprof+0x7d/0x120
[ 76.592107][ T5106] bch2_printbuf_make_room+0x1f1/0x350
[ 76.597579][ T5106] bch2_prt_printf+0x267/0x6d0
[ 76.602352][ T5106] ? bch2_journal_space_available+0x11c/0x1b00
[ 76.608527][ T5106] ? __pfx_bch2_prt_printf+0x10/0x10
[ 76.613870][ T5106] bch2_journal_space_available+0x89b/0x1b00
[ 76.619873][ T5106] ? poison_slab_object+0xe0/0x150
[ 76.624992][ T5106] ? __kasan_slab_free+0x37/0x60
[ 76.629935][ T5106] ? bch2_journal_space_available+0x11c/0x1b00
[ 76.636103][ T5106] ? __se_sys_mount+0x2d6/0x3c0
[ 76.640975][ T5106] ? __pfx_bch2_journal_space_available+0x10/0x10
[ 76.647420][ T5106] ? mark_lock+0x9a/0x360
[ 76.651769][ T5106] ? __lock_acquire+0x1384/0x2050
[ 76.656915][ T5106] ? kasan_quarantine_put+0xdc/0x230
[ 76.662212][ T5106] ? lockdep_hardirqs_on+0x99/0x150
[ 76.667428][ T5106] ? __pfx_lock_acquire+0x10/0x10
[ 76.672478][ T5106] ? do_raw_spin_lock+0x14f/0x370
[ 76.677517][ T5106] ? __pfx_do_raw_spin_lock+0x10/0x10
[ 76.683004][ T5106] ? __genradix_iter_peek+0x3d0/0x430
[ 76.688413][ T5106] bch2_fs_journal_start+0x1356/0x14a0
[ 76.693911][ T5106] ? __pfx_bch2_fs_journal_start+0x10/0x10
[ 76.699733][ T5106] ? journal_replay_entry_early+0x4d/0xb70
[ 76.705562][ T5106] ? __pfx_bch2_journal_log_msg+0x10/0x10
[ 76.711306][ T5106] ? bch2_recovery_passes_from_stable+0x104/0x120
[ 76.717742][ T5106] bch2_fs_recovery+0x1ec8/0x38d0
[ 76.722794][ T5106] ? __pfx_bch2_fs_recovery+0x10/0x10
[ 76.728210][ T5106] ? __pfx_lock_release+0x10/0x10
[ 76.733268][ T5106] ? bch2_get_next_online_dev+0x2b/0x4f0
[ 76.738931][ T5106] ? __pfx_lock_release+0x10/0x10
[ 76.743982][ T5106] ? bch2_get_next_online_dev+0x2b/0x4f0
[ 76.749628][ T5106] ? bch2_get_next_online_dev+0x4b9/0x4f0
[ 76.755361][ T5106] ? bch2_get_next_online_dev+0x2b/0x4f0
[ 76.761010][ T5106] ? llist_reverse_order+0x72/0x90
[ 76.766142][ T5106] bch2_fs_start+0x356/0x5b0
[ 76.770767][ T5106] bch2_fs_get_tree+0xd61/0x1700
[ 76.775735][ T5106] ? __pfx_bch2_parse_one_mount_opt+0x10/0x10
[ 76.781820][ T5106] ? __pfx_bch2_fs_get_tree+0x10/0x10
[ 76.787244][ T5106] ? generic_parse_monolithic+0x387/0x400
[ 76.793005][ T5106] ? apparmor_capable+0x13b/0x1b0
[ 76.798063][ T5106] ? bpf_lsm_capable+0x9/0x10
[ 76.802761][ T5106] vfs_get_tree+0x90/0x2a0
[ 76.807198][ T5106] do_new_mount+0x2be/0xb40
[ 76.811721][ T5106] ? __pfx_do_new_mount+0x10/0x10
[ 76.816765][ T5106] __se_sys_mount+0x2d6/0x3c0
[ 76.821479][ T5106] ? __pfx___se_sys_mount+0x10/0x10
[ 76.826688][ T5106] ? do_syscall_64+0x100/0x230
[ 76.831474][ T5106] ? __x64_sys_mount+0x20/0xc0
[ 76.836246][ T5106] do_syscall_64+0xf3/0x230
[ 76.840770][ T5106] ? clear_bhb_loop+0x35/0x90
[ 76.845463][ T5106] entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 76.851374][ T5106] RIP: 0033:0x7f031b19bdea
[ 76.855798][ T5106] 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
[ 76.875419][ T5106] RSP: 002b:00007ffdc4fa7228 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5
[ 76.883844][ T5106] RAX: ffffffffffffffda RBX: 00007ffdc4fa7240 RCX: 00007f031b19bdea
[ 76.891994][ T5106] RDX: 0000000020000000 RSI: 000000002000f680 RDI: 00007ffdc4fa7240
[ 76.899974][ T5106] RBP: 0000000000000004 R08: 00007ffdc4fa7280 R09: 000000000000f626
[ 76.907949][ T5106] R10: 0000000000200012 R11: 0000000000000282 R12: 0000000000200012
[ 76.915925][ T5106] R13: 00007ffdc4fa7280 R14: 0000000000000003 R15: 0000000001000000
[ 76.923941][ T5106]
[ 76.927269][ T5106] bcachefs (loop0): insufficient writeable journal devices available: have 0, need 1
[ 76.927269][ T5106] rw journal devs:
[ 76.955214][ T5106] bcachefs (loop0): accounting_read... done
[ 76.961715][ T5106] bcachefs (loop0): alloc_read... done
[ 76.967320][ T5106] bcachefs (loop0): stripes_read... done
[ 76.973028][ T5106] bcachefs (loop0): snapshots_read... done
[ 76.979232][ T5106] bcachefs (loop0): check_allocations...
[ 76.983183][ T5106] btree ptr not marked in member info btree allocated bitmap
[ 76.983211][ T5106] 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
[ 77.012448][ T5106] bcachefs (loop0): inconsistency detected - emergency read only at journal seq 13
[ 77.022035][ T5106] bcachefs (loop0): bch2_gc_mark_key(): error fsck_errors_not_fixed
[ 77.030116][ T5106] bcachefs (loop0): bch2_gc_btree(): error fsck_errors_not_fixed
[ 77.038087][ T5106] bcachefs (loop0): bch2_gc_btrees(): error fsck_errors_not_fixed
[ 77.046245][ T5106] bcachefs (loop0): bch2_check_allocations(): error fsck_errors_not_fixed
[ 77.055586][ T5106] bcachefs (loop0): bch2_fs_recovery(): error fsck_errors_not_fixed
[ 77.063848][ T5106] bcachefs (loop0): bch2_fs_start(): error starting filesystem fsck_errors_not_fixed
[ 77.074005][ T5106] bcachefs (loop0): shutting down
[ 77.091605][ T5106] bcachefs (loop0): shutdown complete
[pid 5106] mount("/dev/loop0", "./file1", "bcachefs", MS_NOSUID|MS_SYNCHRONOUS|MS_RELATIME, "\xff") = -1 EINVAL (Invalid argument)
[pid 5106] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3
[pid 5106] ioctl(3, LOOP_CLR_FD) = 0
[ 77.314054][ T5106] bcachefs: bch2_fs_get_tree() error: fsck_errors_not_fixed
[pid 5106] close(3) = 0
[pid 5106] exit_group(0) = ?
[pid 5106] +++ exited with 0 +++
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5106, si_uid=0, si_status=0, si_utime=4 /* 0.04 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 5117 attached
[pid 5117] set_robust_list(0x5555628cf660, 24) = 0
[pid 5117] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0
[pid 5117] setpgid(0, 0
[pid 5105] <... clone resumed>, child_tidptr=0x5555628cf650) = 5117
[pid 5117] <... setpgid resumed>) = 0
[pid 5117] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3
[pid 5117] write(3, "1000", 4) = 4
[pid 5117] close(3) = 0
executing program
[pid 5117] write(1, "executing program\n", 18) = 18
[pid 5117] memfd_create("syzkaller", 0) = 3
[pid 5117] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0312c00000
[pid 5117] 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 5117] munmap(0x7f0312c00000, 138412032) = 0
[pid 5117] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4
[pid 5117] ioctl(4, LOOP_SET_FD, 3) = 0
[pid 5117] close(3) = 0
[pid 5117] close(4) = 0
[pid 5117] mkdir("./file1", 0777) = -1 EEXIST (File exists)
[ 77.731605][ T5117] loop0: detected capacity change from 0 to 32768
[ 77.753530][ T5117] bcachefs (/dev/loop0): error reading default superblock: Not a bcachefs superblock (got magic c68573f6-4e1a-4502-8265-f57f48ba6d81)
[ 77.803219][ T5117] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names
[ 77.818868][ T5117] bcachefs (loop0): recovering from clean shutdown, journal seq 13
[ 77.826945][ T5117] bcachefs (loop0): Doing compatible version upgrade from 1.7: mi_btree_bitmap to 1.9: disk_accounting_v2
[ 77.826945][ T5117] running recovery passes: check_allocations
[ 77.845417][ T5117] BUG: sleeping function called from invalid context at include/linux/sched/mm.h:337
[ 77.855093][ T5117] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5117, name: syz-executor403
[ 77.864827][ T5117] preempt_count: 1, expected: 0
[ 77.869721][ T5117] RCU nest depth: 0, expected: 0
[ 77.874677][ T5117] 2 locks held by syz-executor403/5117:
[ 77.880295][ T5117] #0: ffff888073680278 (&c->state_lock){+.+.}-{3:3}, at: bch2_fs_start+0x45/0x5b0
[ 77.889742][ T5117] #1: ffff8880736ca880 (&j->lock){+.+.}-{2:2}, at: bch2_fs_journal_start+0x1219/0x14a0
[ 77.899766][ T5117] Preemption disabled at:
[ 77.899781][ T5117] [<0000000000000000>] 0x0
[ 77.908703][ T5117] CPU: 0 UID: 0 PID: 5117 Comm: syz-executor403 Tainted: G W 6.10.0-next-20240718-syzkaller #0
[ 77.920441][ T5117] Tainted: [W]=WARN
[ 77.924243][ T5117] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
[ 77.934306][ T5117] Call Trace:
[ 77.937596][ T5117]
[ 77.940538][ T5117] dump_stack_lvl+0x241/0x360
[ 77.945281][ T5117] ? __pfx_dump_stack_lvl+0x10/0x10
[ 77.950508][ T5117] ? __pfx__printk+0x10/0x10
[ 77.955124][ T5117] __might_resched+0x5d4/0x780
[ 77.959916][ T5117] ? __pfx___might_resched+0x10/0x10
[ 77.965221][ T5117] ? fs_reclaim_acquire+0x93/0x140
[ 77.970347][ T5117] __kmalloc_node_track_caller_noprof+0xcb/0x440
[ 77.976689][ T5117] ? bch2_printbuf_make_room+0x1f1/0x350
[ 77.982336][ T5117] krealloc_noprof+0x7d/0x120
[ 77.987027][ T5117] bch2_printbuf_make_room+0x1f1/0x350
[ 77.992502][ T5117] bch2_prt_printf+0x267/0x6d0
[ 77.997275][ T5117] ? bch2_journal_space_available+0x11c/0x1b00
[ 78.003442][ T5117] ? __pfx_bch2_prt_printf+0x10/0x10
[ 78.008746][ T5117] bch2_journal_space_available+0x89b/0x1b00
[ 78.014759][ T5117] ? kasan_save_track+0x51/0x80
[ 78.019625][ T5117] ? kasan_save_track+0x3f/0x80
[ 78.024497][ T5117] ? poison_slab_object+0xe0/0x150
[ 78.029619][ T5117] ? __kasan_slab_free+0x37/0x60
[ 78.034565][ T5117] ? bch2_journal_space_available+0x11c/0x1b00
[ 78.040740][ T5117] ? bch2_journal_log_msg+0xda/0x120
[ 78.046035][ T5117] ? bch2_fs_recovery+0x1e48/0x38d0
[ 78.051258][ T5117] ? bch2_fs_get_tree+0xd61/0x1700
[ 78.056386][ T5117] ? vfs_get_tree+0x90/0x2a0
[ 78.061006][ T5117] ? do_new_mount+0x2be/0xb40
[ 78.065692][ T5117] ? __se_sys_mount+0x2d6/0x3c0
[ 78.070550][ T5117] ? __pfx_bch2_journal_space_available+0x10/0x10
[ 78.076987][ T5117] ? mark_lock+0x9a/0x360
[ 78.081340][ T5117] ? __lock_acquire+0x1384/0x2050
[ 78.086402][ T5117] ? kasan_quarantine_put+0xdc/0x230
[ 78.091706][ T5117] ? lockdep_hardirqs_on+0x99/0x150
[ 78.097106][ T5117] ? __pfx_lock_acquire+0x10/0x10
[ 78.102163][ T5117] ? do_raw_spin_lock+0x14f/0x370
[ 78.107205][ T5117] ? __pfx_do_raw_spin_lock+0x10/0x10
[ 78.112584][ T5117] ? __genradix_iter_peek+0x3d0/0x430
[ 78.118008][ T5117] bch2_fs_journal_start+0x1356/0x14a0
[ 78.123495][ T5117] ? __pfx_bch2_fs_journal_start+0x10/0x10
[ 78.129307][ T5117] ? journal_replay_entry_early+0x4d/0xb70
[ 78.135131][ T5117] ? __pfx_bch2_journal_log_msg+0x10/0x10
[ 78.140868][ T5117] ? bch2_recovery_passes_from_stable+0x104/0x120
[ 78.147302][ T5117] bch2_fs_recovery+0x1ec8/0x38d0
[ 78.152356][ T5117] ? __pfx_bch2_fs_recovery+0x10/0x10
[ 78.157765][ T5117] ? __pfx_lock_release+0x10/0x10
[ 78.162802][ T5117] ? bch2_get_next_online_dev+0x2b/0x4f0
[ 78.168444][ T5117] ? __pfx_lock_release+0x10/0x10
[ 78.173495][ T5117] ? bch2_get_next_online_dev+0x2b/0x4f0
[ 78.179168][ T5117] ? bch2_get_next_online_dev+0x4b9/0x4f0
[ 78.184896][ T5117] ? bch2_get_next_online_dev+0x2b/0x4f0
[ 78.190544][ T5117] ? llist_reverse_order+0x72/0x90
[ 78.195679][ T5117] bch2_fs_start+0x356/0x5b0
[ 78.200295][ T5117] bch2_fs_get_tree+0xd61/0x1700
[ 78.205263][ T5117] ? __pfx_bch2_parse_one_mount_opt+0x10/0x10
[ 78.211347][ T5117] ? __pfx_bch2_fs_get_tree+0x10/0x10
[ 78.216752][ T5117] ? generic_parse_monolithic+0x387/0x400
[ 78.222519][ T5117] ? apparmor_capable+0x13b/0x1b0
[ 78.227561][ T5117] ? bpf_lsm_capable+0x9/0x10
[ 78.232253][ T5117] vfs_get_tree+0x90/0x2a0
[ 78.236677][ T5117] do_new_mount+0x2be/0xb40
[ 78.241211][ T5117] ? __pfx_do_new_mount+0x10/0x10
[ 78.246250][ T5117] __se_sys_mount+0x2d6/0x3c0
[ 78.250939][ T5117] ? __pfx___se_sys_mount+0x10/0x10
[ 78.256144][ T5117] ? do_syscall_64+0x100/0x230
[ 78.260927][ T5117] ? __x64_sys_mount+0x20/0xc0
[ 78.265697][ T5117] do_syscall_64+0xf3/0x230
[ 78.270217][ T5117] ? clear_bhb_loop+0x35/0x90
[ 78.274907][ T5117] entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 78.280809][ T5117] RIP: 0033:0x7f031b19bdea
[ 78.285234][ T5117] 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
[ 78.304853][ T5117] RSP: 002b:00007ffdc4fa7228 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5
[ 78.313279][ T5117] RAX: ffffffffffffffda RBX: 00007ffdc4fa7240 RCX: 00007f031b19bdea
[ 78.321260][ T5117] RDX: 0000000020000000 RSI: 000000002000f680 RDI: 00007ffdc4fa7240
[ 78.329239][ T5117] RBP: 0000000000000004 R08: 00007ffdc4fa7280 R09: 000000000000f626
[ 78.337217][ T5117] R10: 0000000000200012 R11: 0000000000000282 R12: 0000000000200012
[ 78.345193][ T5117] R13: 00007ffdc4fa7280 R14: 0000000000000003 R15: 0000000001000000
[ 78.353204][ T5117]
[ 78.356831][ T5117] bcachefs (loop0): insufficient writeable journal devices available: have 0, need 1
[ 78.356831][ T5117] rw journal devs:
[ 78.383259][ T5117] bcachefs (loop0): accounting_read... done
[ 78.389384][ T5117] bcachefs (loop0): alloc_read... done
[ 78.394929][ T5117] bcachefs (loop0): stripes_read... done
[ 78.400661][ T5117] bcachefs (loop0): snapshots_read... done
[ 78.406653][ T5117] bcachefs (loop0): check_allocations...
[ 78.408126][ T5117] btree ptr not marked in member info btree allocated bitmap
[ 78.408140][ T5117] 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
[ 78.436368][ T5117] bcachefs (loop0): inconsistency detected - emergency read only at journal seq 13
[ 78.445822][ T5117] bcachefs (loop0): bch2_gc_mark_key(): error fsck_errors_not_fixed
[ 78.453989][ T5117] bcachefs (loop0): bch2_gc_btree(): error fsck_errors_not_fixed
[ 78.461794][ T5117] bcachefs (loop0): bch2_gc_btrees(): error fsck_errors_not_fixed
[ 78.469776][ T5117] bcachefs (loop0): bch2_check_allocations(): error fsck_errors_not_fixed
[ 78.478480][ T5117] bcachefs (loop0): bch2_fs_recovery(): error fsck_errors_not_fixed
[ 78.486565][ T5117] bcachefs (loop0): bch2_fs_start(): error starting filesystem fsck_errors_not_fixed
[ 78.496240][ T5117] bcachefs (loop0): shutting down
[ 78.511665][ T5117] bcachefs (loop0): shutdown complete
[pid 5117] mount("/dev/loop0", "./file1", "bcachefs", MS_NOSUID|MS_SYNCHRONOUS|MS_RELATIME, "\xff") = -1 EINVAL (Invalid argument)
[pid 5117] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3
[pid 5117] ioctl(3, LOOP_CLR_FD) = 0
[ 78.723314][ T5117] bcachefs: bch2_fs_get_tree() error: fsck_errors_not_fixed
[pid 5117] close(3) = 0
[pid 5117] exit_group(0) = ?
[pid 5117] +++ exited with 0 +++
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5117, 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 5126 attached
, child_tidptr=0x5555628cf650) = 5126
[pid 5126] set_robust_list(0x5555628cf660, 24) = 0
[pid 5126] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0
[pid 5126] setpgid(0, 0) = 0
[pid 5126] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3
[pid 5126] write(3, "1000", 4) = 4
[pid 5126] close(3) = 0
[pid 5126] write(1, "executing program\n", 18executing program
) = 18
[pid 5126] memfd_create("syzkaller", 0) = 3
[pid 5126] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0312c00000
[pid 5126] 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 5126] munmap(0x7f0312c00000, 138412032) = 0
[pid 5126] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4
[pid 5126] ioctl(4, LOOP_SET_FD, 3) = 0
[pid 5126] close(3) = 0
[pid 5126] close(4) = 0
[pid 5126] mkdir("./file1", 0777) = -1 EEXIST (File exists)
[ 79.151545][ T5126] loop0: detected capacity change from 0 to 32768
[ 79.171518][ T5126] bcachefs (/dev/loop0): error reading default superblock: Not a bcachefs superblock (got magic c68573f6-4e1a-4502-8265-f57f48ba6d81)
[ 79.231825][ T5126] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names
[ 79.247515][ T5126] bcachefs (loop0): recovering from clean shutdown, journal seq 13
[ 79.255510][ T5126] bcachefs (loop0): Doing compatible version upgrade from 1.7: mi_btree_bitmap to 1.9: disk_accounting_v2
[ 79.255510][ T5126] running recovery passes: check_allocations
[ 79.274572][ T5126] BUG: sleeping function called from invalid context at include/linux/sched/mm.h:337
[ 79.284391][ T5126] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5126, name: syz-executor403
[ 79.293956][ T5126] preempt_count: 1, expected: 0
[ 79.298853][ T5126] RCU nest depth: 0, expected: 0
[ 79.303793][ T5126] 2 locks held by syz-executor403/5126:
[ 79.309413][ T5126] #0: ffff888073680278 (&c->state_lock){+.+.}-{3:3}, at: bch2_fs_start+0x45/0x5b0
[ 79.318826][ T5126] #1: ffff8880736ca880 (&j->lock){+.+.}-{2:2}, at: bch2_fs_journal_start+0x1219/0x14a0
[ 79.328785][ T5126] Preemption disabled at:
[ 79.328800][ T5126] [<0000000000000000>] 0x0
[ 79.337620][ T5126] CPU: 1 UID: 0 PID: 5126 Comm: syz-executor403 Tainted: G W 6.10.0-next-20240718-syzkaller #0
[ 79.349369][ T5126] Tainted: [W]=WARN
[ 79.353180][ T5126] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
[ 79.363241][ T5126] Call Trace:
[ 79.366532][ T5126]
[ 79.369475][ T5126] dump_stack_lvl+0x241/0x360
[ 79.374186][ T5126] ? __pfx_dump_stack_lvl+0x10/0x10
[ 79.379411][ T5126] ? __pfx__printk+0x10/0x10
[ 79.384054][ T5126] __might_resched+0x5d4/0x780
[ 79.388842][ T5126] ? __pfx___might_resched+0x10/0x10
[ 79.394152][ T5126] ? fs_reclaim_acquire+0x93/0x140
[ 79.399278][ T5126] __kmalloc_node_track_caller_noprof+0xcb/0x440
[ 79.405631][ T5126] ? bch2_printbuf_make_room+0x1f1/0x350
[ 79.411368][ T5126] krealloc_noprof+0x7d/0x120
[ 79.416062][ T5126] bch2_printbuf_make_room+0x1f1/0x350
[ 79.421538][ T5126] bch2_prt_printf+0x267/0x6d0
[ 79.426315][ T5126] ? bch2_journal_space_available+0x11c/0x1b00
[ 79.432488][ T5126] ? __pfx_bch2_prt_printf+0x10/0x10
[ 79.437794][ T5126] bch2_journal_space_available+0x89b/0x1b00
[ 79.443792][ T5126] ? kasan_save_track+0x51/0x80
[ 79.448664][ T5126] ? kasan_save_track+0x3f/0x80
[ 79.453534][ T5126] ? poison_slab_object+0xe0/0x150
[ 79.458674][ T5126] ? __kasan_slab_free+0x37/0x60
[ 79.463625][ T5126] ? bch2_journal_space_available+0x11c/0x1b00
[ 79.469798][ T5126] ? bch2_journal_log_msg+0xda/0x120
[ 79.475090][ T5126] ? bch2_fs_recovery+0x1e48/0x38d0
[ 79.480314][ T5126] ? bch2_fs_get_tree+0xd61/0x1700
[ 79.485445][ T5126] ? vfs_get_tree+0x90/0x2a0
[ 79.490123][ T5126] ? do_new_mount+0x2be/0xb40
[ 79.494807][ T5126] ? __se_sys_mount+0x2d6/0x3c0
[ 79.499841][ T5126] ? __pfx_bch2_journal_space_available+0x10/0x10
[ 79.506277][ T5126] ? mark_lock+0x9a/0x360
[ 79.510632][ T5126] ? __lock_acquire+0x1384/0x2050
[ 79.515692][ T5126] ? kasan_quarantine_put+0xdc/0x230
[ 79.520997][ T5126] ? lockdep_hardirqs_on+0x99/0x150
[ 79.526218][ T5126] ? __pfx_lock_acquire+0x10/0x10
[ 79.531263][ T5126] ? do_raw_spin_lock+0x14f/0x370
[ 79.536308][ T5126] ? __pfx_do_raw_spin_lock+0x10/0x10
[ 79.541690][ T5126] ? __genradix_iter_peek+0x3d0/0x430
[ 79.547087][ T5126] bch2_fs_journal_start+0x1356/0x14a0
[ 79.552576][ T5126] ? __pfx_bch2_fs_journal_start+0x10/0x10
[ 79.558391][ T5126] ? journal_replay_entry_early+0x4d/0xb70
[ 79.564215][ T5126] ? __pfx_bch2_journal_log_msg+0x10/0x10
[ 79.569950][ T5126] ? bch2_recovery_passes_from_stable+0x104/0x120
[ 79.576560][ T5126] bch2_fs_recovery+0x1ec8/0x38d0
[ 79.581612][ T5126] ? __pfx_bch2_fs_recovery+0x10/0x10
[ 79.587028][ T5126] ? __pfx_lock_release+0x10/0x10
[ 79.592071][ T5126] ? bch2_get_next_online_dev+0x2b/0x4f0
[ 79.597713][ T5126] ? __pfx_lock_release+0x10/0x10
[ 79.602762][ T5126] ? bch2_get_next_online_dev+0x2b/0x4f0
[ 79.608408][ T5126] ? bch2_get_next_online_dev+0x4b9/0x4f0
[ 79.614136][ T5126] ? bch2_get_next_online_dev+0x2b/0x4f0
[ 79.619782][ T5126] ? llist_reverse_order+0x72/0x90
[ 79.624918][ T5126] bch2_fs_start+0x356/0x5b0
[ 79.629543][ T5126] bch2_fs_get_tree+0xd61/0x1700
[ 79.634510][ T5126] ? __pfx_bch2_parse_one_mount_opt+0x10/0x10
[ 79.640595][ T5126] ? __pfx_bch2_fs_get_tree+0x10/0x10
[ 79.646020][ T5126] ? generic_parse_monolithic+0x387/0x400
[ 79.651759][ T5126] ? apparmor_capable+0x13b/0x1b0
[ 79.656804][ T5126] ? bpf_lsm_capable+0x9/0x10
[ 79.661499][ T5126] vfs_get_tree+0x90/0x2a0
[ 79.665926][ T5126] do_new_mount+0x2be/0xb40
[ 79.670449][ T5126] ? __pfx_do_new_mount+0x10/0x10
[ 79.675518][ T5126] __se_sys_mount+0x2d6/0x3c0
[ 79.680212][ T5126] ? __pfx___se_sys_mount+0x10/0x10
[ 79.685426][ T5126] ? do_syscall_64+0x100/0x230
[ 79.690218][ T5126] ? __x64_sys_mount+0x20/0xc0
[ 79.694992][ T5126] do_syscall_64+0xf3/0x230
[ 79.699519][ T5126] ? clear_bhb_loop+0x35/0x90
[ 79.704212][ T5126] entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 79.710117][ T5126] RIP: 0033:0x7f031b19bdea
[ 79.714627][ T5126] 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
[ 79.734243][ T5126] RSP: 002b:00007ffdc4fa7228 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5
[ 79.742670][ T5126] RAX: ffffffffffffffda RBX: 00007ffdc4fa7240 RCX: 00007f031b19bdea
[ 79.750650][ T5126] RDX: 0000000020000000 RSI: 000000002000f680 RDI: 00007ffdc4fa7240
[ 79.758641][ T5126] RBP: 0000000000000004 R08: 00007ffdc4fa7280 R09: 000000000000f626
[ 79.766623][ T5126] R10: 0000000000200012 R11: 0000000000000282 R12: 0000000000200012
[ 79.774613][ T5126] R13: 00007ffdc4fa7280 R14: 0000000000000003 R15: 0000000001000000
[ 79.782602][ T5126]
[ 79.785920][ T5126] bcachefs (loop0): insufficient writeable journal devices available: have 0, need 1
[ 79.785920][ T5126] rw journal devs:
[ 79.811880][ T5126] bcachefs (loop0): accounting_read... done
[ 79.817942][ T5126] bcachefs (loop0): alloc_read... done
[ 79.823478][ T5126] bcachefs (loop0): stripes_read... done
[ 79.829208][ T5126] bcachefs (loop0): snapshots_read... done
[ 79.835165][ T5126] bcachefs (loop0): check_allocations...
[ 79.836748][ T5126] btree ptr not marked in member info btree allocated bitmap
[ 79.836763][ T5126] 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
[ 79.864825][ T5126] bcachefs (loop0): inconsistency detected - emergency read only at journal seq 13
[ 79.874209][ T5126] bcachefs (loop0): bch2_gc_mark_key(): error fsck_errors_not_fixed
[ 79.882292][ T5126] bcachefs (loop0): bch2_gc_btree(): error fsck_errors_not_fixed
[ 79.890087][ T5126] bcachefs (loop0): bch2_gc_btrees(): error fsck_errors_not_fixed
[ 79.898020][ T5126] bcachefs (loop0): bch2_check_allocations(): error fsck_errors_not_fixed
[ 79.906677][ T5126] bcachefs (loop0): bch2_fs_recovery(): error fsck_errors_not_fixed
[ 79.915037][ T5126] bcachefs (loop0): bch2_fs_start(): error starting filesystem fsck_errors_not_fixed
[ 79.924878][ T5126] bcachefs (loop0): shutting down
[ 79.940435][ T5126] bcachefs (loop0): shutdown complete
[pid 5126] mount("/dev/loop0", "./file1", "bcachefs", MS_NOSUID|MS_SYNCHRONOUS|MS_RELATIME, "\xff") = -1 EINVAL (Invalid argument)
[pid 5126] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3
[pid 5126] ioctl(3, LOOP_CLR_FD) = 0
[ 80.153887][ T5126] bcachefs: bch2_fs_get_tree() error: fsck_errors_not_fixed
[pid 5126] close(3) = 0
[pid 5126] exit_group(0) = ?
[pid 5126] +++ exited with 0 +++
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5126, si_uid=0, si_status=0, si_utime=2 /* 0.02 s */, si_stime=76 /* 0.76 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 5135 attached
, child_tidptr=0x5555628cf650) = 5135
[pid 5135] set_robust_list(0x5555628cf660, 24) = 0
[pid 5135] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0
[pid 5135] setpgid(0, 0) = 0
[pid 5135] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3
[pid 5135] write(3, "1000", 4) = 4
[pid 5135] close(3) = 0
executing program
[pid 5135] write(1, "executing program\n", 18) = 18
[pid 5135] memfd_create("syzkaller", 0) = 3
[pid 5135] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0312c00000
[pid 5135] 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 5135] munmap(0x7f0312c00000, 138412032) = 0
[pid 5135] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4
[pid 5135] ioctl(4, LOOP_SET_FD, 3) = 0
[pid 5135] close(3) = 0
[pid 5135] close(4) = 0
[pid 5135] mkdir("./file1", 0777) = -1 EEXIST (File exists)
[ 80.547475][ T5135] loop0: detected capacity change from 0 to 32768
[ 80.568327][ T5135] bcachefs (/dev/loop0): error reading default superblock: Not a bcachefs superblock (got magic c68573f6-4e1a-4502-8265-f57f48ba6d81)
[ 80.619988][ T5135] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names
[ 80.635409][ T5135] bcachefs (loop0): recovering from clean shutdown, journal seq 13
[ 80.643631][ T5135] bcachefs (loop0): Doing compatible version upgrade from 1.7: mi_btree_bitmap to 1.9: disk_accounting_v2
[ 80.643631][ T5135] running recovery passes: check_allocations
[ 80.663060][ T5135] BUG: sleeping function called from invalid context at include/linux/sched/mm.h:337
[ 80.672620][ T5135] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5135, name: syz-executor403
[ 80.682383][ T5135] preempt_count: 1, expected: 0
[ 80.687323][ T5135] RCU nest depth: 0, expected: 0
[ 80.692258][ T5135] 2 locks held by syz-executor403/5135:
[ 80.697955][ T5135] #0: ffff888070f00278 (&c->state_lock){+.+.}-{3:3}, at: bch2_fs_start+0x45/0x5b0
[ 80.707375][ T5135] #1: ffff888070f4a880 (&j->lock){+.+.}-{2:2}, at: bch2_fs_journal_start+0x1219/0x14a0
[ 80.717212][ T5135] Preemption disabled at:
[ 80.717228][ T5135] [<0000000000000000>] 0x0
[ 80.725992][ T5135] CPU: 0 UID: 0 PID: 5135 Comm: syz-executor403 Tainted: G W 6.10.0-next-20240718-syzkaller #0
[ 80.737717][ T5135] Tainted: [W]=WARN
[ 80.741515][ T5135] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
[ 80.751571][ T5135] Call Trace:
[ 80.754853][ T5135]
[ 80.757790][ T5135] dump_stack_lvl+0x241/0x360
[ 80.762486][ T5135] ? __pfx_dump_stack_lvl+0x10/0x10
[ 80.767726][ T5135] ? __pfx__printk+0x10/0x10
[ 80.772377][ T5135] __might_resched+0x5d4/0x780
[ 80.777167][ T5135] ? __pfx___might_resched+0x10/0x10
[ 80.782513][ T5135] ? fs_reclaim_acquire+0x93/0x140
[ 80.787637][ T5135] __kmalloc_node_track_caller_noprof+0xcb/0x440
[ 80.793979][ T5135] ? bch2_printbuf_make_room+0x1f1/0x350
[ 80.799647][ T5135] krealloc_noprof+0x7d/0x120
[ 80.804344][ T5135] bch2_printbuf_make_room+0x1f1/0x350
[ 80.809817][ T5135] bch2_prt_printf+0x267/0x6d0
[ 80.814585][ T5135] ? bch2_journal_space_available+0x11c/0x1b00
[ 80.820807][ T5135] ? __pfx_bch2_prt_printf+0x10/0x10
[ 80.826209][ T5135] bch2_journal_space_available+0x89b/0x1b00
[ 80.832235][ T5135] ? kasan_save_track+0x51/0x80
[ 80.837103][ T5135] ? kasan_save_track+0x3f/0x80
[ 80.842072][ T5135] ? poison_slab_object+0xe0/0x150
[ 80.847294][ T5135] ? __kasan_slab_free+0x37/0x60
[ 80.852235][ T5135] ? bch2_journal_space_available+0x11c/0x1b00
[ 80.858408][ T5135] ? bch2_journal_log_msg+0xda/0x120
[ 80.863782][ T5135] ? bch2_fs_recovery+0x1e48/0x38d0
[ 80.868994][ T5135] ? bch2_fs_get_tree+0xd61/0x1700
[ 80.874131][ T5135] ? vfs_get_tree+0x90/0x2a0
[ 80.878722][ T5135] ? do_new_mount+0x2be/0xb40
[ 80.883400][ T5135] ? __se_sys_mount+0x2d6/0x3c0
[ 80.888257][ T5135] ? __pfx_bch2_journal_space_available+0x10/0x10
[ 80.894688][ T5135] ? mark_lock+0x9a/0x360
[ 80.899034][ T5135] ? __lock_acquire+0x1384/0x2050
[ 80.904084][ T5135] ? kasan_quarantine_put+0xdc/0x230
[ 80.909381][ T5135] ? lockdep_hardirqs_on+0x99/0x150
[ 80.914591][ T5135] ? __pfx_lock_acquire+0x10/0x10
[ 80.919628][ T5135] ? do_raw_spin_lock+0x14f/0x370
[ 80.924662][ T5135] ? __pfx_do_raw_spin_lock+0x10/0x10
[ 80.930038][ T5135] ? __genradix_iter_peek+0x3d0/0x430
[ 80.935428][ T5135] bch2_fs_journal_start+0x1356/0x14a0
[ 80.940914][ T5135] ? __pfx_bch2_fs_journal_start+0x10/0x10
[ 80.946721][ T5135] ? journal_replay_entry_early+0x4d/0xb70
[ 80.952547][ T5135] ? __pfx_bch2_journal_log_msg+0x10/0x10
[ 80.958282][ T5135] ? bch2_recovery_passes_from_stable+0x104/0x120
[ 80.964716][ T5135] bch2_fs_recovery+0x1ec8/0x38d0
[ 80.969766][ T5135] ? __pfx_bch2_fs_recovery+0x10/0x10
[ 80.975174][ T5135] ? __pfx_lock_release+0x10/0x10
[ 80.980216][ T5135] ? bch2_get_next_online_dev+0x2b/0x4f0
[ 80.985856][ T5135] ? __pfx_lock_release+0x10/0x10
[ 80.990939][ T5135] ? bch2_get_next_online_dev+0x2b/0x4f0
[ 80.996587][ T5135] ? bch2_get_next_online_dev+0x4b9/0x4f0
[ 81.002310][ T5135] ? bch2_get_next_online_dev+0x2b/0x4f0
[ 81.007985][ T5135] ? llist_reverse_order+0x72/0x90
[ 81.013110][ T5135] bch2_fs_start+0x356/0x5b0
[ 81.017742][ T5135] bch2_fs_get_tree+0xd61/0x1700
[ 81.022702][ T5135] ? __pfx_bch2_parse_one_mount_opt+0x10/0x10
[ 81.028870][ T5135] ? __pfx_bch2_fs_get_tree+0x10/0x10
[ 81.034264][ T5135] ? generic_parse_monolithic+0x387/0x400
[ 81.039999][ T5135] ? apparmor_capable+0x13b/0x1b0
[ 81.045048][ T5135] ? bpf_lsm_capable+0x9/0x10
[ 81.049752][ T5135] vfs_get_tree+0x90/0x2a0
[ 81.054171][ T5135] do_new_mount+0x2be/0xb40
[ 81.058706][ T5135] ? __pfx_do_new_mount+0x10/0x10
[ 81.063744][ T5135] __se_sys_mount+0x2d6/0x3c0
[ 81.068461][ T5135] ? __pfx___se_sys_mount+0x10/0x10
[ 81.073660][ T5135] ? do_syscall_64+0x100/0x230
[ 81.078443][ T5135] ? __x64_sys_mount+0x20/0xc0
[ 81.083238][ T5135] do_syscall_64+0xf3/0x230
[ 81.087754][ T5135] ? clear_bhb_loop+0x35/0x90
[ 81.092440][ T5135] entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 81.098337][ T5135] RIP: 0033:0x7f031b19bdea
[ 81.102750][ T5135] 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.122359][ T5135] RSP: 002b:00007ffdc4fa7228 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5
[ 81.130781][ T5135] RAX: ffffffffffffffda RBX: 00007ffdc4fa7240 RCX: 00007f031b19bdea
[ 81.138764][ T5135] RDX: 0000000020000000 RSI: 000000002000f680 RDI: 00007ffdc4fa7240
[ 81.146736][ T5135] RBP: 0000000000000004 R08: 00007ffdc4fa7280 R09: 000000000000f626
[ 81.154718][ T5135] R10: 0000000000200012 R11: 0000000000000282 R12: 0000000000200012
[ 81.162693][ T5135] R13: 00007ffdc4fa7280 R14: 0000000000000003 R15: 0000000001000000
[ 81.170684][ T5135]
[ 81.173976][ T5135] bcachefs (loop0): insufficient writeable journal devices available: have 0, need 1
[ 81.173976][ T5135] rw journal devs:
[ 81.205491][ T5135] bcachefs (loop0): accounting_read... done
[ 81.211764][ T5135] bcachefs (loop0): alloc_read... done
[ 81.217434][ T5135] bcachefs (loop0): stripes_read... done
[ 81.223147][ T5135] bcachefs (loop0): snapshots_read... done
[ 81.229114][ T5135] bcachefs (loop0): check_allocations...
[ 81.230990][ T5135] btree ptr not marked in member info btree allocated bitmap
[ 81.231005][ T5135] 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.259017][ T5135] bcachefs (loop0): inconsistency detected - emergency read only at journal seq 13
[ 81.268403][ T5135] bcachefs (loop0): bch2_gc_mark_key(): error fsck_errors_not_fixed
[ 81.276393][ T5135] bcachefs (loop0): bch2_gc_btree(): error fsck_errors_not_fixed
[ 81.284236][ T5135] bcachefs (loop0): bch2_gc_btrees(): error fsck_errors_not_fixed
[ 81.292163][ T5135] bcachefs (loop0): bch2_check_allocations(): error fsck_errors_not_fixed
[ 81.300840][ T5135] bcachefs (loop0): bch2_fs_recovery(): error fsck_errors_not_fixed
[ 81.308893][ T5135] bcachefs (loop0): bch2_fs_start(): error starting filesystem fsck_errors_not_fixed
[ 81.318896][ T5135] bcachefs (loop0): shutting down
[ 81.334390][ T5135] bcachefs (loop0): shutdown complete
[pid 5135] mount("/dev/loop0", "./file1", "bcachefs", MS_NOSUID|MS_SYNCHRONOUS|MS_RELATIME, "\xff") = -1 EINVAL (Invalid argument)
[pid 5135] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3
[pid 5135] ioctl(3, LOOP_CLR_FD) = 0
[ 81.544457][ T5135] bcachefs: bch2_fs_get_tree() error: fsck_errors_not_fixed
[pid 5135] close(3) = 0
[pid 5135] exit_group(0) = ?
[pid 5135] +++ exited with 0 +++
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5135, si_uid=0, si_status=0, si_utime=1 /* 0.01 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 5144 attached
[pid 5144] set_robust_list(0x5555628cf660, 24) = 0
[pid 5144] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0
[pid 5144] setpgid(0, 0
[pid 5105] <... clone resumed>, child_tidptr=0x5555628cf650) = 5144
[pid 5144] <... setpgid resumed>) = 0
[pid 5144] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3
[pid 5144] write(3, "1000", 4) = 4
[pid 5144] close(3) = 0
[pid 5144] write(1, "executing program\n", 18executing program
) = 18
[pid 5144] memfd_create("syzkaller", 0) = 3
[pid 5144] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0312c00000
[pid 5144] 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 5144] munmap(0x7f0312c00000, 138412032) = 0
[pid 5144] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4
[pid 5144] ioctl(4, LOOP_SET_FD, 3) = 0
[pid 5144] close(3) = 0
[pid 5144] close(4) = 0
[pid 5144] mkdir("./file1", 0777) = -1 EEXIST (File exists)
[ 81.989087][ T5144] loop0: detected capacity change from 0 to 32768
[ 82.029929][ T5144] bcachefs (/dev/loop0): error reading default superblock: Not a bcachefs superblock (got magic c68573f6-4e1a-4502-8265-f57f48ba6d81)
[ 82.148493][ T5144] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names
[ 82.164363][ T5144] bcachefs (loop0): recovering from clean shutdown, journal seq 13
[ 82.172756][ T5144] bcachefs (loop0): Doing compatible version upgrade from 1.7: mi_btree_bitmap to 1.9: disk_accounting_v2
[ 82.172756][ T5144] running recovery passes: check_allocations
[ 82.191803][ T5144] BUG: sleeping function called from invalid context at include/linux/sched/mm.h:337
[ 82.201465][ T5144] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5144, name: syz-executor403
[ 82.211054][ T5144] preempt_count: 1, expected: 0
[ 82.215925][ T5144] RCU nest depth: 0, expected: 0
[ 82.220978][ T5144] 2 locks held by syz-executor403/5144:
[ 82.226611][ T5144] #0: ffff888073680278 (&c->state_lock){+.+.}-{3:3}, at: bch2_fs_start+0x45/0x5b0
[ 82.236002][ T5144] #1: ffff8880736ca880 (&j->lock){+.+.}-{2:2}, at: bch2_fs_journal_start+0x1219/0x14a0
[ 82.245906][ T5144] Preemption disabled at:
[ 82.245920][ T5144] [<0000000000000000>] 0x0
[ 82.254820][ T5144] CPU: 1 UID: 0 PID: 5144 Comm: syz-executor403 Tainted: G W 6.10.0-next-20240718-syzkaller #0
[ 82.266574][ T5144] Tainted: [W]=WARN
[ 82.270395][ T5144] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
[ 82.280471][ T5144] Call Trace:
[ 82.283773][ T5144]
[ 82.286726][ T5144] dump_stack_lvl+0x241/0x360
[ 82.291467][ T5144] ? __pfx_dump_stack_lvl+0x10/0x10
[ 82.296705][ T5144] ? __pfx__printk+0x10/0x10
[ 82.301350][ T5144] __might_resched+0x5d4/0x780
[ 82.306172][ T5144] ? __pfx___might_resched+0x10/0x10
[ 82.311506][ T5144] ? fs_reclaim_acquire+0x93/0x140
[ 82.316653][ T5144] __kmalloc_node_track_caller_noprof+0xcb/0x440
[ 82.323101][ T5144] ? bch2_printbuf_make_room+0x1f1/0x350
[ 82.328781][ T5144] krealloc_noprof+0x7d/0x120
[ 82.333492][ T5144] bch2_printbuf_make_room+0x1f1/0x350
[ 82.339034][ T5144] bch2_prt_printf+0x267/0x6d0
[ 82.343830][ T5144] ? bch2_journal_space_available+0x11c/0x1b00
[ 82.350031][ T5144] ? __pfx_bch2_prt_printf+0x10/0x10
[ 82.355368][ T5144] bch2_journal_space_available+0x89b/0x1b00
[ 82.361401][ T5144] ? kasan_save_track+0x51/0x80
[ 82.366293][ T5144] ? kasan_save_track+0x3f/0x80
[ 82.371184][ T5144] ? poison_slab_object+0xe0/0x150
[ 82.376329][ T5144] ? __kasan_slab_free+0x37/0x60
[ 82.381277][ T5144] ? bch2_journal_space_available+0x11c/0x1b00
[ 82.387447][ T5144] ? bch2_journal_log_msg+0xda/0x120
[ 82.392742][ T5144] ? bch2_fs_recovery+0x1e48/0x38d0
[ 82.397963][ T5144] ? bch2_fs_get_tree+0xd61/0x1700
[ 82.403087][ T5144] ? vfs_get_tree+0x90/0x2a0
[ 82.407686][ T5144] ? do_new_mount+0x2be/0xb40
[ 82.412384][ T5144] ? __se_sys_mount+0x2d6/0x3c0
[ 82.417249][ T5144] ? __pfx_bch2_journal_space_available+0x10/0x10
[ 82.423699][ T5144] ? mark_lock+0x9a/0x360
[ 82.428053][ T5144] ? __lock_acquire+0x1384/0x2050
[ 82.433122][ T5144] ? kasan_quarantine_put+0xdc/0x230
[ 82.438424][ T5144] ? lockdep_hardirqs_on+0x99/0x150
[ 82.443689][ T5144] ? __pfx_lock_acquire+0x10/0x10
[ 82.448738][ T5144] ? do_raw_spin_lock+0x14f/0x370
[ 82.453874][ T5144] ? __pfx_do_raw_spin_lock+0x10/0x10
[ 82.459255][ T5144] ? __genradix_iter_peek+0x3d0/0x430
[ 82.464656][ T5144] bch2_fs_journal_start+0x1356/0x14a0
[ 82.470163][ T5144] ? __pfx_bch2_fs_journal_start+0x10/0x10
[ 82.475979][ T5144] ? journal_replay_entry_early+0x4d/0xb70
[ 82.481811][ T5144] ? __pfx_bch2_journal_log_msg+0x10/0x10
[ 82.487657][ T5144] ? bch2_recovery_passes_from_stable+0x104/0x120
[ 82.494198][ T5144] bch2_fs_recovery+0x1ec8/0x38d0
[ 82.499253][ T5144] ? __pfx_bch2_fs_recovery+0x10/0x10
[ 82.504667][ T5144] ? __pfx_lock_release+0x10/0x10
[ 82.509712][ T5144] ? bch2_get_next_online_dev+0x2b/0x4f0
[ 82.515356][ T5144] ? __pfx_lock_release+0x10/0x10
[ 82.520409][ T5144] ? bch2_get_next_online_dev+0x2b/0x4f0
[ 82.526054][ T5144] ? bch2_get_next_online_dev+0x4b9/0x4f0
[ 82.531809][ T5144] ? bch2_get_next_online_dev+0x2b/0x4f0
[ 82.537458][ T5144] ? llist_reverse_order+0x72/0x90
[ 82.542591][ T5144] bch2_fs_start+0x356/0x5b0
[ 82.547204][ T5144] bch2_fs_get_tree+0xd61/0x1700
[ 82.552174][ T5144] ? __pfx_bch2_parse_one_mount_opt+0x10/0x10
[ 82.558259][ T5144] ? __pfx_bch2_fs_get_tree+0x10/0x10
[ 82.563668][ T5144] ? generic_parse_monolithic+0x387/0x400
[ 82.569407][ T5144] ? apparmor_capable+0x13b/0x1b0
[ 82.574472][ T5144] ? bpf_lsm_capable+0x9/0x10
[ 82.579167][ T5144] vfs_get_tree+0x90/0x2a0
[ 82.583594][ T5144] do_new_mount+0x2be/0xb40
[ 82.588119][ T5144] ? __pfx_do_new_mount+0x10/0x10
[ 82.593160][ T5144] __se_sys_mount+0x2d6/0x3c0
[ 82.597857][ T5144] ? __pfx___se_sys_mount+0x10/0x10
[ 82.603063][ T5144] ? do_syscall_64+0x100/0x230
[ 82.607853][ T5144] ? __x64_sys_mount+0x20/0xc0
[ 82.612630][ T5144] do_syscall_64+0xf3/0x230
[ 82.617157][ T5144] ? clear_bhb_loop+0x35/0x90
[ 82.621851][ T5144] entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 82.627758][ T5144] RIP: 0033:0x7f031b19bdea
[ 82.632184][ T5144] 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
[ 82.651798][ T5144] RSP: 002b:00007ffdc4fa7228 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5
[ 82.660230][ T5144] RAX: ffffffffffffffda RBX: 00007ffdc4fa7240 RCX: 00007f031b19bdea
[ 82.668299][ T5144] RDX: 0000000020000000 RSI: 000000002000f680 RDI: 00007ffdc4fa7240
[ 82.676277][ T5144] RBP: 0000000000000004 R08: 00007ffdc4fa7280 R09: 000000000000f626
[ 82.684253][ T5144] R10: 0000000000200012 R11: 0000000000000282 R12: 0000000000200012
[ 82.692229][ T5144] R13: 00007ffdc4fa7280 R14: 0000000000000003 R15: 0000000001000000
[ 82.700225][ T5144]
[ 82.703643][ T5144] bcachefs (loop0): insufficient writeable journal devices available: have 0, need 1
[ 82.703643][ T5144] rw journal devs:
[ 82.729166][ T5144] bcachefs (loop0): accounting_read... done
[ 82.735130][ T5144] bcachefs (loop0): alloc_read... done
[ 82.740721][ T5144] bcachefs (loop0): stripes_read... done
[ 82.746438][ T5144] bcachefs (loop0): snapshots_read... done
[ 82.752491][ T5144] bcachefs (loop0): check_allocations...
[ 82.754363][ T5144] btree ptr not marked in member info btree allocated bitmap
[ 82.754378][ T5144] 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
[ 82.782586][ T5144] bcachefs (loop0): inconsistency detected - emergency read only at journal seq 13
[ 82.792110][ T5144] bcachefs (loop0): bch2_gc_mark_key(): error fsck_errors_not_fixed
[ 82.800195][ T5144] bcachefs (loop0): bch2_gc_btree(): error fsck_errors_not_fixed
[ 82.808007][ T5144] bcachefs (loop0): bch2_gc_btrees(): error fsck_errors_not_fixed
[ 82.815891][ T5144] bcachefs (loop0): bch2_check_allocations(): error fsck_errors_not_fixed
[ 82.824600][ T5144] bcachefs (loop0): bch2_fs_recovery(): error fsck_errors_not_fixed
[ 82.832649][ T5144] bcachefs (loop0): bch2_fs_start(): error starting filesystem fsck_errors_not_fixed
[ 82.842182][ T5144] bcachefs (loop0): shutting down
[ 82.857624][ T5144] bcachefs (loop0): shutdown complete
[pid 5144] mount("/dev/loop0", "./file1", "bcachefs", MS_NOSUID|MS_SYNCHRONOUS|MS_RELATIME, "\xff") = -1 EINVAL (Invalid argument)
[pid 5144] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3
[pid 5144] ioctl(3, LOOP_CLR_FD) = 0
[ 83.090960][ T5144] bcachefs: bch2_fs_get_tree() error: fsck_errors_not_fixed
[pid 5144] close(3) = 0
[pid 5144] exit_group(0) = ?
[pid 5144] +++ exited with 0 +++
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5144, si_uid=0, si_status=0, si_utime=2 /* 0.02 s */, si_stime=81 /* 0.81 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 5153 attached
, child_tidptr=0x5555628cf650) = 5153
[pid 5153] set_robust_list(0x5555628cf660, 24) = 0
[pid 5153] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0
[pid 5153] setpgid(0, 0) = 0
[pid 5153] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3
[pid 5153] write(3, "1000", 4) = 4
[pid 5153] close(3) = 0
[pid 5153] write(1, "executing program\n", 18executing program
) = 18
[pid 5153] memfd_create("syzkaller", 0) = 3
[pid 5153] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0312c00000
[pid 5153] 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 5153] munmap(0x7f0312c00000, 138412032) = 0
[pid 5153] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4
[pid 5153] ioctl(4, LOOP_SET_FD, 3) = 0
[pid 5153] close(3) = 0
[pid 5153] close(4) = 0
[pid 5153] mkdir("./file1", 0777) = -1 EEXIST (File exists)
[ 83.523038][ T5153] loop0: detected capacity change from 0 to 32768
[ 83.545044][ T5153] bcachefs (/dev/loop0): error reading default superblock: Not a bcachefs superblock (got magic c68573f6-4e1a-4502-8265-f57f48ba6d81)
[ 83.598671][ T5153] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names
[ 83.614316][ T5153] bcachefs (loop0): recovering from clean shutdown, journal seq 13
[ 83.622462][ T5153] bcachefs (loop0): Doing compatible version upgrade from 1.7: mi_btree_bitmap to 1.9: disk_accounting_v2
[ 83.622462][ T5153] running recovery passes: check_allocations
[ 83.640903][ T5153] BUG: sleeping function called from invalid context at include/linux/sched/mm.h:337
[ 83.650621][ T5153] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5153, name: syz-executor403
[ 83.660151][ T5153] preempt_count: 1, expected: 0
[ 83.665004][ T5153] RCU nest depth: 0, expected: 0
[ 83.669996][ T5153] 2 locks held by syz-executor403/5153:
[ 83.675561][ T5153] #0: ffff888072000278 (&c->state_lock){+.+.}-{3:3}, at: bch2_fs_start+0x45/0x5b0
[ 83.684979][ T5153] #1: ffff88807204a880 (&j->lock){+.+.}-{2:2}, at: bch2_fs_journal_start+0x1219/0x14a0
[ 83.694841][ T5153] Preemption disabled at:
[ 83.694856][ T5153] [<0000000000000000>] 0x0
[ 83.703705][ T5153] CPU: 1 UID: 0 PID: 5153 Comm: syz-executor403 Tainted: G W 6.10.0-next-20240718-syzkaller #0
[ 83.715877][ T5153] Tainted: [W]=WARN
[ 83.719682][ T5153] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
[ 83.729745][ T5153] Call Trace:
[ 83.733032][ T5153]
[ 83.736143][ T5153] dump_stack_lvl+0x241/0x360
[ 83.740846][ T5153] ? __pfx_dump_stack_lvl+0x10/0x10
[ 83.746064][ T5153] ? __pfx__printk+0x10/0x10
[ 83.750683][ T5153] __might_resched+0x5d4/0x780
[ 83.755469][ T5153] ? __pfx___might_resched+0x10/0x10
[ 83.760775][ T5153] ? fs_reclaim_acquire+0x93/0x140
[ 83.765933][ T5153] __kmalloc_node_track_caller_noprof+0xcb/0x440
[ 83.772323][ T5153] ? bch2_printbuf_make_room+0x1f1/0x350
[ 83.777979][ T5153] krealloc_noprof+0x7d/0x120
[ 83.782679][ T5153] bch2_printbuf_make_room+0x1f1/0x350
[ 83.788157][ T5153] bch2_prt_printf+0x267/0x6d0
[ 83.793025][ T5153] ? bch2_journal_space_available+0x11c/0x1b00
[ 83.799197][ T5153] ? __pfx_bch2_prt_printf+0x10/0x10
[ 83.804504][ T5153] bch2_journal_space_available+0x89b/0x1b00
[ 83.810521][ T5153] ? kasan_save_track+0x51/0x80
[ 83.815387][ T5153] ? kasan_save_track+0x3f/0x80
[ 83.820252][ T5153] ? poison_slab_object+0xe0/0x150
[ 83.825380][ T5153] ? __kasan_slab_free+0x37/0x60
[ 83.830321][ T5153] ? bch2_journal_space_available+0x11c/0x1b00
[ 83.836591][ T5153] ? bch2_journal_log_msg+0xda/0x120
[ 83.841881][ T5153] ? bch2_fs_recovery+0x1e48/0x38d0
[ 83.847091][ T5153] ? bch2_fs_get_tree+0xd61/0x1700
[ 83.852302][ T5153] ? vfs_get_tree+0x90/0x2a0
[ 83.856922][ T5153] ? do_new_mount+0x2be/0xb40
[ 83.861626][ T5153] ? __se_sys_mount+0x2d6/0x3c0
[ 83.866505][ T5153] ? __pfx_bch2_journal_space_available+0x10/0x10
[ 83.872956][ T5153] ? mark_lock+0x9a/0x360
[ 83.877341][ T5153] ? __lock_acquire+0x1384/0x2050
[ 83.882409][ T5153] ? kasan_quarantine_put+0xdc/0x230
[ 83.887717][ T5153] ? lockdep_hardirqs_on+0x99/0x150
[ 83.892957][ T5153] ? __pfx_lock_acquire+0x10/0x10
[ 83.898048][ T5153] ? do_raw_spin_lock+0x14f/0x370
[ 83.903412][ T5153] ? __pfx_do_raw_spin_lock+0x10/0x10
[ 83.908806][ T5153] ? __genradix_iter_peek+0x3d0/0x430
[ 83.914209][ T5153] bch2_fs_journal_start+0x1356/0x14a0
[ 83.919711][ T5153] ? __pfx_bch2_fs_journal_start+0x10/0x10
[ 83.925539][ T5153] ? journal_replay_entry_early+0x4d/0xb70
[ 83.931367][ T5153] ? __pfx_bch2_journal_log_msg+0x10/0x10
[ 83.937216][ T5153] ? bch2_recovery_passes_from_stable+0x104/0x120
[ 83.943654][ T5153] bch2_fs_recovery+0x1ec8/0x38d0
[ 83.948725][ T5153] ? __pfx_bch2_fs_recovery+0x10/0x10
[ 83.954161][ T5153] ? __pfx_lock_release+0x10/0x10
[ 83.959227][ T5153] ? bch2_get_next_online_dev+0x2b/0x4f0
[ 83.964905][ T5153] ? __pfx_lock_release+0x10/0x10
[ 83.969973][ T5153] ? bch2_get_next_online_dev+0x2b/0x4f0
[ 83.975627][ T5153] ? bch2_get_next_online_dev+0x4b9/0x4f0
[ 83.981469][ T5153] ? bch2_get_next_online_dev+0x2b/0x4f0
[ 83.987123][ T5153] ? llist_reverse_order+0x72/0x90
[ 83.992258][ T5153] bch2_fs_start+0x356/0x5b0
[ 83.996875][ T5153] bch2_fs_get_tree+0xd61/0x1700
[ 84.001845][ T5153] ? __pfx_bch2_parse_one_mount_opt+0x10/0x10
[ 84.007929][ T5153] ? __pfx_bch2_fs_get_tree+0x10/0x10
[ 84.013359][ T5153] ? generic_parse_monolithic+0x387/0x400
[ 84.019100][ T5153] ? apparmor_capable+0x13b/0x1b0
[ 84.024165][ T5153] ? bpf_lsm_capable+0x9/0x10
[ 84.028862][ T5153] vfs_get_tree+0x90/0x2a0
[ 84.033288][ T5153] do_new_mount+0x2be/0xb40
[ 84.037804][ T5153] ? __pfx_do_new_mount+0x10/0x10
[ 84.042846][ T5153] __se_sys_mount+0x2d6/0x3c0
[ 84.047536][ T5153] ? __pfx___se_sys_mount+0x10/0x10
[ 84.052748][ T5153] ? do_syscall_64+0x100/0x230
[ 84.057533][ T5153] ? __x64_sys_mount+0x20/0xc0
[ 84.062305][ T5153] do_syscall_64+0xf3/0x230
[ 84.066829][ T5153] ? clear_bhb_loop+0x35/0x90
[ 84.071539][ T5153] entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 84.077464][ T5153] RIP: 0033:0x7f031b19bdea
[ 84.081886][ T5153] 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.101497][ T5153] RSP: 002b:00007ffdc4fa7228 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5
[ 84.109940][ T5153] RAX: ffffffffffffffda RBX: 00007ffdc4fa7240 RCX: 00007f031b19bdea
[ 84.117920][ T5153] RDX: 0000000020000000 RSI: 000000002000f680 RDI: 00007ffdc4fa7240
[ 84.125897][ T5153] RBP: 0000000000000004 R08: 00007ffdc4fa7280 R09: 000000000000f626
[ 84.133873][ T5153] R10: 0000000000200012 R11: 0000000000000282 R12: 0000000000200012
[ 84.141846][ T5153] R13: 00007ffdc4fa7280 R14: 0000000000000003 R15: 0000000001000000
[ 84.149840][ T5153]
[ 84.153179][ T5153] bcachefs (loop0): insufficient writeable journal devices available: have 0, need 1
[ 84.153179][ T5153] rw journal devs:
[ 84.178698][ T5153] bcachefs (loop0): accounting_read... done
[ 84.184719][ T5153] bcachefs (loop0): alloc_read... done
[ 84.190314][ T5153] bcachefs (loop0): stripes_read... done
[ 84.196006][ T5153] bcachefs (loop0): snapshots_read... done
[ 84.201958][ T5153] bcachefs (loop0): check_allocations...
[ 84.203725][ T5153] btree ptr not marked in member info btree allocated bitmap
[ 84.203741][ T5153] 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.232229][ T5153] bcachefs (loop0): inconsistency detected - emergency read only at journal seq 13
[ 84.241670][ T5153] bcachefs (loop0): bch2_gc_mark_key(): error fsck_errors_not_fixed
[ 84.249786][ T5153] bcachefs (loop0): bch2_gc_btree(): error fsck_errors_not_fixed
[ 84.257599][ T5153] bcachefs (loop0): bch2_gc_btrees(): error fsck_errors_not_fixed
[ 84.265442][ T5153] bcachefs (loop0): bch2_check_allocations(): error fsck_errors_not_fixed
[ 84.274065][ T5153] bcachefs (loop0): bch2_fs_recovery(): error fsck_errors_not_fixed
[ 84.282104][ T5153] bcachefs (loop0): bch2_fs_start(): error starting filesystem fsck_errors_not_fixed
[ 84.291666][ T5153] bcachefs (loop0): shutting down
[ 84.307712][ T5153] bcachefs (loop0): shutdown complete
[pid 5153] mount("/dev/loop0", "./file1", "bcachefs", MS_NOSUID|MS_SYNCHRONOUS|MS_RELATIME, "\xff") = -1 EINVAL (Invalid argument)
[pid 5153] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3
[pid 5153] ioctl(3, LOOP_CLR_FD) = 0
[ 84.526974][ T5153] bcachefs: bch2_fs_get_tree() error: fsck_errors_not_fixed
[pid 5153] close(3) = 0
[pid 5153] exit_group(0) = ?
[pid 5153] +++ exited with 0 +++
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5153, 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 5162 attached
[pid 5162] set_robust_list(0x5555628cf660, 24) = 0
[pid 5162] prctl(PR_SET_PDEATHSIG, SIGKILL
[pid 5105] <... clone resumed>, child_tidptr=0x5555628cf650) = 5162
[pid 5162] <... prctl resumed>) = 0
[pid 5162] setpgid(0, 0) = 0
[pid 5162] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3
[pid 5162] write(3, "1000", 4) = 4
[pid 5162] close(3) = 0
[pid 5162] write(1, "executing program\n", 18executing program
) = 18
[pid 5162] memfd_create("syzkaller", 0) = 3
[pid 5162] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0312c00000
[pid 5162] 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 5162] munmap(0x7f0312c00000, 138412032) = 0
[pid 5162] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4
[pid 5162] ioctl(4, LOOP_SET_FD, 3) = 0
[pid 5162] close(3) = 0
[pid 5162] close(4) = 0
[pid 5162] mkdir("./file1", 0777) = -1 EEXIST (File exists)
[ 84.947891][ T5162] loop0: detected capacity change from 0 to 32768
[ 84.979482][ T5162] bcachefs (/dev/loop0): error reading default superblock: Not a bcachefs superblock (got magic c68573f6-4e1a-4502-8265-f57f48ba6d81)
[ 85.032283][ T5162] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names
[ 85.047587][ T5162] bcachefs (loop0): recovering from clean shutdown, journal seq 13
[ 85.055569][ T5162] bcachefs (loop0): Doing compatible version upgrade from 1.7: mi_btree_bitmap to 1.9: disk_accounting_v2
[ 85.055569][ T5162] running recovery passes: check_allocations
[ 85.074351][ T5162] BUG: sleeping function called from invalid context at include/linux/sched/mm.h:337
[ 85.083951][ T5162] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5162, name: syz-executor403
[ 85.093584][ T5162] preempt_count: 1, expected: 0
[ 85.098484][ T5162] RCU nest depth: 0, expected: 0
[ 85.103420][ T5162] 2 locks held by syz-executor403/5162:
[ 85.109037][ T5162] #0: ffff888071180278 (&c->state_lock){+.+.}-{3:3}, at: bch2_fs_start+0x45/0x5b0
[ 85.118478][ T5162] #1: ffff8880711ca880 (&j->lock){+.+.}-{2:2}, at: bch2_fs_journal_start+0x1219/0x14a0
[ 85.128369][ T5162] Preemption disabled at:
[ 85.128382][ T5162] [<0000000000000000>] 0x0
[ 85.137238][ T5162] CPU: 1 UID: 0 PID: 5162 Comm: syz-executor403 Tainted: G W 6.10.0-next-20240718-syzkaller #0
[ 85.148988][ T5162] Tainted: [W]=WARN
[ 85.152802][ T5162] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
[ 85.162873][ T5162] Call Trace:
[ 85.166192][ T5162]
[ 85.169136][ T5162] dump_stack_lvl+0x241/0x360
[ 85.173856][ T5162] ? __pfx_dump_stack_lvl+0x10/0x10
[ 85.179084][ T5162] ? __pfx__printk+0x10/0x10
[ 85.183705][ T5162] __might_resched+0x5d4/0x780
[ 85.188489][ T5162] ? __pfx___might_resched+0x10/0x10
[ 85.193794][ T5162] ? fs_reclaim_acquire+0x93/0x140
[ 85.198920][ T5162] __kmalloc_node_track_caller_noprof+0xcb/0x440
[ 85.205262][ T5162] ? bch2_printbuf_make_room+0x1f1/0x350
[ 85.210913][ T5162] krealloc_noprof+0x7d/0x120
[ 85.215715][ T5162] bch2_printbuf_make_room+0x1f1/0x350
[ 85.221190][ T5162] bch2_prt_printf+0x267/0x6d0
[ 85.225971][ T5162] ? bch2_journal_space_available+0x11c/0x1b00
[ 85.232143][ T5162] ? __pfx_bch2_prt_printf+0x10/0x10
[ 85.237451][ T5162] bch2_journal_space_available+0x89b/0x1b00
[ 85.243447][ T5162] ? kasan_save_track+0x51/0x80
[ 85.248314][ T5162] ? kasan_save_track+0x3f/0x80
[ 85.253181][ T5162] ? poison_slab_object+0xe0/0x150
[ 85.258298][ T5162] ? __kasan_slab_free+0x37/0x60
[ 85.263247][ T5162] ? bch2_journal_space_available+0x11c/0x1b00
[ 85.269426][ T5162] ? bch2_journal_log_msg+0xda/0x120
[ 85.274719][ T5162] ? bch2_fs_recovery+0x1e48/0x38d0
[ 85.279938][ T5162] ? bch2_fs_get_tree+0xd61/0x1700
[ 85.285065][ T5162] ? vfs_get_tree+0x90/0x2a0
[ 85.289661][ T5162] ? do_new_mount+0x2be/0xb40
[ 85.294343][ T5162] ? __se_sys_mount+0x2d6/0x3c0
[ 85.299201][ T5162] ? __pfx_bch2_journal_space_available+0x10/0x10
[ 85.305644][ T5162] ? mark_lock+0x9a/0x360
[ 85.309998][ T5162] ? __lock_acquire+0x1384/0x2050
[ 85.315055][ T5162] ? kasan_quarantine_put+0xdc/0x230
[ 85.320534][ T5162] ? lockdep_hardirqs_on+0x99/0x150
[ 85.325757][ T5162] ? __pfx_lock_acquire+0x10/0x10
[ 85.330806][ T5162] ? do_raw_spin_lock+0x14f/0x370
[ 85.335850][ T5162] ? __pfx_do_raw_spin_lock+0x10/0x10
[ 85.341239][ T5162] ? __genradix_iter_peek+0x3d0/0x430
[ 85.346640][ T5162] bch2_fs_journal_start+0x1356/0x14a0
[ 85.352128][ T5162] ? __pfx_bch2_fs_journal_start+0x10/0x10
[ 85.357942][ T5162] ? journal_replay_entry_early+0x4d/0xb70
[ 85.363775][ T5162] ? __pfx_bch2_journal_log_msg+0x10/0x10
[ 85.369511][ T5162] ? bch2_recovery_passes_from_stable+0x104/0x120
[ 85.375953][ T5162] bch2_fs_recovery+0x1ec8/0x38d0
[ 85.381008][ T5162] ? __pfx_bch2_fs_recovery+0x10/0x10
[ 85.386430][ T5162] ? __pfx_lock_release+0x10/0x10
[ 85.391487][ T5162] ? bch2_get_next_online_dev+0x2b/0x4f0
[ 85.397175][ T5162] ? __pfx_lock_release+0x10/0x10
[ 85.402226][ T5162] ? bch2_get_next_online_dev+0x2b/0x4f0
[ 85.407871][ T5162] ? bch2_get_next_online_dev+0x4b9/0x4f0
[ 85.413610][ T5162] ? bch2_get_next_online_dev+0x2b/0x4f0
[ 85.419263][ T5162] ? llist_reverse_order+0x72/0x90
[ 85.424401][ T5162] bch2_fs_start+0x356/0x5b0
[ 85.429011][ T5162] bch2_fs_get_tree+0xd61/0x1700
[ 85.433976][ T5162] ? __pfx_bch2_parse_one_mount_opt+0x10/0x10
[ 85.440056][ T5162] ? __pfx_bch2_fs_get_tree+0x10/0x10
[ 85.445457][ T5162] ? generic_parse_monolithic+0x387/0x400
[ 85.451196][ T5162] ? apparmor_capable+0x13b/0x1b0
[ 85.456235][ T5162] ? bpf_lsm_capable+0x9/0x10
[ 85.460926][ T5162] vfs_get_tree+0x90/0x2a0
[ 85.465350][ T5162] do_new_mount+0x2be/0xb40
[ 85.469868][ T5162] ? __pfx_do_new_mount+0x10/0x10
[ 85.474910][ T5162] __se_sys_mount+0x2d6/0x3c0
[ 85.479600][ T5162] ? __pfx___se_sys_mount+0x10/0x10
[ 85.484810][ T5162] ? do_syscall_64+0x100/0x230
[ 85.489596][ T5162] ? __x64_sys_mount+0x20/0xc0
[ 85.494367][ T5162] do_syscall_64+0xf3/0x230
[ 85.498888][ T5162] ? clear_bhb_loop+0x35/0x90
[ 85.503582][ T5162] entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 85.509493][ T5162] RIP: 0033:0x7f031b19bdea
[ 85.513935][ T5162] 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
[ 85.533546][ T5162] RSP: 002b:00007ffdc4fa7228 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5
[ 85.541967][ T5162] RAX: ffffffffffffffda RBX: 00007ffdc4fa7240 RCX: 00007f031b19bdea
[ 85.549963][ T5162] RDX: 0000000020000000 RSI: 000000002000f680 RDI: 00007ffdc4fa7240
[ 85.557938][ T5162] RBP: 0000000000000004 R08: 00007ffdc4fa7280 R09: 000000000000f626
[ 85.565931][ T5162] R10: 0000000000200012 R11: 0000000000000282 R12: 0000000000200012
[ 85.573916][ T5162] R13: 00007ffdc4fa7280 R14: 0000000000000003 R15: 0000000001000000
[ 85.581911][ T5162]
[ 85.585270][ T5162] bcachefs (loop0): insufficient writeable journal devices available: have 0, need 1
[ 85.585270][ T5162] rw journal devs:
[ 85.610401][ T5162] bcachefs (loop0): accounting_read... done
[ 85.616377][ T5162] bcachefs (loop0): alloc_read... done
[ 85.621991][ T5162] bcachefs (loop0): stripes_read... done
[ 85.627821][ T5162] bcachefs (loop0): snapshots_read... done
[ 85.633735][ T5162] bcachefs (loop0): check_allocations...
[ 85.635157][ T5162] btree ptr not marked in member info btree allocated bitmap
[ 85.635172][ T5162] 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
[ 85.663355][ T5162] bcachefs (loop0): inconsistency detected - emergency read only at journal seq 13
[ 85.672747][ T5162] bcachefs (loop0): bch2_gc_mark_key(): error fsck_errors_not_fixed
[ 85.680788][ T5162] bcachefs (loop0): bch2_gc_btree(): error fsck_errors_not_fixed
[ 85.688582][ T5162] bcachefs (loop0): bch2_gc_btrees(): error fsck_errors_not_fixed
[ 85.696508][ T5162] bcachefs (loop0): bch2_check_allocations(): error fsck_errors_not_fixed
[ 85.705109][ T5162] bcachefs (loop0): bch2_fs_recovery(): error fsck_errors_not_fixed
[ 85.713155][ T5162] bcachefs (loop0): bch2_fs_start(): error starting filesystem fsck_errors_not_fixed
[ 85.722732][ T5162] bcachefs (loop0): shutting down
[ 85.738981][ T5162] bcachefs (loop0): shutdown complete
[pid 5162] mount("/dev/loop0", "./file1", "bcachefs", MS_NOSUID|MS_SYNCHRONOUS|MS_RELATIME, "\xff") = -1 EINVAL (Invalid argument)
[pid 5162] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3
[pid 5162] ioctl(3, LOOP_CLR_FD) = 0
[ 85.941295][ T5162] bcachefs: bch2_fs_get_tree() error: fsck_errors_not_fixed
[pid 5162] close(3) = 0
[pid 5162] exit_group(0) = ?
[pid 5162] +++ exited with 0 +++
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5162, si_uid=0, si_status=0, si_utime=5 /* 0.05 s */, si_stime=71 /* 0.71 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 5171 attached
[pid 5171] set_robust_list(0x5555628cf660, 24) = 0
[pid 5171] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0
[pid 5171] setpgid(0, 0
[pid 5105] <... clone resumed>, child_tidptr=0x5555628cf650) = 5171
[pid 5171] <... setpgid resumed>) = 0
[pid 5171] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3
[pid 5171] write(3, "1000", 4) = 4
[pid 5171] close(3) = 0
executing program
[pid 5171] write(1, "executing program\n", 18) = 18
[pid 5171] memfd_create("syzkaller", 0) = 3
[pid 5171] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0312c00000
[pid 5171] 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 5171] munmap(0x7f0312c00000, 138412032) = 0
[pid 5171] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4
[pid 5171] ioctl(4, LOOP_SET_FD, 3) = 0
[pid 5171] close(3) = 0
[pid 5171] close(4) = 0
[pid 5171] mkdir("./file1", 0777) = -1 EEXIST (File exists)
[ 86.319609][ T5171] loop0: detected capacity change from 0 to 32768
[ 86.345309][ T5171] bcachefs (/dev/loop0): error reading default superblock: Not a bcachefs superblock (got magic c68573f6-4e1a-4502-8265-f57f48ba6d81)
[ 86.401160][ T5171] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names
[ 86.416867][ T5171] bcachefs (loop0): recovering from clean shutdown, journal seq 13
[ 86.424968][ T5171] bcachefs (loop0): Doing compatible version upgrade from 1.7: mi_btree_bitmap to 1.9: disk_accounting_v2
[ 86.424968][ T5171] running recovery passes: check_allocations
[ 86.443425][ T5171] BUG: sleeping function called from invalid context at include/linux/sched/mm.h:337
[ 86.452946][ T5171] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5171, name: syz-executor403
[ 86.462450][ T5171] preempt_count: 1, expected: 0
[ 86.467342][ T5171] RCU nest depth: 0, expected: 0
[ 86.472304][ T5171] 2 locks held by syz-executor403/5171:
[ 86.477896][ T5171] #0: ffff888071180278 (&c->state_lock){+.+.}-{3:3}, at: bch2_fs_start+0x45/0x5b0
[ 86.487306][ T5171] #1: ffff8880711ca880 (&j->lock){+.+.}-{2:2}, at: bch2_fs_journal_start+0x1219/0x14a0
[ 86.497173][ T5171] Preemption disabled at: