./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor787053688 <...> Warning: Permanently added '10.128.0.233' (ED25519) to the list of known hosts. execve("./syz-executor787053688", ["./syz-executor787053688"], 0x7ffc7846afa0 /* 10 vars */) = 0 brk(NULL) = 0x555577c94000 brk(0x555577c94d00) = 0x555577c94d00 arch_prctl(ARCH_SET_FS, 0x555577c94380) = 0 set_tid_address(0x555577c94650) = 5087 set_robust_list(0x555577c94660, 24) = 0 rseq(0x555577c94ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor787053688", 4096) = 27 getrandom("\xf5\x43\x19\x62\x4d\x07\xff\xee", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555577c94d00 brk(0x555577cb5d00) = 0x555577cb5d00 brk(0x555577cb6000) = 0x555577cb6000 mprotect(0x7f9ba114e000, 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 5089 attached [pid 5089] set_robust_list(0x555577c94660, 24 [pid 5087] <... clone resumed>, child_tidptr=0x555577c94650) = 5089 [pid 5089] <... set_robust_list resumed>) = 0 [pid 5089] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5089] setpgid(0, 0) = 0 [pid 5089] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5089] write(3, "1000", 4) = 4 [pid 5089] close(3) = 0 [pid 5089] write(1, "executing program\n", 18executing program ) = 18 [pid 5089] memfd_create("syzkaller", 0) = 3 [pid 5089] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f9b98c00000 [pid 5089] 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 5089] munmap(0x7f9b98c00000, 138412032) = 0 [pid 5089] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5089] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5089] close(3) = 0 [pid 5089] close(4) = 0 [pid 5089] mkdir("./file1", 0777) = 0 [ 59.767637][ T5089] loop0: detected capacity change from 0 to 32768 [ 59.812167][ T5089] bcachefs (/dev/loop0): error reading default superblock: Not a bcachefs superblock (got magic c68573f6-4e1a-4502-8265-f57f48ba6d81) [ 59.858402][ T5089] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 59.874035][ T5089] bcachefs (loop0): recovering from clean shutdown, journal seq 13 [ 59.882246][ T5089] bcachefs (loop0): Doing compatible version upgrade from 1.7: mi_btree_bitmap to 1.9: disk_accounting_v2 [ 59.882246][ T5089] running recovery passes: check_allocations [ 59.902155][ T5089] BUG: sleeping function called from invalid context at include/linux/sched/mm.h:337 [ 59.911774][ T5089] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5089, name: syz-executor787 [ 59.921288][ T5089] preempt_count: 1, expected: 0 [ 59.926166][ T5089] RCU nest depth: 0, expected: 0 [ 59.931095][ T5089] 2 locks held by syz-executor787/5089: [ 59.936674][ T5089] #0: ffff888071680278 (&c->state_lock){+.+.}-{3:3}, at: bch2_fs_start+0x45/0x5b0 [ 59.946154][ T5089] #1: ffff8880716ca880 (&j->lock){+.+.}-{2:2}, at: bch2_fs_journal_start+0x1219/0x14a0 [ 59.955943][ T5089] Preemption disabled at: [ 59.955955][ T5089] [<0000000000000000>] 0x0 [ 59.964744][ T5089] CPU: 0 PID: 5089 Comm: syz-executor787 Not tainted 6.10.0-syzkaller-09061-g4305ca0087dd #0 [ 59.974942][ T5089] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 [ 59.985004][ T5089] Call Trace: [ 59.988304][ T5089] [ 59.991221][ T5089] dump_stack_lvl+0x241/0x360 [ 59.995907][ T5089] ? __pfx_dump_stack_lvl+0x10/0x10 [ 60.001096][ T5089] ? __pfx__printk+0x10/0x10 [ 60.005692][ T5089] __might_resched+0x5d4/0x780 [ 60.010458][ T5089] ? __pfx___might_resched+0x10/0x10 [ 60.015743][ T5089] ? fs_reclaim_acquire+0x93/0x140 [ 60.020938][ T5089] __kmalloc_node_track_caller_noprof+0xcb/0x440 [ 60.027263][ T5089] ? bch2_printbuf_make_room+0x1f1/0x350 [ 60.032895][ T5089] krealloc_noprof+0x7d/0x120 [ 60.037569][ T5089] bch2_printbuf_make_room+0x1f1/0x350 [ 60.043036][ T5089] bch2_prt_printf+0x267/0x6d0 [ 60.047807][ T5089] ? bch2_journal_space_available+0x11c/0x1b00 [ 60.053959][ T5089] ? __pfx_bch2_prt_printf+0x10/0x10 [ 60.059333][ T5089] bch2_journal_space_available+0x89b/0x1b00 [ 60.065315][ T5089] ? poison_slab_object+0xe0/0x150 [ 60.070417][ T5089] ? __kasan_slab_free+0x37/0x60 [ 60.075343][ T5089] ? bch2_journal_space_available+0x11c/0x1b00 [ 60.081501][ T5089] ? __se_sys_mount+0x2d6/0x3c0 [ 60.086348][ T5089] ? __pfx_bch2_journal_space_available+0x10/0x10 [ 60.092764][ T5089] ? mark_lock+0x9a/0x350 [ 60.097088][ T5089] ? __lock_acquire+0x137a/0x2040 [ 60.102120][ T5089] ? kasan_quarantine_put+0xdc/0x230 [ 60.107406][ T5089] ? lockdep_hardirqs_on+0x99/0x150 [ 60.112601][ T5089] ? __pfx_lock_acquire+0x10/0x10 [ 60.117642][ T5089] ? do_raw_spin_lock+0x14f/0x370 [ 60.122674][ T5089] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 60.128059][ T5089] ? __genradix_iter_peek+0x3d0/0x430 [ 60.133453][ T5089] bch2_fs_journal_start+0x1356/0x14a0 [ 60.138934][ T5089] ? __pfx_bch2_fs_journal_start+0x10/0x10 [ 60.144763][ T5089] ? journal_replay_entry_early+0x4d/0xb70 [ 60.150592][ T5089] ? __pfx_bch2_journal_log_msg+0x10/0x10 [ 60.156326][ T5089] ? bch2_recovery_passes_from_stable+0x104/0x120 [ 60.162740][ T5089] bch2_fs_recovery+0x1ec8/0x38d0 [ 60.167781][ T5089] ? __pfx_bch2_fs_recovery+0x10/0x10 [ 60.173173][ T5089] ? __pfx_lock_release+0x10/0x10 [ 60.178191][ T5089] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 60.183840][ T5089] ? __pfx_lock_release+0x10/0x10 [ 60.188879][ T5089] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 60.194509][ T5089] ? bch2_get_next_online_dev+0x4b9/0x4f0 [ 60.200221][ T5089] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 60.205959][ T5089] ? llist_reverse_order+0x72/0x90 [ 60.211086][ T5089] bch2_fs_start+0x356/0x5b0 [ 60.215684][ T5089] bch2_fs_get_tree+0xd61/0x1700 [ 60.220625][ T5089] ? __pfx_bch2_parse_one_mount_opt+0x10/0x10 [ 60.226695][ T5089] ? __pfx_bch2_fs_get_tree+0x10/0x10 [ 60.232055][ T5089] ? smack_fs_context_parse_param+0xff/0x170 [ 60.238038][ T5089] ? generic_parse_monolithic+0x387/0x400 [ 60.243867][ T5089] ? cap_capable+0x1b4/0x250 [ 60.248465][ T5089] ? bpf_lsm_capable+0x9/0x10 [ 60.253135][ T5089] vfs_get_tree+0x90/0x2a0 [ 60.257550][ T5089] do_new_mount+0x2be/0xb40 [ 60.262052][ T5089] ? __pfx_do_new_mount+0x10/0x10 [ 60.267074][ T5089] __se_sys_mount+0x2d6/0x3c0 [ 60.271748][ T5089] ? __pfx___se_sys_mount+0x10/0x10 [ 60.276941][ T5089] ? do_syscall_64+0x100/0x230 [ 60.281698][ T5089] ? __x64_sys_mount+0x20/0xc0 [ 60.286452][ T5089] do_syscall_64+0xf3/0x230 [ 60.291038][ T5089] ? clear_bhb_loop+0x35/0x90 [ 60.295714][ T5089] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 60.301618][ T5089] RIP: 0033:0x7f9ba10ccdea [ 60.306029][ T5089] 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 [ 60.325725][ T5089] RSP: 002b:00007fff66cd73f8 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 [ 60.334133][ T5089] RAX: ffffffffffffffda RBX: 00007fff66cd7410 RCX: 00007f9ba10ccdea [ 60.342100][ T5089] RDX: 0000000020000000 RSI: 000000002000f680 RDI: 00007fff66cd7410 [ 60.350083][ T5089] RBP: 0000000000000004 R08: 00007fff66cd7450 R09: 000000000000f626 [ 60.358045][ T5089] R10: 0000000000200012 R11: 0000000000000282 R12: 0000000000200012 [ 60.366102][ T5089] R13: 00007fff66cd7450 R14: 0000000000000003 R15: 0000000001000000 [ 60.374075][ T5089] [ 60.377981][ T5089] bcachefs (loop0): insufficient writeable journal devices available: have 0, need 1 [ 60.377981][ T5089] rw journal devs: [ 60.406707][ T5089] bcachefs (loop0): accounting_read... done [ 60.412883][ T5089] bcachefs (loop0): alloc_read... done [ 60.418414][ T5089] bcachefs (loop0): stripes_read... done [ 60.424119][ T5089] bcachefs (loop0): snapshots_read... done [ 60.430174][ T5089] bcachefs (loop0): check_allocations... [ 60.432908][ T5089] btree ptr not marked in member info btree allocated bitmap [ 60.432929][ T5089] 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 [ 60.461823][ T5089] bcachefs (loop0): inconsistency detected - emergency read only at journal seq 13 [ 60.471314][ T5089] bcachefs (loop0): bch2_gc_mark_key(): error fsck_errors_not_fixed [ 60.479353][ T5089] bcachefs (loop0): bch2_gc_btree(): error fsck_errors_not_fixed [ 60.487116][ T5089] bcachefs (loop0): bch2_gc_btrees(): error fsck_errors_not_fixed [ 60.495267][ T5089] bcachefs (loop0): bch2_check_allocations(): error fsck_errors_not_fixed [ 60.504486][ T5089] bcachefs (loop0): bch2_fs_recovery(): error fsck_errors_not_fixed [ 60.512469][ T5089] bcachefs (loop0): bch2_fs_start(): error starting filesystem fsck_errors_not_fixed [ 60.522473][ T5089] bcachefs (loop0): shutting down [ 60.536416][ T5089] bcachefs (loop0): shutdown complete [pid 5089] mount("/dev/loop0", "./file1", "bcachefs", MS_NOSUID|MS_SYNCHRONOUS|MS_RELATIME, "\xff") = -1 EINVAL (Invalid argument) [pid 5089] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5089] ioctl(3, LOOP_CLR_FD) = 0 [ 60.721859][ T5089] bcachefs: bch2_fs_get_tree() error: fsck_errors_not_fixed [pid 5089] close(3) = 0 [pid 5089] exit_group(0) = ? [pid 5089] +++ exited with 0 +++ --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5089, si_uid=0, si_status=0, si_utime=5 /* 0.05 s */, si_stime=60 /* 0.60 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 5099 attached , child_tidptr=0x555577c94650) = 5099 [pid 5099] set_robust_list(0x555577c94660, 24) = 0 [pid 5099] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5099] setpgid(0, 0) = 0 [pid 5099] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5099] write(3, "1000", 4) = 4 [pid 5099] close(3) = 0 [pid 5099] write(1, "executing program\n", 18executing program ) = 18 [pid 5099] memfd_create("syzkaller", 0) = 3 [pid 5099] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f9b98c00000 [pid 5099] 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 5099] munmap(0x7f9b98c00000, 138412032) = 0 [pid 5099] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5099] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5099] close(3) = 0 [pid 5099] close(4) = 0 [pid 5099] mkdir("./file1", 0777) = -1 EEXIST (File exists) [ 61.045482][ T5099] loop0: detected capacity change from 0 to 32768 [ 61.077503][ T5099] bcachefs (/dev/loop0): error reading default superblock: Not a bcachefs superblock (got magic c68573f6-4e1a-4502-8265-f57f48ba6d81) [ 61.119755][ T5099] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 61.134911][ T5099] bcachefs (loop0): recovering from clean shutdown, journal seq 13 [ 61.142854][ T5099] bcachefs (loop0): Doing compatible version upgrade from 1.7: mi_btree_bitmap to 1.9: disk_accounting_v2 [ 61.142854][ T5099] running recovery passes: check_allocations [ 61.161632][ T5099] BUG: sleeping function called from invalid context at include/linux/sched/mm.h:337 [ 61.171171][ T5099] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5099, name: syz-executor787 [ 61.180683][ T5099] preempt_count: 1, expected: 0 [ 61.185565][ T5099] RCU nest depth: 0, expected: 0 [ 61.190497][ T5099] 2 locks held by syz-executor787/5099: [ 61.196096][ T5099] #0: ffff888075c00278 (&c->state_lock){+.+.}-{3:3}, at: bch2_fs_start+0x45/0x5b0 [ 61.205554][ T5099] #1: ffff888075c4a880 (&j->lock){+.+.}-{2:2}, at: bch2_fs_journal_start+0x1219/0x14a0 [ 61.215396][ T5099] Preemption disabled at: [ 61.215408][ T5099] [<0000000000000000>] 0x0 [ 61.224207][ T5099] CPU: 1 PID: 5099 Comm: syz-executor787 Tainted: G W 6.10.0-syzkaller-09061-g4305ca0087dd #0 [ 61.235829][ T5099] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 [ 61.245874][ T5099] Call Trace: [ 61.249143][ T5099] [ 61.252071][ T5099] dump_stack_lvl+0x241/0x360 [ 61.256748][ T5099] ? __pfx_dump_stack_lvl+0x10/0x10 [ 61.261937][ T5099] ? __pfx__printk+0x10/0x10 [ 61.266528][ T5099] __might_resched+0x5d4/0x780 [ 61.271288][ T5099] ? __pfx___might_resched+0x10/0x10 [ 61.276574][ T5099] ? fs_reclaim_acquire+0x93/0x140 [ 61.281678][ T5099] __kmalloc_node_track_caller_noprof+0xcb/0x440 [ 61.288001][ T5099] ? bch2_printbuf_make_room+0x1f1/0x350 [ 61.293632][ T5099] krealloc_noprof+0x7d/0x120 [ 61.298301][ T5099] bch2_printbuf_make_room+0x1f1/0x350 [ 61.303765][ T5099] bch2_prt_printf+0x267/0x6d0 [ 61.308525][ T5099] ? bch2_journal_space_available+0x11c/0x1b00 [ 61.314671][ T5099] ? __pfx_bch2_prt_printf+0x10/0x10 [ 61.319982][ T5099] bch2_journal_space_available+0x89b/0x1b00 [ 61.325975][ T5099] ? kasan_save_track+0x51/0x80 [ 61.330823][ T5099] ? kasan_save_track+0x3f/0x80 [ 61.335668][ T5099] ? poison_slab_object+0xe0/0x150 [ 61.340777][ T5099] ? __kasan_slab_free+0x37/0x60 [ 61.345767][ T5099] ? bch2_journal_space_available+0x11c/0x1b00 [ 61.352006][ T5099] ? bch2_journal_log_msg+0xda/0x120 [ 61.357291][ T5099] ? bch2_fs_recovery+0x1e48/0x38d0 [ 61.362478][ T5099] ? bch2_fs_get_tree+0xd61/0x1700 [ 61.367578][ T5099] ? vfs_get_tree+0x90/0x2a0 [ 61.372157][ T5099] ? do_new_mount+0x2be/0xb40 [ 61.376826][ T5099] ? __se_sys_mount+0x2d6/0x3c0 [ 61.381667][ T5099] ? __pfx_bch2_journal_space_available+0x10/0x10 [ 61.388076][ T5099] ? mark_lock+0x9a/0x350 [ 61.392402][ T5099] ? __lock_acquire+0x137a/0x2040 [ 61.397443][ T5099] ? kasan_quarantine_put+0xdc/0x230 [ 61.402717][ T5099] ? lockdep_hardirqs_on+0x99/0x150 [ 61.407907][ T5099] ? __pfx_lock_acquire+0x10/0x10 [ 61.412923][ T5099] ? do_raw_spin_lock+0x14f/0x370 [ 61.417939][ T5099] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 61.423300][ T5099] ? __genradix_iter_peek+0x3d0/0x430 [ 61.428680][ T5099] bch2_fs_journal_start+0x1356/0x14a0 [ 61.434152][ T5099] ? __pfx_bch2_fs_journal_start+0x10/0x10 [ 61.439968][ T5099] ? journal_replay_entry_early+0x4d/0xb70 [ 61.445766][ T5099] ? __pfx_bch2_journal_log_msg+0x10/0x10 [ 61.451483][ T5099] ? bch2_recovery_passes_from_stable+0x104/0x120 [ 61.457887][ T5099] bch2_fs_recovery+0x1ec8/0x38d0 [ 61.462911][ T5099] ? __pfx_bch2_fs_recovery+0x10/0x10 [ 61.468290][ T5099] ? __pfx_lock_release+0x10/0x10 [ 61.473305][ T5099] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 61.478929][ T5099] ? __pfx_lock_release+0x10/0x10 [ 61.483953][ T5099] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 61.489577][ T5099] ? bch2_get_next_online_dev+0x4b9/0x4f0 [ 61.495288][ T5099] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 61.500915][ T5099] ? llist_reverse_order+0x72/0x90 [ 61.506018][ T5099] bch2_fs_start+0x356/0x5b0 [ 61.510602][ T5099] bch2_fs_get_tree+0xd61/0x1700 [ 61.515540][ T5099] ? __pfx_bch2_parse_one_mount_opt+0x10/0x10 [ 61.521692][ T5099] ? __pfx_bch2_fs_get_tree+0x10/0x10 [ 61.527053][ T5099] ? smack_fs_context_parse_param+0xff/0x170 [ 61.533041][ T5099] ? generic_parse_monolithic+0x387/0x400 [ 61.538759][ T5099] ? cap_capable+0x1b4/0x250 [ 61.543343][ T5099] ? bpf_lsm_capable+0x9/0x10 [ 61.548012][ T5099] vfs_get_tree+0x90/0x2a0 [ 61.552430][ T5099] do_new_mount+0x2be/0xb40 [ 61.556932][ T5099] ? __pfx_do_new_mount+0x10/0x10 [ 61.561952][ T5099] __se_sys_mount+0x2d6/0x3c0 [ 61.566627][ T5099] ? __pfx___se_sys_mount+0x10/0x10 [ 61.571816][ T5099] ? do_syscall_64+0x100/0x230 [ 61.576577][ T5099] ? __x64_sys_mount+0x20/0xc0 [ 61.581336][ T5099] do_syscall_64+0xf3/0x230 [ 61.585831][ T5099] ? clear_bhb_loop+0x35/0x90 [ 61.590509][ T5099] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 61.596393][ T5099] RIP: 0033:0x7f9ba10ccdea [ 61.600803][ T5099] 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 [ 61.620401][ T5099] RSP: 002b:00007fff66cd73f8 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 [ 61.628832][ T5099] RAX: ffffffffffffffda RBX: 00007fff66cd7410 RCX: 00007f9ba10ccdea [ 61.636793][ T5099] RDX: 0000000020000000 RSI: 000000002000f680 RDI: 00007fff66cd7410 [ 61.644763][ T5099] RBP: 0000000000000004 R08: 00007fff66cd7450 R09: 000000000000f626 [ 61.652720][ T5099] R10: 0000000000200012 R11: 0000000000000282 R12: 0000000000200012 [ 61.660679][ T5099] R13: 00007fff66cd7450 R14: 0000000000000003 R15: 0000000001000000 [ 61.668653][ T5099] [ 61.671963][ T5099] bcachefs (loop0): insufficient writeable journal devices available: have 0, need 1 [ 61.671963][ T5099] rw journal devs: [ 61.694937][ T5099] bcachefs (loop0): accounting_read... done [ 61.700876][ T5099] bcachefs (loop0): alloc_read... done [ 61.706550][ T5099] bcachefs (loop0): stripes_read... done [ 61.712225][ T5099] bcachefs (loop0): snapshots_read... done [ 61.718135][ T5099] bcachefs (loop0): check_allocations... [ 61.719994][ T5099] btree ptr not marked in member info btree allocated bitmap [ 61.720007][ T5099] 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 [ 61.748219][ T5099] bcachefs (loop0): inconsistency detected - emergency read only at journal seq 13 [ 61.757677][ T5099] bcachefs (loop0): bch2_gc_mark_key(): error fsck_errors_not_fixed [ 61.765718][ T5099] bcachefs (loop0): bch2_gc_btree(): error fsck_errors_not_fixed [ 61.773505][ T5099] bcachefs (loop0): bch2_gc_btrees(): error fsck_errors_not_fixed [ 61.781328][ T5099] bcachefs (loop0): bch2_check_allocations(): error fsck_errors_not_fixed [ 61.790057][ T5099] bcachefs (loop0): bch2_fs_recovery(): error fsck_errors_not_fixed [ 61.798141][ T5099] bcachefs (loop0): bch2_fs_start(): error starting filesystem fsck_errors_not_fixed [ 61.807899][ T5099] bcachefs (loop0): shutting down [ 61.820856][ T5099] bcachefs (loop0): shutdown complete [pid 5099] mount("/dev/loop0", "./file1", "bcachefs", MS_NOSUID|MS_SYNCHRONOUS|MS_RELATIME, "\xff") = -1 EINVAL (Invalid argument) [pid 5099] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5099] ioctl(3, LOOP_CLR_FD) = 0 [ 62.016048][ T5099] bcachefs: bch2_fs_get_tree() error: fsck_errors_not_fixed [pid 5099] close(3) = 0 [pid 5099] exit_group(0) = ? [pid 5099] +++ exited with 0 +++ --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5099, si_uid=0, si_status=0, si_utime=5 /* 0.05 s */, si_stime=63 /* 0.63 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 5108 attached [pid 5108] set_robust_list(0x555577c94660, 24 [pid 5087] <... clone resumed>, child_tidptr=0x555577c94650) = 5108 [pid 5108] <... set_robust_list resumed>) = 0 [pid 5108] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5108] setpgid(0, 0) = 0 [pid 5108] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5108] write(3, "1000", 4) = 4 [pid 5108] close(3) = 0 [pid 5108] write(1, "executing program\n", 18executing program ) = 18 [pid 5108] memfd_create("syzkaller", 0) = 3 [pid 5108] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f9b98c00000 [pid 5108] 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 5108] munmap(0x7f9b98c00000, 138412032) = 0 [pid 5108] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5108] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5108] close(3) = 0 [pid 5108] close(4) = 0 [pid 5108] mkdir("./file1", 0777) = -1 EEXIST (File exists) [ 62.327024][ T5108] loop0: detected capacity change from 0 to 32768 [ 62.348111][ T5108] bcachefs (/dev/loop0): error reading default superblock: Not a bcachefs superblock (got magic c68573f6-4e1a-4502-8265-f57f48ba6d81) [ 62.389901][ T5108] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 62.405064][ T5108] bcachefs (loop0): recovering from clean shutdown, journal seq 13 [ 62.413110][ T5108] bcachefs (loop0): Doing compatible version upgrade from 1.7: mi_btree_bitmap to 1.9: disk_accounting_v2 [ 62.413110][ T5108] running recovery passes: check_allocations [ 62.431576][ T5108] BUG: sleeping function called from invalid context at include/linux/sched/mm.h:337 [ 62.441214][ T5108] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5108, name: syz-executor787 [ 62.450729][ T5108] preempt_count: 1, expected: 0 [ 62.455625][ T5108] RCU nest depth: 0, expected: 0 [ 62.460567][ T5108] 2 locks held by syz-executor787/5108: [ 62.466157][ T5108] #0: ffff888071680278 (&c->state_lock){+.+.}-{3:3}, at: bch2_fs_start+0x45/0x5b0 [ 62.475557][ T5108] #1: ffff8880716ca880 (&j->lock){+.+.}-{2:2}, at: bch2_fs_journal_start+0x1219/0x14a0 [ 62.485368][ T5108] Preemption disabled at: [ 62.485377][ T5108] [<0000000000000000>] 0x0 [ 62.494132][ T5108] CPU: 0 PID: 5108 Comm: syz-executor787 Tainted: G W 6.10.0-syzkaller-09061-g4305ca0087dd #0 [ 62.505855][ T5108] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 [ 62.515899][ T5108] Call Trace: [ 62.519167][ T5108] [ 62.522080][ T5108] dump_stack_lvl+0x241/0x360 [ 62.526748][ T5108] ? __pfx_dump_stack_lvl+0x10/0x10 [ 62.531931][ T5108] ? __pfx__printk+0x10/0x10 [ 62.536511][ T5108] __might_resched+0x5d4/0x780 [ 62.541360][ T5108] ? __pfx___might_resched+0x10/0x10 [ 62.546642][ T5108] ? fs_reclaim_acquire+0x93/0x140 [ 62.551745][ T5108] __kmalloc_node_track_caller_noprof+0xcb/0x440 [ 62.558066][ T5108] ? bch2_printbuf_make_room+0x1f1/0x350 [ 62.563711][ T5108] krealloc_noprof+0x7d/0x120 [ 62.568498][ T5108] bch2_printbuf_make_room+0x1f1/0x350 [ 62.573966][ T5108] bch2_prt_printf+0x267/0x6d0 [ 62.578731][ T5108] ? bch2_journal_space_available+0x11c/0x1b00 [ 62.584893][ T5108] ? __pfx_bch2_prt_printf+0x10/0x10 [ 62.590184][ T5108] bch2_journal_space_available+0x89b/0x1b00 [ 62.596159][ T5108] ? kasan_save_track+0x51/0x80 [ 62.601001][ T5108] ? kasan_save_track+0x3f/0x80 [ 62.605840][ T5108] ? poison_slab_object+0xe0/0x150 [ 62.610943][ T5108] ? __kasan_slab_free+0x37/0x60 [ 62.615868][ T5108] ? bch2_journal_space_available+0x11c/0x1b00 [ 62.622011][ T5108] ? bch2_journal_log_msg+0xda/0x120 [ 62.627286][ T5108] ? bch2_fs_recovery+0x1e48/0x38d0 [ 62.632493][ T5108] ? bch2_fs_get_tree+0xd61/0x1700 [ 62.637622][ T5108] ? vfs_get_tree+0x90/0x2a0 [ 62.642219][ T5108] ? do_new_mount+0x2be/0xb40 [ 62.646892][ T5108] ? __se_sys_mount+0x2d6/0x3c0 [ 62.651738][ T5108] ? __pfx_bch2_journal_space_available+0x10/0x10 [ 62.658148][ T5108] ? mark_lock+0x9a/0x350 [ 62.662476][ T5108] ? __lock_acquire+0x137a/0x2040 [ 62.667507][ T5108] ? kasan_quarantine_put+0xdc/0x230 [ 62.672805][ T5108] ? lockdep_hardirqs_on+0x99/0x150 [ 62.677994][ T5108] ? __pfx_lock_acquire+0x10/0x10 [ 62.683020][ T5108] ? do_raw_spin_lock+0x14f/0x370 [ 62.688041][ T5108] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 62.693403][ T5108] ? __genradix_iter_peek+0x3d0/0x430 [ 62.698802][ T5108] bch2_fs_journal_start+0x1356/0x14a0 [ 62.704288][ T5108] ? __pfx_bch2_fs_journal_start+0x10/0x10 [ 62.710108][ T5108] ? journal_replay_entry_early+0x4d/0xb70 [ 62.715923][ T5108] ? __pfx_bch2_journal_log_msg+0x10/0x10 [ 62.721653][ T5108] ? bch2_recovery_passes_from_stable+0x104/0x120 [ 62.728066][ T5108] bch2_fs_recovery+0x1ec8/0x38d0 [ 62.733126][ T5108] ? __pfx_bch2_fs_recovery+0x10/0x10 [ 62.738517][ T5108] ? __pfx_lock_release+0x10/0x10 [ 62.743534][ T5108] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 62.749162][ T5108] ? __pfx_lock_release+0x10/0x10 [ 62.754188][ T5108] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 62.759814][ T5108] ? bch2_get_next_online_dev+0x4b9/0x4f0 [ 62.765524][ T5108] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 62.771152][ T5108] ? llist_reverse_order+0x72/0x90 [ 62.776263][ T5108] bch2_fs_start+0x356/0x5b0 [ 62.780848][ T5108] bch2_fs_get_tree+0xd61/0x1700 [ 62.785788][ T5108] ? __pfx_bch2_parse_one_mount_opt+0x10/0x10 [ 62.791855][ T5108] ? __pfx_bch2_fs_get_tree+0x10/0x10 [ 62.797246][ T5108] ? smack_fs_context_parse_param+0xff/0x170 [ 62.803247][ T5108] ? generic_parse_monolithic+0x387/0x400 [ 62.809021][ T5108] ? cap_capable+0x1b4/0x250 [ 62.813617][ T5108] ? bpf_lsm_capable+0x9/0x10 [ 62.818295][ T5108] vfs_get_tree+0x90/0x2a0 [ 62.822715][ T5108] do_new_mount+0x2be/0xb40 [ 62.827218][ T5108] ? __pfx_do_new_mount+0x10/0x10 [ 62.832248][ T5108] __se_sys_mount+0x2d6/0x3c0 [ 62.836952][ T5108] ? __pfx___se_sys_mount+0x10/0x10 [ 62.842148][ T5108] ? do_syscall_64+0x100/0x230 [ 62.846908][ T5108] ? __x64_sys_mount+0x20/0xc0 [ 62.851665][ T5108] do_syscall_64+0xf3/0x230 [ 62.856160][ T5108] ? clear_bhb_loop+0x35/0x90 [ 62.860829][ T5108] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 62.866715][ T5108] RIP: 0033:0x7f9ba10ccdea [ 62.871120][ T5108] 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 [ 62.890741][ T5108] RSP: 002b:00007fff66cd73f8 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 [ 62.899160][ T5108] RAX: ffffffffffffffda RBX: 00007fff66cd7410 RCX: 00007f9ba10ccdea [ 62.907127][ T5108] RDX: 0000000020000000 RSI: 000000002000f680 RDI: 00007fff66cd7410 [ 62.915092][ T5108] RBP: 0000000000000004 R08: 00007fff66cd7450 R09: 000000000000f626 [ 62.923055][ T5108] R10: 0000000000200012 R11: 0000000000000282 R12: 0000000000200012 [ 62.931103][ T5108] R13: 00007fff66cd7450 R14: 0000000000000003 R15: 0000000001000000 [ 62.939080][ T5108] [ 62.942370][ T5108] bcachefs (loop0): insufficient writeable journal devices available: have 0, need 1 [ 62.942370][ T5108] rw journal devs: [ 62.968931][ T5108] bcachefs (loop0): accounting_read... done [ 62.974952][ T5108] bcachefs (loop0): alloc_read... done [ 62.980488][ T5108] bcachefs (loop0): stripes_read... done [ 62.986248][ T5108] bcachefs (loop0): snapshots_read... done [ 62.992178][ T5108] bcachefs (loop0): check_allocations... [ 62.993820][ T5108] btree ptr not marked in member info btree allocated bitmap [ 62.993832][ T5108] 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 [ 63.021868][ T5108] bcachefs (loop0): inconsistency detected - emergency read only at journal seq 13 [ 63.031273][ T5108] bcachefs (loop0): bch2_gc_mark_key(): error fsck_errors_not_fixed [ 63.039317][ T5108] bcachefs (loop0): bch2_gc_btree(): error fsck_errors_not_fixed [ 63.047081][ T5108] bcachefs (loop0): bch2_gc_btrees(): error fsck_errors_not_fixed [ 63.054954][ T5108] bcachefs (loop0): bch2_check_allocations(): error fsck_errors_not_fixed [ 63.063574][ T5108] bcachefs (loop0): bch2_fs_recovery(): error fsck_errors_not_fixed [ 63.071563][ T5108] bcachefs (loop0): bch2_fs_start(): error starting filesystem fsck_errors_not_fixed [ 63.081852][ T5108] bcachefs (loop0): shutting down [ 63.094955][ T5108] bcachefs (loop0): shutdown complete [pid 5108] mount("/dev/loop0", "./file1", "bcachefs", MS_NOSUID|MS_SYNCHRONOUS|MS_RELATIME, "\xff") = -1 EINVAL (Invalid argument) [pid 5108] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5108] ioctl(3, LOOP_CLR_FD) = 0 [ 63.290183][ T5108] bcachefs: bch2_fs_get_tree() error: fsck_errors_not_fixed [pid 5108] close(3) = 0 [pid 5108] exit_group(0) = ? [pid 5108] +++ exited with 0 +++ --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5108, si_uid=0, si_status=0, si_utime=1 /* 0.01 s */, si_stime=65 /* 0.65 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(0x555577c94660, 24 [pid 5087] <... clone resumed>, child_tidptr=0x555577c94650) = 5117 [pid 5117] <... set_robust_list resumed>) = 0 [pid 5117] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5117] setpgid(0, 0) = 0 [pid 5117] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5117] write(3, "1000", 4executing program ) = 4 [pid 5117] close(3) = 0 [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) = 0x7f9b98c00000 [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(0x7f9b98c00000, 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) [ 63.627653][ T5117] loop0: detected capacity change from 0 to 32768 [ 63.636991][ T5117] bcachefs (/dev/loop0): error reading default superblock: Not a bcachefs superblock (got magic c68573f6-4e1a-4502-8265-f57f48ba6d81) [ 63.691940][ T5117] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 63.707336][ T5117] bcachefs (loop0): recovering from clean shutdown, journal seq 13 [ 63.715425][ T5117] bcachefs (loop0): Doing compatible version upgrade from 1.7: mi_btree_bitmap to 1.9: disk_accounting_v2 [ 63.715425][ T5117] running recovery passes: check_allocations [ 63.733938][ T5117] BUG: sleeping function called from invalid context at include/linux/sched/mm.h:337 [ 63.743448][ T5117] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5117, name: syz-executor787 [ 63.752908][ T5117] preempt_count: 1, expected: 0 [ 63.757965][ T5117] RCU nest depth: 0, expected: 0 [ 63.762909][ T5117] 2 locks held by syz-executor787/5117: [ 63.768497][ T5117] #0: ffff888071680278 (&c->state_lock){+.+.}-{3:3}, at: bch2_fs_start+0x45/0x5b0 [ 63.777868][ T5117] #1: ffff8880716ca880 (&j->lock){+.+.}-{2:2}, at: bch2_fs_journal_start+0x1219/0x14a0 [ 63.787814][ T5117] Preemption disabled at: [ 63.787827][ T5117] [<0000000000000000>] 0x0 [ 63.796636][ T5117] CPU: 0 PID: 5117 Comm: syz-executor787 Tainted: G W 6.10.0-syzkaller-09061-g4305ca0087dd #0 [ 63.808271][ T5117] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 [ 63.818321][ T5117] Call Trace: [ 63.821595][ T5117] [ 63.824518][ T5117] dump_stack_lvl+0x241/0x360 [ 63.829193][ T5117] ? __pfx_dump_stack_lvl+0x10/0x10 [ 63.834388][ T5117] ? __pfx__printk+0x10/0x10 [ 63.838976][ T5117] __might_resched+0x5d4/0x780 [ 63.843739][ T5117] ? __pfx___might_resched+0x10/0x10 [ 63.849045][ T5117] ? fs_reclaim_acquire+0x93/0x140 [ 63.854163][ T5117] __kmalloc_node_track_caller_noprof+0xcb/0x440 [ 63.860495][ T5117] ? bch2_printbuf_make_room+0x1f1/0x350 [ 63.866131][ T5117] krealloc_noprof+0x7d/0x120 [ 63.870808][ T5117] bch2_printbuf_make_room+0x1f1/0x350 [ 63.876273][ T5117] bch2_prt_printf+0x267/0x6d0 [ 63.881033][ T5117] ? bch2_journal_space_available+0x11c/0x1b00 [ 63.887179][ T5117] ? __pfx_bch2_prt_printf+0x10/0x10 [ 63.892467][ T5117] bch2_journal_space_available+0x89b/0x1b00 [ 63.898439][ T5117] ? kasan_save_track+0x51/0x80 [ 63.903279][ T5117] ? kasan_save_track+0x3f/0x80 [ 63.908119][ T5117] ? poison_slab_object+0xe0/0x150 [ 63.913235][ T5117] ? __kasan_slab_free+0x37/0x60 [ 63.918188][ T5117] ? bch2_journal_space_available+0x11c/0x1b00 [ 63.924347][ T5117] ? bch2_journal_log_msg+0xda/0x120 [ 63.929634][ T5117] ? bch2_fs_recovery+0x1e48/0x38d0 [ 63.934823][ T5117] ? bch2_fs_get_tree+0xd61/0x1700 [ 63.939925][ T5117] ? vfs_get_tree+0x90/0x2a0 [ 63.944508][ T5117] ? do_new_mount+0x2be/0xb40 [ 63.949177][ T5117] ? __se_sys_mount+0x2d6/0x3c0 [ 63.954022][ T5117] ? __pfx_bch2_journal_space_available+0x10/0x10 [ 63.960436][ T5117] ? mark_lock+0x9a/0x350 [ 63.964762][ T5117] ? __lock_acquire+0x137a/0x2040 [ 63.969884][ T5117] ? kasan_quarantine_put+0xdc/0x230 [ 63.975167][ T5117] ? lockdep_hardirqs_on+0x99/0x150 [ 63.980387][ T5117] ? __pfx_lock_acquire+0x10/0x10 [ 63.985427][ T5117] ? do_raw_spin_lock+0x14f/0x370 [ 63.990468][ T5117] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 63.995832][ T5117] ? __genradix_iter_peek+0x3d0/0x430 [ 64.001211][ T5117] bch2_fs_journal_start+0x1356/0x14a0 [ 64.006685][ T5117] ? __pfx_bch2_fs_journal_start+0x10/0x10 [ 64.012484][ T5117] ? journal_replay_entry_early+0x4d/0xb70 [ 64.018281][ T5117] ? __pfx_bch2_journal_log_msg+0x10/0x10 [ 64.024002][ T5117] ? bch2_recovery_passes_from_stable+0x104/0x120 [ 64.030410][ T5117] bch2_fs_recovery+0x1ec8/0x38d0 [ 64.035446][ T5117] ? __pfx_bch2_fs_recovery+0x10/0x10 [ 64.040831][ T5117] ? __pfx_lock_release+0x10/0x10 [ 64.045848][ T5117] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 64.051479][ T5117] ? __pfx_lock_release+0x10/0x10 [ 64.056506][ T5117] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 64.062132][ T5117] ? bch2_get_next_online_dev+0x4b9/0x4f0 [ 64.067844][ T5117] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 64.073478][ T5117] ? llist_reverse_order+0x72/0x90 [ 64.078581][ T5117] bch2_fs_start+0x356/0x5b0 [ 64.083166][ T5117] bch2_fs_get_tree+0xd61/0x1700 [ 64.088106][ T5117] ? __pfx_bch2_parse_one_mount_opt+0x10/0x10 [ 64.094176][ T5117] ? __pfx_bch2_fs_get_tree+0x10/0x10 [ 64.099536][ T5117] ? smack_fs_context_parse_param+0xff/0x170 [ 64.105522][ T5117] ? generic_parse_monolithic+0x387/0x400 [ 64.111243][ T5117] ? cap_capable+0x1b4/0x250 [ 64.115830][ T5117] ? bpf_lsm_capable+0x9/0x10 [ 64.120503][ T5117] vfs_get_tree+0x90/0x2a0 [ 64.124915][ T5117] do_new_mount+0x2be/0xb40 [ 64.129415][ T5117] ? __pfx_do_new_mount+0x10/0x10 [ 64.134453][ T5117] __se_sys_mount+0x2d6/0x3c0 [ 64.139128][ T5117] ? __pfx___se_sys_mount+0x10/0x10 [ 64.144322][ T5117] ? do_syscall_64+0x100/0x230 [ 64.149079][ T5117] ? __x64_sys_mount+0x20/0xc0 [ 64.153839][ T5117] do_syscall_64+0xf3/0x230 [ 64.158336][ T5117] ? clear_bhb_loop+0x35/0x90 [ 64.163013][ T5117] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 64.168904][ T5117] RIP: 0033:0x7f9ba10ccdea [ 64.173309][ 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 [ 64.192911][ T5117] RSP: 002b:00007fff66cd73f8 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 [ 64.201330][ T5117] RAX: ffffffffffffffda RBX: 00007fff66cd7410 RCX: 00007f9ba10ccdea [ 64.209303][ T5117] RDX: 0000000020000000 RSI: 000000002000f680 RDI: 00007fff66cd7410 [ 64.217263][ T5117] RBP: 0000000000000004 R08: 00007fff66cd7450 R09: 000000000000f626 [ 64.225243][ T5117] R10: 0000000000200012 R11: 0000000000000282 R12: 0000000000200012 [ 64.233204][ T5117] R13: 00007fff66cd7450 R14: 0000000000000003 R15: 0000000001000000 [ 64.241177][ T5117] [ 64.244669][ T5117] bcachefs (loop0): insufficient writeable journal devices available: have 0, need 1 [ 64.244669][ T5117] rw journal devs: [ 64.266949][ T5117] bcachefs (loop0): accounting_read... done [ 64.272889][ T5117] bcachefs (loop0): alloc_read... done [ 64.278710][ T5117] bcachefs (loop0): stripes_read... done [ 64.284497][ T5117] bcachefs (loop0): snapshots_read... done [ 64.290458][ T5117] bcachefs (loop0): check_allocations... [ 64.291996][ T5117] btree ptr not marked in member info btree allocated bitmap [ 64.292008][ 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 [ 64.320082][ T5117] bcachefs (loop0): inconsistency detected - emergency read only at journal seq 13 [ 64.329524][ T5117] bcachefs (loop0): bch2_gc_mark_key(): error fsck_errors_not_fixed [ 64.337573][ T5117] bcachefs (loop0): bch2_gc_btree(): error fsck_errors_not_fixed [ 64.345424][ T5117] bcachefs (loop0): bch2_gc_btrees(): error fsck_errors_not_fixed [ 64.353484][ T5117] bcachefs (loop0): bch2_check_allocations(): error fsck_errors_not_fixed [ 64.362024][ T5117] bcachefs (loop0): bch2_fs_recovery(): error fsck_errors_not_fixed [ 64.370088][ T5117] bcachefs (loop0): bch2_fs_start(): error starting filesystem fsck_errors_not_fixed [ 64.379792][ T5117] bcachefs (loop0): shutting down [ 64.394119][ 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 [ 64.600273][ 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=2 /* 0.02 s */, si_stime=68 /* 0.68 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=0x555577c94650) = 5126 [pid 5126] set_robust_list(0x555577c94660, 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) = 0x7f9b98c00000 [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(0x7f9b98c00000, 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) [ 64.906832][ T5126] loop0: detected capacity change from 0 to 32768 [ 64.927542][ T5126] bcachefs (/dev/loop0): error reading default superblock: Not a bcachefs superblock (got magic c68573f6-4e1a-4502-8265-f57f48ba6d81) [ 64.971871][ T5126] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 64.987046][ T5126] bcachefs (loop0): recovering from clean shutdown, journal seq 13 [ 64.995072][ T5126] bcachefs (loop0): Doing compatible version upgrade from 1.7: mi_btree_bitmap to 1.9: disk_accounting_v2 [ 64.995072][ T5126] running recovery passes: check_allocations [ 65.013385][ T5126] BUG: sleeping function called from invalid context at include/linux/sched/mm.h:337 [ 65.022841][ T5126] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5126, name: syz-executor787 [ 65.032437][ T5126] preempt_count: 1, expected: 0 [ 65.037312][ T5126] RCU nest depth: 0, expected: 0 [ 65.042227][ T5126] 2 locks held by syz-executor787/5126: [ 65.047818][ T5126] #0: ffff888071680278 (&c->state_lock){+.+.}-{3:3}, at: bch2_fs_start+0x45/0x5b0 [ 65.057208][ T5126] #1: ffff8880716ca880 (&j->lock){+.+.}-{2:2}, at: bch2_fs_journal_start+0x1219/0x14a0 [ 65.067026][ T5126] Preemption disabled at: [ 65.067037][ T5126] [<0000000000000000>] 0x0 [ 65.075812][ T5126] CPU: 1 PID: 5126 Comm: syz-executor787 Tainted: G W 6.10.0-syzkaller-09061-g4305ca0087dd #0 [ 65.087436][ T5126] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 [ 65.097479][ T5126] Call Trace: [ 65.100754][ T5126] [ 65.103677][ T5126] dump_stack_lvl+0x241/0x360 [ 65.108355][ T5126] ? __pfx_dump_stack_lvl+0x10/0x10 [ 65.113548][ T5126] ? __pfx__printk+0x10/0x10 [ 65.118140][ T5126] __might_resched+0x5d4/0x780 [ 65.122904][ T5126] ? __pfx___might_resched+0x10/0x10 [ 65.128534][ T5126] ? fs_reclaim_acquire+0x93/0x140 [ 65.133648][ T5126] __kmalloc_node_track_caller_noprof+0xcb/0x440 [ 65.139994][ T5126] ? bch2_printbuf_make_room+0x1f1/0x350 [ 65.145634][ T5126] krealloc_noprof+0x7d/0x120 [ 65.150399][ T5126] bch2_printbuf_make_room+0x1f1/0x350 [ 65.155941][ T5126] bch2_prt_printf+0x267/0x6d0 [ 65.160704][ T5126] ? bch2_journal_space_available+0x11c/0x1b00 [ 65.166869][ T5126] ? __pfx_bch2_prt_printf+0x10/0x10 [ 65.172159][ T5126] bch2_journal_space_available+0x89b/0x1b00 [ 65.178132][ T5126] ? kasan_save_track+0x51/0x80 [ 65.182976][ T5126] ? kasan_save_track+0x3f/0x80 [ 65.187823][ T5126] ? poison_slab_object+0xe0/0x150 [ 65.192923][ T5126] ? __kasan_slab_free+0x37/0x60 [ 65.197847][ T5126] ? bch2_journal_space_available+0x11c/0x1b00 [ 65.203991][ T5126] ? bch2_journal_log_msg+0xda/0x120 [ 65.209277][ T5126] ? bch2_fs_recovery+0x1e48/0x38d0 [ 65.214463][ T5126] ? bch2_fs_get_tree+0xd61/0x1700 [ 65.219561][ T5126] ? vfs_get_tree+0x90/0x2a0 [ 65.224150][ T5126] ? do_new_mount+0x2be/0xb40 [ 65.228820][ T5126] ? __se_sys_mount+0x2d6/0x3c0 [ 65.233669][ T5126] ? __pfx_bch2_journal_space_available+0x10/0x10 [ 65.240249][ T5126] ? mark_lock+0x9a/0x350 [ 65.244576][ T5126] ? __lock_acquire+0x137a/0x2040 [ 65.249609][ T5126] ? kasan_quarantine_put+0xdc/0x230 [ 65.254891][ T5126] ? lockdep_hardirqs_on+0x99/0x150 [ 65.260083][ T5126] ? __pfx_lock_acquire+0x10/0x10 [ 65.265126][ T5126] ? do_raw_spin_lock+0x14f/0x370 [ 65.270334][ T5126] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 65.275696][ T5126] ? __genradix_iter_peek+0x3d0/0x430 [ 65.281117][ T5126] bch2_fs_journal_start+0x1356/0x14a0 [ 65.286593][ T5126] ? __pfx_bch2_fs_journal_start+0x10/0x10 [ 65.292391][ T5126] ? journal_replay_entry_early+0x4d/0xb70 [ 65.298189][ T5126] ? __pfx_bch2_journal_log_msg+0x10/0x10 [ 65.303909][ T5126] ? bch2_recovery_passes_from_stable+0x104/0x120 [ 65.310314][ T5126] bch2_fs_recovery+0x1ec8/0x38d0 [ 65.315345][ T5126] ? __pfx_bch2_fs_recovery+0x10/0x10 [ 65.320726][ T5126] ? __pfx_lock_release+0x10/0x10 [ 65.325741][ T5126] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 65.331364][ T5126] ? __pfx_lock_release+0x10/0x10 [ 65.336388][ T5126] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 65.342014][ T5126] ? bch2_get_next_online_dev+0x4b9/0x4f0 [ 65.347723][ T5126] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 65.353356][ T5126] ? llist_reverse_order+0x72/0x90 [ 65.358460][ T5126] bch2_fs_start+0x356/0x5b0 [ 65.363045][ T5126] bch2_fs_get_tree+0xd61/0x1700 [ 65.367983][ T5126] ? __pfx_bch2_parse_one_mount_opt+0x10/0x10 [ 65.374065][ T5126] ? __pfx_bch2_fs_get_tree+0x10/0x10 [ 65.379441][ T5126] ? smack_fs_context_parse_param+0xff/0x170 [ 65.385437][ T5126] ? generic_parse_monolithic+0x387/0x400 [ 65.391175][ T5126] ? cap_capable+0x1b4/0x250 [ 65.395772][ T5126] ? bpf_lsm_capable+0x9/0x10 [ 65.400446][ T5126] vfs_get_tree+0x90/0x2a0 [ 65.404859][ T5126] do_new_mount+0x2be/0xb40 [ 65.409448][ T5126] ? __pfx_do_new_mount+0x10/0x10 [ 65.414471][ T5126] __se_sys_mount+0x2d6/0x3c0 [ 65.419246][ T5126] ? __pfx___se_sys_mount+0x10/0x10 [ 65.424438][ T5126] ? do_syscall_64+0x100/0x230 [ 65.429201][ T5126] ? __x64_sys_mount+0x20/0xc0 [ 65.433960][ T5126] do_syscall_64+0xf3/0x230 [ 65.438455][ T5126] ? clear_bhb_loop+0x35/0x90 [ 65.443138][ T5126] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 65.449019][ T5126] RIP: 0033:0x7f9ba10ccdea [ 65.453426][ 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 [ 65.473017][ T5126] RSP: 002b:00007fff66cd73f8 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 [ 65.481420][ T5126] RAX: ffffffffffffffda RBX: 00007fff66cd7410 RCX: 00007f9ba10ccdea [ 65.489379][ T5126] RDX: 0000000020000000 RSI: 000000002000f680 RDI: 00007fff66cd7410 [ 65.497338][ T5126] RBP: 0000000000000004 R08: 00007fff66cd7450 R09: 000000000000f626 [ 65.505302][ T5126] R10: 0000000000200012 R11: 0000000000000282 R12: 0000000000200012 [ 65.513351][ T5126] R13: 00007fff66cd7450 R14: 0000000000000003 R15: 0000000001000000 [ 65.521324][ T5126] [ 65.524745][ T5126] bcachefs (loop0): insufficient writeable journal devices available: have 0, need 1 [ 65.524745][ T5126] rw journal devs: [ 65.547697][ T5126] bcachefs (loop0): accounting_read... done [ 65.553881][ T5126] bcachefs (loop0): alloc_read... done [ 65.559383][ T5126] bcachefs (loop0): stripes_read... done [ 65.565163][ T5126] bcachefs (loop0): snapshots_read... done [ 65.571147][ T5126] bcachefs (loop0): check_allocations... [ 65.572284][ T5126] btree ptr not marked in member info btree allocated bitmap [ 65.572296][ 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 [ 65.600415][ T5126] bcachefs (loop0): inconsistency detected - emergency read only at journal seq 13 [ 65.609774][ T5126] bcachefs (loop0): bch2_gc_mark_key(): error fsck_errors_not_fixed [ 65.617810][ T5126] bcachefs (loop0): bch2_gc_btree(): error fsck_errors_not_fixed [ 65.625651][ T5126] bcachefs (loop0): bch2_gc_btrees(): error fsck_errors_not_fixed [ 65.633528][ T5126] bcachefs (loop0): bch2_check_allocations(): error fsck_errors_not_fixed [ 65.642087][ T5126] bcachefs (loop0): bch2_fs_recovery(): error fsck_errors_not_fixed [ 65.650151][ T5126] bcachefs (loop0): bch2_fs_start(): error starting filesystem fsck_errors_not_fixed [ 65.659700][ T5126] bcachefs (loop0): shutting down [ 65.673265][ 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 [ 65.877678][ 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=3 /* 0.03 s */, si_stime=66 /* 0.66 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 [pid 5135] set_robust_list(0x555577c94660, 24) = 0 [pid 5135] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5087] <... clone resumed>, child_tidptr=0x555577c94650) = 5135 [pid 5135] <... prctl resumed>) = 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 [pid 5135] write(1, "executing program\n", 18executing program ) = 18 [pid 5135] memfd_create("syzkaller", 0) = 3 [pid 5135] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f9b98c00000 [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(0x7f9b98c00000, 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) [ 66.189973][ T5135] loop0: detected capacity change from 0 to 32768 [ 66.217408][ T5135] bcachefs (/dev/loop0): error reading default superblock: Not a bcachefs superblock (got magic c68573f6-4e1a-4502-8265-f57f48ba6d81) [ 66.260676][ T5135] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 66.275907][ T5135] bcachefs (loop0): recovering from clean shutdown, journal seq 13 [ 66.284018][ T5135] bcachefs (loop0): Doing compatible version upgrade from 1.7: mi_btree_bitmap to 1.9: disk_accounting_v2 [ 66.284018][ T5135] running recovery passes: check_allocations [ 66.302307][ T5135] BUG: sleeping function called from invalid context at include/linux/sched/mm.h:337 [ 66.311920][ T5135] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5135, name: syz-executor787 [ 66.321434][ T5135] preempt_count: 1, expected: 0 [ 66.326343][ T5135] RCU nest depth: 0, expected: 0 [ 66.331279][ T5135] 2 locks held by syz-executor787/5135: [ 66.336881][ T5135] #0: ffff88806a800278 (&c->state_lock){+.+.}-{3:3}, at: bch2_fs_start+0x45/0x5b0 [ 66.346288][ T5135] #1: ffff88806a84a880 (&j->lock){+.+.}-{2:2}, at: bch2_fs_journal_start+0x1219/0x14a0 [ 66.356093][ T5135] Preemption disabled at: [ 66.356101][ T5135] [<0000000000000000>] 0x0 [ 66.364853][ T5135] CPU: 0 PID: 5135 Comm: syz-executor787 Tainted: G W 6.10.0-syzkaller-09061-g4305ca0087dd #0 [ 66.376478][ T5135] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 [ 66.386516][ T5135] Call Trace: [ 66.389779][ T5135] [ 66.392702][ T5135] dump_stack_lvl+0x241/0x360 [ 66.397375][ T5135] ? __pfx_dump_stack_lvl+0x10/0x10 [ 66.402557][ T5135] ? __pfx__printk+0x10/0x10 [ 66.407138][ T5135] __might_resched+0x5d4/0x780 [ 66.411885][ T5135] ? __pfx___might_resched+0x10/0x10 [ 66.417156][ T5135] ? fs_reclaim_acquire+0x93/0x140 [ 66.422248][ T5135] __kmalloc_node_track_caller_noprof+0xcb/0x440 [ 66.428561][ T5135] ? bch2_printbuf_make_room+0x1f1/0x350 [ 66.434394][ T5135] krealloc_noprof+0x7d/0x120 [ 66.439103][ T5135] bch2_printbuf_make_room+0x1f1/0x350 [ 66.444562][ T5135] bch2_prt_printf+0x267/0x6d0 [ 66.449330][ T5135] ? bch2_journal_space_available+0x11c/0x1b00 [ 66.455469][ T5135] ? __pfx_bch2_prt_printf+0x10/0x10 [ 66.460828][ T5135] bch2_journal_space_available+0x89b/0x1b00 [ 66.466791][ T5135] ? kasan_save_track+0x51/0x80 [ 66.471620][ T5135] ? kasan_save_track+0x3f/0x80 [ 66.476454][ T5135] ? poison_slab_object+0xe0/0x150 [ 66.481555][ T5135] ? __kasan_slab_free+0x37/0x60 [ 66.486484][ T5135] ? bch2_journal_space_available+0x11c/0x1b00 [ 66.492626][ T5135] ? bch2_journal_log_msg+0xda/0x120 [ 66.497904][ T5135] ? bch2_fs_recovery+0x1e48/0x38d0 [ 66.503093][ T5135] ? bch2_fs_get_tree+0xd61/0x1700 [ 66.508194][ T5135] ? vfs_get_tree+0x90/0x2a0 [ 66.512773][ T5135] ? do_new_mount+0x2be/0xb40 [ 66.517438][ T5135] ? __se_sys_mount+0x2d6/0x3c0 [ 66.522277][ T5135] ? __pfx_bch2_journal_space_available+0x10/0x10 [ 66.528685][ T5135] ? mark_lock+0x9a/0x350 [ 66.533015][ T5135] ? __lock_acquire+0x137a/0x2040 [ 66.538044][ T5135] ? kasan_quarantine_put+0xdc/0x230 [ 66.543317][ T5135] ? lockdep_hardirqs_on+0x99/0x150 [ 66.548505][ T5135] ? __pfx_lock_acquire+0x10/0x10 [ 66.553520][ T5135] ? do_raw_spin_lock+0x14f/0x370 [ 66.558535][ T5135] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 66.563899][ T5135] ? __genradix_iter_peek+0x3d0/0x430 [ 66.569269][ T5135] bch2_fs_journal_start+0x1356/0x14a0 [ 66.574738][ T5135] ? __pfx_bch2_fs_journal_start+0x10/0x10 [ 66.580533][ T5135] ? journal_replay_entry_early+0x4d/0xb70 [ 66.586330][ T5135] ? __pfx_bch2_journal_log_msg+0x10/0x10 [ 66.592047][ T5135] ? bch2_recovery_passes_from_stable+0x104/0x120 [ 66.598453][ T5135] bch2_fs_recovery+0x1ec8/0x38d0 [ 66.603478][ T5135] ? __pfx_bch2_fs_recovery+0x10/0x10 [ 66.608860][ T5135] ? __pfx_lock_release+0x10/0x10 [ 66.613876][ T5135] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 66.619500][ T5135] ? __pfx_lock_release+0x10/0x10 [ 66.624524][ T5135] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 66.630153][ T5135] ? bch2_get_next_online_dev+0x4b9/0x4f0 [ 66.635867][ T5135] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 66.641495][ T5135] ? llist_reverse_order+0x72/0x90 [ 66.646596][ T5135] bch2_fs_start+0x356/0x5b0 [ 66.651181][ T5135] bch2_fs_get_tree+0xd61/0x1700 [ 66.656120][ T5135] ? __pfx_bch2_parse_one_mount_opt+0x10/0x10 [ 66.662216][ T5135] ? __pfx_bch2_fs_get_tree+0x10/0x10 [ 66.667598][ T5135] ? smack_fs_context_parse_param+0xff/0x170 [ 66.673684][ T5135] ? generic_parse_monolithic+0x387/0x400 [ 66.679413][ T5135] ? cap_capable+0x1b4/0x250 [ 66.684004][ T5135] ? bpf_lsm_capable+0x9/0x10 [ 66.688674][ T5135] vfs_get_tree+0x90/0x2a0 [ 66.693091][ T5135] do_new_mount+0x2be/0xb40 [ 66.697594][ T5135] ? __pfx_do_new_mount+0x10/0x10 [ 66.702615][ T5135] __se_sys_mount+0x2d6/0x3c0 [ 66.707289][ T5135] ? __pfx___se_sys_mount+0x10/0x10 [ 66.712480][ T5135] ? do_syscall_64+0x100/0x230 [ 66.717240][ T5135] ? __x64_sys_mount+0x20/0xc0 [ 66.722001][ T5135] do_syscall_64+0xf3/0x230 [ 66.726499][ T5135] ? clear_bhb_loop+0x35/0x90 [ 66.731262][ T5135] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 66.737147][ T5135] RIP: 0033:0x7f9ba10ccdea [ 66.741559][ 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 [ 66.761153][ T5135] RSP: 002b:00007fff66cd73f8 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 [ 66.769560][ T5135] RAX: ffffffffffffffda RBX: 00007fff66cd7410 RCX: 00007f9ba10ccdea [ 66.777520][ T5135] RDX: 0000000020000000 RSI: 000000002000f680 RDI: 00007fff66cd7410 [ 66.785482][ T5135] RBP: 0000000000000004 R08: 00007fff66cd7450 R09: 000000000000f626 [ 66.793443][ T5135] R10: 0000000000200012 R11: 0000000000000282 R12: 0000000000200012 [ 66.801422][ T5135] R13: 00007fff66cd7450 R14: 0000000000000003 R15: 0000000001000000 [ 66.809426][ T5135] [ 66.812663][ T5135] bcachefs (loop0): insufficient writeable journal devices available: have 0, need 1 [ 66.812663][ T5135] rw journal devs: [ 66.835148][ T5135] bcachefs (loop0): accounting_read... done [ 66.841101][ T5135] bcachefs (loop0): alloc_read... done [ 66.846638][ T5135] bcachefs (loop0): stripes_read... done [ 66.852303][ T5135] bcachefs (loop0): snapshots_read... done [ 66.858226][ T5135] bcachefs (loop0): check_allocations... [ 66.859353][ T5135] btree ptr not marked in member info btree allocated bitmap [ 66.859365][ 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 [ 66.887417][ T5135] bcachefs (loop0): inconsistency detected - emergency read only at journal seq 13 [ 66.896782][ T5135] bcachefs (loop0): bch2_gc_mark_key(): error fsck_errors_not_fixed [ 66.904836][ T5135] bcachefs (loop0): bch2_gc_btree(): error fsck_errors_not_fixed [ 66.912557][ T5135] bcachefs (loop0): bch2_gc_btrees(): error fsck_errors_not_fixed [ 66.920460][ T5135] bcachefs (loop0): bch2_check_allocations(): error fsck_errors_not_fixed [ 66.929062][ T5135] bcachefs (loop0): bch2_fs_recovery(): error fsck_errors_not_fixed [ 66.937320][ T5135] bcachefs (loop0): bch2_fs_start(): error starting filesystem fsck_errors_not_fixed [ 66.947511][ T5135] bcachefs (loop0): shutting down [ 66.960521][ 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 [ 67.139551][ 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=3 /* 0.03 s */, si_stime=63 /* 0.63 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 , child_tidptr=0x555577c94650) = 5144 [pid 5144] set_robust_list(0x555577c94660, 24) = 0 [pid 5144] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5144] setpgid(0, 0) = 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) = 0x7f9b98c00000 [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(0x7f9b98c00000, 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) [ 67.473623][ T5144] loop0: detected capacity change from 0 to 32768 [ 67.493438][ T5144] bcachefs (/dev/loop0): error reading default superblock: Not a bcachefs superblock (got magic c68573f6-4e1a-4502-8265-f57f48ba6d81) [ 67.535932][ T5144] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 67.551179][ T5144] bcachefs (loop0): recovering from clean shutdown, journal seq 13 [ 67.559339][ T5144] bcachefs (loop0): Doing compatible version upgrade from 1.7: mi_btree_bitmap to 1.9: disk_accounting_v2 [ 67.559339][ T5144] running recovery passes: check_allocations [ 67.577802][ T5144] BUG: sleeping function called from invalid context at include/linux/sched/mm.h:337 [ 67.587341][ T5144] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5144, name: syz-executor787 [ 67.596881][ T5144] preempt_count: 1, expected: 0 [ 67.601750][ T5144] RCU nest depth: 0, expected: 0 [ 67.606720][ T5144] 2 locks held by syz-executor787/5144: [ 67.612267][ T5144] #0: ffff88806a800278 (&c->state_lock){+.+.}-{3:3}, at: bch2_fs_start+0x45/0x5b0 [ 67.621674][ T5144] #1: ffff88806a84a880 (&j->lock){+.+.}-{2:2}, at: bch2_fs_journal_start+0x1219/0x14a0 [ 67.631512][ T5144] Preemption disabled at: [ 67.631525][ T5144] [<0000000000000000>] 0x0 [ 67.640315][ T5144] CPU: 1 PID: 5144 Comm: syz-executor787 Tainted: G W 6.10.0-syzkaller-09061-g4305ca0087dd #0 [ 67.651928][ T5144] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 [ 67.661968][ T5144] Call Trace: [ 67.665236][ T5144] [ 67.668150][ T5144] dump_stack_lvl+0x241/0x360 [ 67.672816][ T5144] ? __pfx_dump_stack_lvl+0x10/0x10 [ 67.678020][ T5144] ? __pfx__printk+0x10/0x10 [ 67.682598][ T5144] __might_resched+0x5d4/0x780 [ 67.687353][ T5144] ? __pfx___might_resched+0x10/0x10 [ 67.692626][ T5144] ? fs_reclaim_acquire+0x93/0x140 [ 67.697733][ T5144] __kmalloc_node_track_caller_noprof+0xcb/0x440 [ 67.704056][ T5144] ? bch2_printbuf_make_room+0x1f1/0x350 [ 67.709686][ T5144] krealloc_noprof+0x7d/0x120 [ 67.714358][ T5144] bch2_printbuf_make_room+0x1f1/0x350 [ 67.719806][ T5144] bch2_prt_printf+0x267/0x6d0 [ 67.724571][ T5144] ? bch2_journal_space_available+0x11c/0x1b00 [ 67.730719][ T5144] ? __pfx_bch2_prt_printf+0x10/0x10 [ 67.736010][ T5144] bch2_journal_space_available+0x89b/0x1b00 [ 67.741994][ T5144] ? kasan_save_track+0x51/0x80 [ 67.746845][ T5144] ? kasan_save_track+0x3f/0x80 [ 67.751688][ T5144] ? poison_slab_object+0xe0/0x150 [ 67.756965][ T5144] ? __kasan_slab_free+0x37/0x60 [ 67.761892][ T5144] ? bch2_journal_space_available+0x11c/0x1b00 [ 67.768122][ T5144] ? bch2_journal_log_msg+0xda/0x120 [ 67.773405][ T5144] ? bch2_fs_recovery+0x1e48/0x38d0 [ 67.778677][ T5144] ? bch2_fs_get_tree+0xd61/0x1700 [ 67.783779][ T5144] ? vfs_get_tree+0x90/0x2a0 [ 67.788357][ T5144] ? do_new_mount+0x2be/0xb40 [ 67.793033][ T5144] ? __se_sys_mount+0x2d6/0x3c0 [ 67.797883][ T5144] ? __pfx_bch2_journal_space_available+0x10/0x10 [ 67.804292][ T5144] ? mark_lock+0x9a/0x350 [ 67.808619][ T5144] ? __lock_acquire+0x137a/0x2040 [ 67.813673][ T5144] ? kasan_quarantine_put+0xdc/0x230 [ 67.818978][ T5144] ? lockdep_hardirqs_on+0x99/0x150 [ 67.824182][ T5144] ? __pfx_lock_acquire+0x10/0x10 [ 67.829208][ T5144] ? do_raw_spin_lock+0x14f/0x370 [ 67.834227][ T5144] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 67.839585][ T5144] ? __genradix_iter_peek+0x3d0/0x430 [ 67.844958][ T5144] bch2_fs_journal_start+0x1356/0x14a0 [ 67.850430][ T5144] ? __pfx_bch2_fs_journal_start+0x10/0x10 [ 67.856226][ T5144] ? journal_replay_entry_early+0x4d/0xb70 [ 67.862021][ T5144] ? __pfx_bch2_journal_log_msg+0x10/0x10 [ 67.867742][ T5144] ? bch2_recovery_passes_from_stable+0x104/0x120 [ 67.874148][ T5144] bch2_fs_recovery+0x1ec8/0x38d0 [ 67.879223][ T5144] ? __pfx_bch2_fs_recovery+0x10/0x10 [ 67.884606][ T5144] ? __pfx_lock_release+0x10/0x10 [ 67.889623][ T5144] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 67.895252][ T5144] ? __pfx_lock_release+0x10/0x10 [ 67.900279][ T5144] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 67.905906][ T5144] ? bch2_get_next_online_dev+0x4b9/0x4f0 [ 67.911615][ T5144] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 67.917249][ T5144] ? llist_reverse_order+0x72/0x90 [ 67.922352][ T5144] bch2_fs_start+0x356/0x5b0 [ 67.926938][ T5144] bch2_fs_get_tree+0xd61/0x1700 [ 67.931882][ T5144] ? __pfx_bch2_parse_one_mount_opt+0x10/0x10 [ 67.937949][ T5144] ? __pfx_bch2_fs_get_tree+0x10/0x10 [ 67.943309][ T5144] ? smack_fs_context_parse_param+0xff/0x170 [ 67.949292][ T5144] ? generic_parse_monolithic+0x387/0x400 [ 67.955015][ T5144] ? cap_capable+0x1b4/0x250 [ 67.959597][ T5144] ? bpf_lsm_capable+0x9/0x10 [ 67.964264][ T5144] vfs_get_tree+0x90/0x2a0 [ 67.968675][ T5144] do_new_mount+0x2be/0xb40 [ 67.973176][ T5144] ? __pfx_do_new_mount+0x10/0x10 [ 67.978200][ T5144] __se_sys_mount+0x2d6/0x3c0 [ 67.982874][ T5144] ? __pfx___se_sys_mount+0x10/0x10 [ 67.988063][ T5144] ? do_syscall_64+0x100/0x230 [ 67.992827][ T5144] ? __x64_sys_mount+0x20/0xc0 [ 67.997585][ T5144] do_syscall_64+0xf3/0x230 [ 68.002084][ T5144] ? clear_bhb_loop+0x35/0x90 [ 68.006762][ T5144] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 68.012654][ T5144] RIP: 0033:0x7f9ba10ccdea [ 68.017059][ 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 [ 68.036654][ T5144] RSP: 002b:00007fff66cd73f8 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 [ 68.045059][ T5144] RAX: ffffffffffffffda RBX: 00007fff66cd7410 RCX: 00007f9ba10ccdea [ 68.053023][ T5144] RDX: 0000000020000000 RSI: 000000002000f680 RDI: 00007fff66cd7410 [ 68.060982][ T5144] RBP: 0000000000000004 R08: 00007fff66cd7450 R09: 000000000000f626 [ 68.068948][ T5144] R10: 0000000000200012 R11: 0000000000000282 R12: 0000000000200012 [ 68.076909][ T5144] R13: 00007fff66cd7450 R14: 0000000000000003 R15: 0000000001000000 [ 68.084882][ T5144] [ 68.088137][ T5144] bcachefs (loop0): insufficient writeable journal devices available: have 0, need 1 [ 68.088137][ T5144] rw journal devs: [ 68.110377][ T5144] bcachefs (loop0): accounting_read... done [ 68.116374][ T5144] bcachefs (loop0): alloc_read... done [ 68.121869][ T5144] bcachefs (loop0): stripes_read... done [ 68.127557][ T5144] bcachefs (loop0): snapshots_read... done [ 68.133502][ T5144] bcachefs (loop0): check_allocations... [ 68.134504][ T5144] btree ptr not marked in member info btree allocated bitmap [ 68.134515][ 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 [ 68.162440][ T5144] bcachefs (loop0): inconsistency detected - emergency read only at journal seq 13 [ 68.171791][ T5144] bcachefs (loop0): bch2_gc_mark_key(): error fsck_errors_not_fixed [ 68.179842][ T5144] bcachefs (loop0): bch2_gc_btree(): error fsck_errors_not_fixed [ 68.187629][ T5144] bcachefs (loop0): bch2_gc_btrees(): error fsck_errors_not_fixed [ 68.195623][ T5144] bcachefs (loop0): bch2_check_allocations(): error fsck_errors_not_fixed [ 68.204276][ T5144] bcachefs (loop0): bch2_fs_recovery(): error fsck_errors_not_fixed [ 68.212256][ T5144] bcachefs (loop0): bch2_fs_start(): error starting filesystem fsck_errors_not_fixed [ 68.221819][ T5144] bcachefs (loop0): shutting down [ 68.234412][ 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 [ 68.424016][ 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=4 /* 0.04 s */, si_stime=65 /* 0.65 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 [pid 5153] set_robust_list(0x555577c94660, 24 [pid 5087] <... clone resumed>, child_tidptr=0x555577c94650) = 5153 [pid 5153] <... set_robust_list resumed>) = 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) = 0x7f9b98c00000 [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(0x7f9b98c00000, 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) [ 68.741804][ T5153] loop0: detected capacity change from 0 to 32768 [ 68.762024][ T5153] bcachefs (/dev/loop0): error reading default superblock: Not a bcachefs superblock (got magic c68573f6-4e1a-4502-8265-f57f48ba6d81) [ 68.806185][ T5153] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 68.821504][ T5153] bcachefs (loop0): recovering from clean shutdown, journal seq 13 [ 68.829524][ T5153] bcachefs (loop0): Doing compatible version upgrade from 1.7: mi_btree_bitmap to 1.9: disk_accounting_v2 [ 68.829524][ T5153] running recovery passes: check_allocations [ 68.847943][ T5153] BUG: sleeping function called from invalid context at include/linux/sched/mm.h:337 [ 68.857494][ T5153] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5153, name: syz-executor787 [ 68.866989][ T5153] preempt_count: 1, expected: 0 [ 68.871827][ T5153] RCU nest depth: 0, expected: 0 [ 68.876790][ T5153] 2 locks held by syz-executor787/5153: [ 68.882333][ T5153] #0: ffff88806a800278 (&c->state_lock){+.+.}-{3:3}, at: bch2_fs_start+0x45/0x5b0 [ 68.891724][ T5153] #1: ffff88806a84a880 (&j->lock){+.+.}-{2:2}, at: bch2_fs_journal_start+0x1219/0x14a0 [ 68.901574][ T5153] Preemption disabled at: [ 68.901585][ T5153] [<0000000000000000>] 0x0 [ 68.910399][ T5153] CPU: 0 PID: 5153 Comm: syz-executor787 Tainted: G W 6.10.0-syzkaller-09061-g4305ca0087dd #0 [ 68.922021][ T5153] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 [ 68.932066][ T5153] Call Trace: [ 68.935339][ T5153] [ 68.938257][ T5153] dump_stack_lvl+0x241/0x360 [ 68.942931][ T5153] ? __pfx_dump_stack_lvl+0x10/0x10 [ 68.948120][ T5153] ? __pfx__printk+0x10/0x10 [ 68.952712][ T5153] __might_resched+0x5d4/0x780 [ 68.957480][ T5153] ? __pfx___might_resched+0x10/0x10 [ 68.962759][ T5153] ? fs_reclaim_acquire+0x93/0x140 [ 68.967863][ T5153] __kmalloc_node_track_caller_noprof+0xcb/0x440 [ 68.974180][ T5153] ? bch2_printbuf_make_room+0x1f1/0x350 [ 68.979810][ T5153] krealloc_noprof+0x7d/0x120 [ 68.984479][ T5153] bch2_printbuf_make_room+0x1f1/0x350 [ 68.989936][ T5153] bch2_prt_printf+0x267/0x6d0 [ 68.994692][ T5153] ? bch2_journal_space_available+0x11c/0x1b00 [ 69.000835][ T5153] ? __pfx_bch2_prt_printf+0x10/0x10 [ 69.006123][ T5153] bch2_journal_space_available+0x89b/0x1b00 [ 69.012095][ T5153] ? kasan_save_track+0x51/0x80 [ 69.016936][ T5153] ? kasan_save_track+0x3f/0x80 [ 69.021780][ T5153] ? poison_slab_object+0xe0/0x150 [ 69.026974][ T5153] ? __kasan_slab_free+0x37/0x60 [ 69.031906][ T5153] ? bch2_journal_space_available+0x11c/0x1b00 [ 69.038049][ T5153] ? bch2_journal_log_msg+0xda/0x120 [ 69.043327][ T5153] ? bch2_fs_recovery+0x1e48/0x38d0 [ 69.048514][ T5153] ? bch2_fs_get_tree+0xd61/0x1700 [ 69.053614][ T5153] ? vfs_get_tree+0x90/0x2a0 [ 69.058195][ T5153] ? do_new_mount+0x2be/0xb40 [ 69.062860][ T5153] ? __se_sys_mount+0x2d6/0x3c0 [ 69.067702][ T5153] ? __pfx_bch2_journal_space_available+0x10/0x10 [ 69.074110][ T5153] ? mark_lock+0x9a/0x350 [ 69.078434][ T5153] ? __lock_acquire+0x137a/0x2040 [ 69.083463][ T5153] ? kasan_quarantine_put+0xdc/0x230 [ 69.088738][ T5153] ? lockdep_hardirqs_on+0x99/0x150 [ 69.093927][ T5153] ? __pfx_lock_acquire+0x10/0x10 [ 69.098947][ T5153] ? do_raw_spin_lock+0x14f/0x370 [ 69.103967][ T5153] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 69.109329][ T5153] ? __genradix_iter_peek+0x3d0/0x430 [ 69.114701][ T5153] bch2_fs_journal_start+0x1356/0x14a0 [ 69.120171][ T5153] ? __pfx_bch2_fs_journal_start+0x10/0x10 [ 69.125974][ T5153] ? journal_replay_entry_early+0x4d/0xb70 [ 69.131793][ T5153] ? __pfx_bch2_journal_log_msg+0x10/0x10 [ 69.137510][ T5153] ? bch2_recovery_passes_from_stable+0x104/0x120 [ 69.143918][ T5153] bch2_fs_recovery+0x1ec8/0x38d0 [ 69.148943][ T5153] ? __pfx_bch2_fs_recovery+0x10/0x10 [ 69.154325][ T5153] ? __pfx_lock_release+0x10/0x10 [ 69.159343][ T5153] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 69.164980][ T5153] ? __pfx_lock_release+0x10/0x10 [ 69.170093][ T5153] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 69.175719][ T5153] ? bch2_get_next_online_dev+0x4b9/0x4f0 [ 69.181426][ T5153] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 69.187056][ T5153] ? llist_reverse_order+0x72/0x90 [ 69.192159][ T5153] bch2_fs_start+0x356/0x5b0 [ 69.196745][ T5153] bch2_fs_get_tree+0xd61/0x1700 [ 69.201687][ T5153] ? __pfx_bch2_parse_one_mount_opt+0x10/0x10 [ 69.207752][ T5153] ? __pfx_bch2_fs_get_tree+0x10/0x10 [ 69.213113][ T5153] ? smack_fs_context_parse_param+0xff/0x170 [ 69.219097][ T5153] ? generic_parse_monolithic+0x387/0x400 [ 69.224817][ T5153] ? cap_capable+0x1b4/0x250 [ 69.229400][ T5153] ? bpf_lsm_capable+0x9/0x10 [ 69.234067][ T5153] vfs_get_tree+0x90/0x2a0 [ 69.238477][ T5153] do_new_mount+0x2be/0xb40 [ 69.242979][ T5153] ? __pfx_do_new_mount+0x10/0x10 [ 69.248013][ T5153] __se_sys_mount+0x2d6/0x3c0 [ 69.252685][ T5153] ? __pfx___se_sys_mount+0x10/0x10 [ 69.257876][ T5153] ? do_syscall_64+0x100/0x230 [ 69.262634][ T5153] ? __x64_sys_mount+0x20/0xc0 [ 69.267392][ T5153] do_syscall_64+0xf3/0x230 [ 69.271892][ T5153] ? clear_bhb_loop+0x35/0x90 [ 69.276565][ T5153] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 69.282450][ T5153] RIP: 0033:0x7f9ba10ccdea [ 69.286856][ 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 [ 69.306458][ T5153] RSP: 002b:00007fff66cd73f8 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 [ 69.314955][ T5153] RAX: ffffffffffffffda RBX: 00007fff66cd7410 RCX: 00007f9ba10ccdea [ 69.322915][ T5153] RDX: 0000000020000000 RSI: 000000002000f680 RDI: 00007fff66cd7410 [ 69.330874][ T5153] RBP: 0000000000000004 R08: 00007fff66cd7450 R09: 000000000000f626 [ 69.338831][ T5153] R10: 0000000000200012 R11: 0000000000000282 R12: 0000000000200012 [ 69.346789][ T5153] R13: 00007fff66cd7450 R14: 0000000000000003 R15: 0000000001000000 [ 69.354759][ T5153] [ 69.357981][ T5153] bcachefs (loop0): insufficient writeable journal devices available: have 0, need 1 [ 69.357981][ T5153] rw journal devs: [ 69.380231][ T5153] bcachefs (loop0): accounting_read... done [ 69.386223][ T5153] bcachefs (loop0): alloc_read... done [ 69.391734][ T5153] bcachefs (loop0): stripes_read... done [ 69.397453][ T5153] bcachefs (loop0): snapshots_read... done [ 69.403412][ T5153] bcachefs (loop0): check_allocations... [ 69.404400][ T5153] btree ptr not marked in member info btree allocated bitmap [ 69.404411][ 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 [ 69.432429][ T5153] bcachefs (loop0): inconsistency detected - emergency read only at journal seq 13 [ 69.441787][ T5153] bcachefs (loop0): bch2_gc_mark_key(): error fsck_errors_not_fixed [ 69.449849][ T5153] bcachefs (loop0): bch2_gc_btree(): error fsck_errors_not_fixed [ 69.457624][ T5153] bcachefs (loop0): bch2_gc_btrees(): error fsck_errors_not_fixed [ 69.465816][ T5153] bcachefs (loop0): bch2_check_allocations(): error fsck_errors_not_fixed [ 69.474442][ T5153] bcachefs (loop0): bch2_fs_recovery(): error fsck_errors_not_fixed [ 69.482436][ T5153] bcachefs (loop0): bch2_fs_start(): error starting filesystem fsck_errors_not_fixed [ 69.492031][ T5153] bcachefs (loop0): shutting down [ 69.505287][ 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 [ 69.694468][ 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=1 /* 0.01 s */, si_stime=66 /* 0.66 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 5162 attached [pid 5162] set_robust_list(0x555577c94660, 24 [pid 5087] <... clone resumed>, child_tidptr=0x555577c94650) = 5162 [pid 5162] <... set_robust_list resumed>) = 0 [pid 5162] prctl(PR_SET_PDEATHSIG, SIGKILL) = 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) = 0x7f9b98c00000