./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor4115818644 <...> Warning: Permanently added '10.128.0.142' (ED25519) to the list of known hosts. execve("./syz-executor4115818644", ["./syz-executor4115818644"], 0x7ffe82d9beb0 /* 10 vars */) = 0 brk(NULL) = 0x5555639bf000 brk(0x5555639bfd00) = 0x5555639bfd00 arch_prctl(ARCH_SET_FS, 0x5555639bf380) = 0 set_tid_address(0x5555639bf650) = 5101 set_robust_list(0x5555639bf660, 24) = 0 rseq(0x5555639bfca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor4115818644", 4096) = 28 getrandom("\x2c\xaf\x0b\x24\x40\xdb\xab\x41", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x5555639bfd00 brk(0x5555639e0d00) = 0x5555639e0d00 brk(0x5555639e1000) = 0x5555639e1000 mprotect(0x7fbe03f2c000, 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 5102 attached , child_tidptr=0x5555639bf650) = 5102 [pid 5102] set_robust_list(0x5555639bf660, 24) = 0 [pid 5102] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5102] setpgid(0, 0) = 0 [pid 5102] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5102] write(3, "1000", 4) = 4 [pid 5102] close(3) = 0 executing program [pid 5102] write(1, "executing program\n", 18) = 18 [pid 5102] memfd_create("syzkaller", 0) = 3 [pid 5102] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbdfba00000 [pid 5102] 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 5102] munmap(0x7fbdfba00000, 138412032) = 0 [pid 5102] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5102] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5102] close(3) = 0 [pid 5102] close(4) = 0 [pid 5102] mkdir("./file1", 0777) = 0 [ 71.322478][ T5102] loop0: detected capacity change from 0 to 32768 [ 71.356415][ T5102] bcachefs (/dev/loop0): error reading default superblock: Not a bcachefs superblock (got magic c68573f6-4e1a-4502-8265-f57f48ba6d81) [ 71.435961][ T5102] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 71.457340][ T5102] bcachefs (loop0): recovering from clean shutdown, journal seq 13 [ 71.469381][ T5102] bcachefs (loop0): Doing compatible version upgrade from 1.7: mi_btree_bitmap to 1.9: disk_accounting_v2 [ 71.469381][ T5102] running recovery passes: check_allocations [ 71.499318][ T5102] BUG: sleeping function called from invalid context at include/linux/sched/mm.h:337 [ 71.518565][ T5102] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5102, name: syz-executor411 [ 71.532216][ T5102] preempt_count: 1, expected: 0 [ 71.540181][ T5102] RCU nest depth: 0, expected: 0 [ 71.553001][ T5102] 2 locks held by syz-executor411/5102: [ 71.560374][ T5102] #0: ffff888073200278 (&c->state_lock){+.+.}-{3:3}, at: bch2_fs_start+0x45/0x5b0 [ 71.575567][ T5102] #1: ffff88807324a880 (&j->lock){+.+.}-{2:2}, at: bch2_fs_journal_start+0x1219/0x14a0 [ 71.592403][ T5102] Preemption disabled at: [ 71.592416][ T5102] [<0000000000000000>] 0x0 [ 71.603847][ T5102] CPU: 0 UID: 0 PID: 5102 Comm: syz-executor411 Not tainted 6.10.0-next-20240718-syzkaller #0 [ 71.622324][ T5102] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 [ 71.636813][ T5102] Call Trace: [ 71.641189][ T5102] [ 71.646321][ T5102] dump_stack_lvl+0x241/0x360 [ 71.655205][ T5102] ? __pfx_dump_stack_lvl+0x10/0x10 [ 71.667106][ T5102] ? __pfx__printk+0x10/0x10 [ 71.672554][ T5102] __might_resched+0x5d4/0x780 [ 71.681076][ T5102] ? __pfx___might_resched+0x10/0x10 [ 71.687847][ T5102] ? fs_reclaim_acquire+0x93/0x140 [ 71.697082][ T5102] __kmalloc_node_track_caller_noprof+0xcb/0x440 [ 71.711128][ T5102] ? bch2_printbuf_make_room+0x1f1/0x350 [ 71.721291][ T5102] krealloc_noprof+0x7d/0x120 [ 71.730527][ T5102] bch2_printbuf_make_room+0x1f1/0x350 [ 71.738358][ T5102] bch2_prt_printf+0x267/0x6d0 [ 71.749400][ T5102] ? bch2_journal_space_available+0x11c/0x1b00 [ 71.757295][ T5102] ? __pfx_bch2_prt_printf+0x10/0x10 [ 71.765245][ T5102] bch2_journal_space_available+0x89b/0x1b00 [ 71.772837][ T5102] ? poison_slab_object+0xe0/0x150 [ 71.782759][ T5102] ? __kasan_slab_free+0x37/0x60 [ 71.790098][ T5102] ? bch2_journal_space_available+0x11c/0x1b00 [ 71.798130][ T5102] ? __se_sys_mount+0x2d6/0x3c0 [ 71.804495][ T5102] ? __pfx_bch2_journal_space_available+0x10/0x10 [ 71.815207][ T5102] ? mark_lock+0x9a/0x360 [ 71.821247][ T5102] ? __lock_acquire+0x1384/0x2050 [ 71.829759][ T5102] ? kasan_quarantine_put+0xdc/0x230 [ 71.838163][ T5102] ? lockdep_hardirqs_on+0x99/0x150 [ 71.848376][ T5102] ? __pfx_lock_acquire+0x10/0x10 [ 71.854486][ T5102] ? do_raw_spin_lock+0x14f/0x370 [ 71.866195][ T5102] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 71.871858][ T5102] ? __genradix_iter_peek+0x3d0/0x430 [ 71.879473][ T5102] bch2_fs_journal_start+0x1356/0x14a0 [ 71.890506][ T5102] ? __pfx_bch2_fs_journal_start+0x10/0x10 [ 71.899375][ T5102] ? journal_replay_entry_early+0x4d/0xb70 [ 71.909814][ T5102] ? __pfx_bch2_journal_log_msg+0x10/0x10 [ 71.919164][ T5102] ? bch2_recovery_passes_from_stable+0x104/0x120 [ 71.928930][ T5102] bch2_fs_recovery+0x1ec8/0x38d0 [ 71.936918][ T5102] ? __pfx_bch2_fs_recovery+0x10/0x10 [ 71.943374][ T5102] ? __pfx_lock_release+0x10/0x10 [ 71.951042][ T5102] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 71.957429][ T5102] ? __pfx_lock_release+0x10/0x10 [ 71.964407][ T5102] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 71.976084][ T5102] ? bch2_get_next_online_dev+0x4b9/0x4f0 [ 71.988543][ T5102] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 71.994920][ T5102] ? llist_reverse_order+0x72/0x90 [ 72.003835][ T5102] bch2_fs_start+0x356/0x5b0 [ 72.009845][ T5102] bch2_fs_get_tree+0xd61/0x1700 [ 72.016696][ T5102] ? __pfx_bch2_parse_one_mount_opt+0x10/0x10 [ 72.026373][ T5102] ? __pfx_bch2_fs_get_tree+0x10/0x10 [ 72.034444][ T5102] ? generic_parse_monolithic+0x387/0x400 [ 72.043426][ T5102] ? apparmor_capable+0x13b/0x1b0 [ 72.048938][ T5102] ? bpf_lsm_capable+0x9/0x10 [ 72.054952][ T5102] vfs_get_tree+0x90/0x2a0 [ 72.061884][ T5102] do_new_mount+0x2be/0xb40 [ 72.069420][ T5102] ? __pfx_do_new_mount+0x10/0x10 [ 72.081097][ T5102] __se_sys_mount+0x2d6/0x3c0 [ 72.087340][ T5102] ? __pfx___se_sys_mount+0x10/0x10 [ 72.093748][ T5102] ? do_syscall_64+0x100/0x230 [ 72.101349][ T5102] ? __x64_sys_mount+0x20/0xc0 [ 72.106585][ T5102] do_syscall_64+0xf3/0x230 [ 72.112046][ T5102] ? clear_bhb_loop+0x35/0x90 [ 72.120075][ T5102] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 72.126984][ T5102] RIP: 0033:0x7fbe03eaadea [ 72.132368][ T5102] 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 [ 72.162217][ T5102] RSP: 002b:00007fff2bd74108 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 [ 72.173073][ T5102] RAX: ffffffffffffffda RBX: 00007fff2bd74120 RCX: 00007fbe03eaadea [ 72.189551][ T5102] RDX: 0000000020000000 RSI: 000000002000f680 RDI: 00007fff2bd74120 [ 72.199362][ T5102] RBP: 0000000000000004 R08: 00007fff2bd74160 R09: 000000000000f626 [ 72.209636][ T5102] R10: 0000000000200012 R11: 0000000000000282 R12: 0000000000200012 [ 72.222216][ T5102] R13: 00007fff2bd74160 R14: 0000000000000003 R15: 0000000001000000 [ 72.235817][ T5102] [ 72.244481][ T5102] bcachefs (loop0): insufficient writeable journal devices available: have 0, need 1 [ 72.244481][ T5102] rw journal devs: [ 72.285955][ T5102] bcachefs (loop0): accounting_read... done [ 72.297089][ T5102] bcachefs (loop0): alloc_read... done [ 72.311644][ T5102] bcachefs (loop0): stripes_read... done [ 72.323400][ T5102] bcachefs (loop0): snapshots_read... done [ 72.333341][ T5102] bcachefs (loop0): check_allocations... [ 72.340729][ T5102] btree ptr not marked in member info btree allocated bitmap [ 72.340763][ T5102] 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 [ 72.385503][ T5102] bcachefs (loop0): inconsistency detected - emergency read only at journal seq 13 [ 72.400848][ T5102] bcachefs (loop0): bch2_gc_mark_key(): error fsck_errors_not_fixed [ 72.415922][ T5102] bcachefs (loop0): bch2_gc_btree(): error fsck_errors_not_fixed [ 72.428080][ T5102] bcachefs (loop0): bch2_gc_btrees(): error fsck_errors_not_fixed [ 72.448210][ T5102] bcachefs (loop0): bch2_check_allocations(): error fsck_errors_not_fixed [ 72.469021][ T5102] bcachefs (loop0): bch2_fs_recovery(): error fsck_errors_not_fixed [ 72.479297][ T5102] bcachefs (loop0): bch2_fs_start(): error starting filesystem fsck_errors_not_fixed [ 72.493048][ T5102] bcachefs (loop0): shutting down [ 72.515317][ T5102] bcachefs (loop0): shutdown complete [pid 5102] mount("/dev/loop0", "./file1", "bcachefs", MS_NOSUID|MS_SYNCHRONOUS|MS_RELATIME, "\xff") = -1 EINVAL (Invalid argument) [pid 5102] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5102] ioctl(3, LOOP_CLR_FD) = 0 [ 72.835589][ T5102] bcachefs: bch2_fs_get_tree() error: fsck_errors_not_fixed [pid 5102] close(3) = 0 [pid 5102] exit_group(0) = ? [pid 5102] +++ exited with 0 +++ --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5102, si_uid=0, si_status=0, si_utime=3 /* 0.03 s */, si_stime=67 /* 0.67 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 5113 attached , child_tidptr=0x5555639bf650) = 5113 [pid 5113] set_robust_list(0x5555639bf660, 24) = 0 [pid 5113] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5113] setpgid(0, 0) = 0 [pid 5113] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5113] write(3, "1000", 4) = 4 [pid 5113] close(3) = 0 [pid 5113] write(1, "executing program\n", 18executing program ) = 18 [pid 5113] memfd_create("syzkaller", 0) = 3 [pid 5113] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbdfba00000 [pid 5113] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 5113] munmap(0x7fbdfba00000, 138412032) = 0 [pid 5113] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5113] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5113] close(3) = 0 [pid 5113] close(4) = 0 [pid 5113] mkdir("./file1", 0777) = -1 EEXIST (File exists) [ 73.320458][ T5113] loop0: detected capacity change from 0 to 32768 [ 73.346868][ T5113] bcachefs (/dev/loop0): error reading default superblock: Not a bcachefs superblock (got magic c68573f6-4e1a-4502-8265-f57f48ba6d81) [ 73.413424][ T5113] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 73.435863][ T5113] bcachefs (loop0): recovering from clean shutdown, journal seq 13 [ 73.448118][ T5113] bcachefs (loop0): Doing compatible version upgrade from 1.7: mi_btree_bitmap to 1.9: disk_accounting_v2 [ 73.448118][ T5113] running recovery passes: check_allocations [ 73.476420][ T5113] BUG: sleeping function called from invalid context at include/linux/sched/mm.h:337 [ 73.488711][ T5113] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5113, name: syz-executor411 [ 73.501826][ T5113] preempt_count: 1, expected: 0 [ 73.511142][ T5113] RCU nest depth: 0, expected: 0 [ 73.517506][ T5113] 2 locks held by syz-executor411/5113: [ 73.523473][ T5113] #0: ffff888070a00278 (&c->state_lock){+.+.}-{3:3}, at: bch2_fs_start+0x45/0x5b0 [ 73.534927][ T5113] #1: ffff888070a4a880 (&j->lock){+.+.}-{2:2}, at: bch2_fs_journal_start+0x1219/0x14a0 [ 73.546261][ T5113] Preemption disabled at: [ 73.546275][ T5113] [<0000000000000000>] 0x0 [ 73.556829][ T5113] CPU: 1 UID: 0 PID: 5113 Comm: syz-executor411 Tainted: G W 6.10.0-next-20240718-syzkaller #0 [ 73.574931][ T5113] Tainted: [W]=WARN [ 73.580226][ T5113] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 [ 73.595528][ T5113] Call Trace: [ 73.600540][ T5113] [ 73.604567][ T5113] dump_stack_lvl+0x241/0x360 [ 73.614094][ T5113] ? __pfx_dump_stack_lvl+0x10/0x10 [ 73.621368][ T5113] ? __pfx__printk+0x10/0x10 [ 73.629046][ T5113] __might_resched+0x5d4/0x780 [ 73.634112][ T5113] ? __pfx___might_resched+0x10/0x10 [ 73.641335][ T5113] ? fs_reclaim_acquire+0x93/0x140 [ 73.649220][ T5113] __kmalloc_node_track_caller_noprof+0xcb/0x440 [ 73.658392][ T5113] ? bch2_printbuf_make_room+0x1f1/0x350 [ 73.670688][ T5113] krealloc_noprof+0x7d/0x120 [ 73.677814][ T5113] bch2_printbuf_make_room+0x1f1/0x350 [ 73.684723][ T5113] bch2_prt_printf+0x267/0x6d0 [ 73.692033][ T5113] ? bch2_journal_space_available+0x11c/0x1b00 [ 73.699080][ T5113] ? __pfx_bch2_prt_printf+0x10/0x10 [ 73.704728][ T5113] bch2_journal_space_available+0x89b/0x1b00 [ 73.712831][ T5113] ? kasan_save_track+0x51/0x80 [ 73.718626][ T5113] ? kasan_save_track+0x3f/0x80 [ 73.724096][ T5113] ? poison_slab_object+0xe0/0x150 [ 73.731714][ T5113] ? __kasan_slab_free+0x37/0x60 [ 73.736845][ T5113] ? bch2_journal_space_available+0x11c/0x1b00 [ 73.745674][ T5113] ? bch2_journal_log_msg+0xda/0x120 [ 73.751620][ T5113] ? bch2_fs_recovery+0x1e48/0x38d0 [ 73.758798][ T5113] ? bch2_fs_get_tree+0xd61/0x1700 [ 73.765326][ T5113] ? vfs_get_tree+0x90/0x2a0 [ 73.771980][ T5113] ? do_new_mount+0x2be/0xb40 [ 73.777021][ T5113] ? __se_sys_mount+0x2d6/0x3c0 [ 73.782939][ T5113] ? __pfx_bch2_journal_space_available+0x10/0x10 [ 73.791210][ T5113] ? mark_lock+0x9a/0x360 [ 73.796229][ T5113] ? __lock_acquire+0x1384/0x2050 [ 73.802106][ T5113] ? kasan_quarantine_put+0xdc/0x230 [ 73.808589][ T5113] ? lockdep_hardirqs_on+0x99/0x150 [ 73.815990][ T5113] ? __pfx_lock_acquire+0x10/0x10 [ 73.825665][ T5113] ? do_raw_spin_lock+0x14f/0x370 [ 73.831373][ T5113] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 73.838067][ T5113] ? __genradix_iter_peek+0x3d0/0x430 [ 73.847109][ T5113] bch2_fs_journal_start+0x1356/0x14a0 [ 73.857240][ T5113] ? __pfx_bch2_fs_journal_start+0x10/0x10 [ 73.863924][ T5113] ? journal_replay_entry_early+0x4d/0xb70 [ 73.875244][ T5113] ? __pfx_bch2_journal_log_msg+0x10/0x10 [ 73.888434][ T5113] ? bch2_recovery_passes_from_stable+0x104/0x120 [ 73.896628][ T5113] bch2_fs_recovery+0x1ec8/0x38d0 [ 73.904899][ T5113] ? __pfx_bch2_fs_recovery+0x10/0x10 [ 73.911526][ T5113] ? __pfx_lock_release+0x10/0x10 [ 73.919012][ T5113] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 73.927122][ T5113] ? __pfx_lock_release+0x10/0x10 [ 73.936428][ T5113] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 73.945058][ T5113] ? bch2_get_next_online_dev+0x4b9/0x4f0 [ 73.953191][ T5113] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 73.960083][ T5113] ? llist_reverse_order+0x72/0x90 [ 73.965580][ T5113] bch2_fs_start+0x356/0x5b0 [ 73.972854][ T5113] bch2_fs_get_tree+0xd61/0x1700 [ 73.978464][ T5113] ? __pfx_bch2_parse_one_mount_opt+0x10/0x10 [ 73.985345][ T5113] ? __pfx_bch2_fs_get_tree+0x10/0x10 [ 73.992709][ T5113] ? generic_parse_monolithic+0x387/0x400 [ 73.999079][ T5113] ? apparmor_capable+0x13b/0x1b0 [ 74.004678][ T5113] ? bpf_lsm_capable+0x9/0x10 [ 74.010532][ T5113] vfs_get_tree+0x90/0x2a0 [ 74.016309][ T5113] do_new_mount+0x2be/0xb40 [ 74.021376][ T5113] ? __pfx_do_new_mount+0x10/0x10 [ 74.030401][ T5113] __se_sys_mount+0x2d6/0x3c0 [ 74.037475][ T5113] ? __pfx___se_sys_mount+0x10/0x10 [ 74.043967][ T5113] ? do_syscall_64+0x100/0x230 [ 74.050249][ T5113] ? __x64_sys_mount+0x20/0xc0 [ 74.055225][ T5113] do_syscall_64+0xf3/0x230 [ 74.068395][ T5113] ? clear_bhb_loop+0x35/0x90 [ 74.074182][ T5113] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 74.088098][ T5113] RIP: 0033:0x7fbe03eaadea [ 74.092790][ T5113] Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 5e 04 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 [ 74.128736][ T5113] RSP: 002b:00007fff2bd74108 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 [ 74.142510][ T5113] RAX: ffffffffffffffda RBX: 00007fff2bd74120 RCX: 00007fbe03eaadea [ 74.155249][ T5113] RDX: 0000000020000000 RSI: 000000002000f680 RDI: 00007fff2bd74120 [ 74.164206][ T5113] RBP: 0000000000000004 R08: 00007fff2bd74160 R09: 000000000000f626 [ 74.177193][ T5113] R10: 0000000000200012 R11: 0000000000000282 R12: 0000000000200012 [ 74.192483][ T5113] R13: 00007fff2bd74160 R14: 0000000000000003 R15: 0000000001000000 [ 74.203430][ T5113] [ 74.211007][ T5113] bcachefs (loop0): insufficient writeable journal devices available: have 0, need 1 [ 74.211007][ T5113] rw journal devs: [ 74.254276][ T5113] bcachefs (loop0): accounting_read... done [ 74.263997][ T5113] bcachefs (loop0): alloc_read... done [ 74.272935][ T5113] bcachefs (loop0): stripes_read... done [ 74.281438][ T5113] bcachefs (loop0): snapshots_read... done [ 74.287572][ T5113] bcachefs (loop0): check_allocations... [ 74.289029][ T5113] btree ptr not marked in member info btree allocated bitmap [ 74.289043][ T5113] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 1818ce08861e3527 written 40 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, shutting down [ 74.336037][ T5113] bcachefs (loop0): inconsistency detected - emergency read only at journal seq 13 [ 74.349960][ T5113] bcachefs (loop0): bch2_gc_mark_key(): error fsck_errors_not_fixed [ 74.365020][ T5113] bcachefs (loop0): bch2_gc_btree(): error fsck_errors_not_fixed [ 74.377598][ T5113] bcachefs (loop0): bch2_gc_btrees(): error fsck_errors_not_fixed [ 74.389145][ T5113] bcachefs (loop0): bch2_check_allocations(): error fsck_errors_not_fixed [ 74.404050][ T5113] bcachefs (loop0): bch2_fs_recovery(): error fsck_errors_not_fixed [ 74.418066][ T5113] bcachefs (loop0): bch2_fs_start(): error starting filesystem fsck_errors_not_fixed [ 74.435284][ T5113] bcachefs (loop0): shutting down [ 74.464793][ T5113] bcachefs (loop0): shutdown complete [pid 5113] mount("/dev/loop0", "./file1", "bcachefs", MS_NOSUID|MS_SYNCHRONOUS|MS_RELATIME, "\xff") = -1 EINVAL (Invalid argument) [pid 5113] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5113] ioctl(3, LOOP_CLR_FD) = 0 [ 74.753472][ T5113] bcachefs: bch2_fs_get_tree() error: fsck_errors_not_fixed [pid 5113] close(3) = 0 [pid 5113] exit_group(0) = ? [pid 5113] +++ exited with 0 +++ --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5113, si_uid=0, si_status=0, si_utime=3 /* 0.03 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 5122 attached , child_tidptr=0x5555639bf650) = 5122 [pid 5122] set_robust_list(0x5555639bf660, 24) = 0 [pid 5122] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5122] setpgid(0, 0) = 0 [pid 5122] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5122] write(3, "1000", 4) = 4 [pid 5122] close(3) = 0 [pid 5122] write(1, "executing program\n", 18executing program ) = 18 [pid 5122] memfd_create("syzkaller", 0) = 3 [pid 5122] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbdfba00000 [pid 5122] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 5122] munmap(0x7fbdfba00000, 138412032) = 0 [pid 5122] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5122] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5122] close(3) = 0 [pid 5122] close(4) = 0 [pid 5122] mkdir("./file1", 0777) = -1 EEXIST (File exists) [ 75.126046][ T5122] loop0: detected capacity change from 0 to 32768 [ 75.154491][ T5122] bcachefs (/dev/loop0): error reading default superblock: Not a bcachefs superblock (got magic c68573f6-4e1a-4502-8265-f57f48ba6d81) [ 75.221466][ T5122] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 75.249130][ T5122] bcachefs (loop0): recovering from clean shutdown, journal seq 13 [ 75.261310][ T5122] bcachefs (loop0): Doing compatible version upgrade from 1.7: mi_btree_bitmap to 1.9: disk_accounting_v2 [ 75.261310][ T5122] running recovery passes: check_allocations [ 75.291310][ T5122] BUG: sleeping function called from invalid context at include/linux/sched/mm.h:337 [ 75.304042][ T5122] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5122, name: syz-executor411 [ 75.316700][ T5122] preempt_count: 1, expected: 0 [ 75.322611][ T5122] RCU nest depth: 0, expected: 0 [ 75.329196][ T5122] 2 locks held by syz-executor411/5122: [ 75.336945][ T5122] #0: ffff888071080278 (&c->state_lock){+.+.}-{3:3}, at: bch2_fs_start+0x45/0x5b0 [ 75.349600][ T5122] #1: ffff8880710ca880 (&j->lock){+.+.}-{2:2}, at: bch2_fs_journal_start+0x1219/0x14a0 [ 75.366081][ T5122] Preemption disabled at: [ 75.366095][ T5122] [<0000000000000000>] 0x0 [ 75.378474][ T5122] CPU: 0 UID: 0 PID: 5122 Comm: syz-executor411 Tainted: G W 6.10.0-next-20240718-syzkaller #0 [ 75.400306][ T5122] Tainted: [W]=WARN [ 75.407760][ T5122] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 [ 75.422302][ T5122] Call Trace: [ 75.427736][ T5122] [ 75.432382][ T5122] dump_stack_lvl+0x241/0x360 [ 75.442368][ T5122] ? __pfx_dump_stack_lvl+0x10/0x10 [ 75.449746][ T5122] ? __pfx__printk+0x10/0x10 [ 75.457734][ T5122] __might_resched+0x5d4/0x780 [ 75.463792][ T5122] ? __pfx___might_resched+0x10/0x10 [ 75.471891][ T5122] ? fs_reclaim_acquire+0x93/0x140 [ 75.480365][ T5122] __kmalloc_node_track_caller_noprof+0xcb/0x440 [ 75.490742][ T5122] ? bch2_printbuf_make_room+0x1f1/0x350 [ 75.500129][ T5122] krealloc_noprof+0x7d/0x120 [ 75.512375][ T5122] bch2_printbuf_make_room+0x1f1/0x350 [ 75.525042][ T5122] bch2_prt_printf+0x267/0x6d0 [ 75.532160][ T5122] ? bch2_journal_space_available+0x11c/0x1b00 [ 75.542969][ T5122] ? __pfx_bch2_prt_printf+0x10/0x10 [ 75.553553][ T5122] bch2_journal_space_available+0x89b/0x1b00 [ 75.562395][ T5122] ? kasan_save_track+0x51/0x80 [ 75.568512][ T5122] ? kasan_save_track+0x3f/0x80 [ 75.575199][ T5122] ? poison_slab_object+0xe0/0x150 [ 75.585097][ T5122] ? __kasan_slab_free+0x37/0x60 [ 75.594585][ T5122] ? bch2_journal_space_available+0x11c/0x1b00 [ 75.601830][ T5122] ? bch2_journal_log_msg+0xda/0x120 [ 75.608492][ T5122] ? bch2_fs_recovery+0x1e48/0x38d0 [ 75.614783][ T5122] ? bch2_fs_get_tree+0xd61/0x1700 [ 75.622463][ T5122] ? vfs_get_tree+0x90/0x2a0 [ 75.629455][ T5122] ? do_new_mount+0x2be/0xb40 [ 75.634956][ T5122] ? __se_sys_mount+0x2d6/0x3c0 [ 75.641833][ T5122] ? __pfx_bch2_journal_space_available+0x10/0x10 [ 75.651450][ T5122] ? mark_lock+0x9a/0x360 [ 75.656765][ T5122] ? __lock_acquire+0x1384/0x2050 [ 75.663180][ T5122] ? kasan_quarantine_put+0xdc/0x230 [ 75.671624][ T5122] ? lockdep_hardirqs_on+0x99/0x150 [ 75.678682][ T5122] ? __pfx_lock_acquire+0x10/0x10 [ 75.684910][ T5122] ? do_raw_spin_lock+0x14f/0x370 [ 75.691970][ T5122] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 75.700077][ T5122] ? __genradix_iter_peek+0x3d0/0x430 [ 75.711034][ T5122] bch2_fs_journal_start+0x1356/0x14a0 [ 75.717230][ T5122] ? __pfx_bch2_fs_journal_start+0x10/0x10 [ 75.726124][ T5122] ? journal_replay_entry_early+0x4d/0xb70 [ 75.746900][ T5122] ? __pfx_bch2_journal_log_msg+0x10/0x10 [ 75.753335][ T5122] ? bch2_recovery_passes_from_stable+0x104/0x120 [ 75.765599][ T5122] bch2_fs_recovery+0x1ec8/0x38d0 [ 75.772261][ T5122] ? __pfx_bch2_fs_recovery+0x10/0x10 [ 75.782700][ T5122] ? __pfx_lock_release+0x10/0x10 [ 75.794459][ T5122] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 75.801922][ T5122] ? __pfx_lock_release+0x10/0x10 [ 75.814354][ T5122] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 75.824695][ T5122] ? bch2_get_next_online_dev+0x4b9/0x4f0 [ 75.838293][ T5122] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 75.850645][ T5122] ? llist_reverse_order+0x72/0x90 [ 75.858576][ T5122] bch2_fs_start+0x356/0x5b0 [ 75.863979][ T5122] bch2_fs_get_tree+0xd61/0x1700 [ 75.872180][ T5122] ? __pfx_bch2_parse_one_mount_opt+0x10/0x10 [ 75.882901][ T5122] ? __pfx_bch2_fs_get_tree+0x10/0x10 [ 75.897538][ T5122] ? generic_parse_monolithic+0x387/0x400 [ 75.905758][ T5122] ? apparmor_capable+0x13b/0x1b0 [ 75.918150][ T5122] ? bpf_lsm_capable+0x9/0x10 [ 75.923547][ T5122] vfs_get_tree+0x90/0x2a0 [ 75.928270][ T5122] do_new_mount+0x2be/0xb40 [ 75.937609][ T5122] ? __pfx_do_new_mount+0x10/0x10 [ 75.943944][ T5122] __se_sys_mount+0x2d6/0x3c0 [ 75.958729][ T5122] ? __pfx___se_sys_mount+0x10/0x10 [ 75.965793][ T5122] ? do_syscall_64+0x100/0x230 [ 75.972383][ T5122] ? __x64_sys_mount+0x20/0xc0 [ 75.981343][ T5122] do_syscall_64+0xf3/0x230 [ 75.986520][ T5122] ? clear_bhb_loop+0x35/0x90 [ 75.992468][ T5122] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 76.000694][ T5122] RIP: 0033:0x7fbe03eaadea [ 76.009115][ T5122] Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 5e 04 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 [ 76.034498][ T5122] RSP: 002b:00007fff2bd74108 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 [ 76.043990][ T5122] RAX: ffffffffffffffda RBX: 00007fff2bd74120 RCX: 00007fbe03eaadea [ 76.053046][ T5122] RDX: 0000000020000000 RSI: 000000002000f680 RDI: 00007fff2bd74120 [ 76.064965][ T5122] RBP: 0000000000000004 R08: 00007fff2bd74160 R09: 000000000000f626 [ 76.073704][ T5122] R10: 0000000000200012 R11: 0000000000000282 R12: 0000000000200012 [ 76.086707][ T5122] R13: 00007fff2bd74160 R14: 0000000000000003 R15: 0000000001000000 [ 76.097512][ T5122] [ 76.103385][ T5122] bcachefs (loop0): insufficient writeable journal devices available: have 0, need 1 [ 76.103385][ T5122] rw journal devs: [ 76.142304][ T5122] bcachefs (loop0): accounting_read... done [ 76.150042][ T5122] bcachefs (loop0): alloc_read... done [ 76.160133][ T5122] bcachefs (loop0): stripes_read... done [ 76.168378][ T5122] bcachefs (loop0): snapshots_read... done [ 76.179716][ T5122] bcachefs (loop0): check_allocations... [ 76.186012][ T5122] btree ptr not marked in member info btree allocated bitmap [ 76.186028][ T5122] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 1818ce08861e3527 written 40 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, shutting down [ 76.233727][ T5122] bcachefs (loop0): inconsistency detected - emergency read only at journal seq 13 [ 76.249758][ T5122] bcachefs (loop0): bch2_gc_mark_key(): error fsck_errors_not_fixed [ 76.258754][ T5122] bcachefs (loop0): bch2_gc_btree(): error fsck_errors_not_fixed [ 76.273498][ T5122] bcachefs (loop0): bch2_gc_btrees(): error fsck_errors_not_fixed [ 76.286422][ T5122] bcachefs (loop0): bch2_check_allocations(): error fsck_errors_not_fixed [ 76.302000][ T5122] bcachefs (loop0): bch2_fs_recovery(): error fsck_errors_not_fixed [ 76.316574][ T5122] bcachefs (loop0): bch2_fs_start(): error starting filesystem fsck_errors_not_fixed [ 76.328245][ T5122] bcachefs (loop0): shutting down [ 76.346134][ T5122] bcachefs (loop0): shutdown complete [pid 5122] mount("/dev/loop0", "./file1", "bcachefs", MS_NOSUID|MS_SYNCHRONOUS|MS_RELATIME, "\xff") = -1 EINVAL (Invalid argument) [pid 5122] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5122] ioctl(3, LOOP_CLR_FD) = 0 [ 76.648640][ T5122] bcachefs: bch2_fs_get_tree() error: fsck_errors_not_fixed [pid 5122] close(3) = 0 [pid 5122] exit_group(0) = ? [pid 5122] +++ exited with 0 +++ --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5122, si_uid=0, si_status=0, si_utime=5 /* 0.05 s */, si_stime=58 /* 0.58 s */} --- restart_syscall(<... resuming interrupted clone ...>) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) close(3) = 0 clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5131 attached , child_tidptr=0x5555639bf650) = 5131 [pid 5131] set_robust_list(0x5555639bf660, 24) = 0 [pid 5131] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5131] setpgid(0, 0) = 0 [pid 5131] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5131] write(3, "1000", 4) = 4 [pid 5131] close(3) = 0 [pid 5131] write(1, "executing program\n", 18executing program ) = 18 [pid 5131] memfd_create("syzkaller", 0) = 3 [pid 5131] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbdfba00000 [pid 5131] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 5131] munmap(0x7fbdfba00000, 138412032) = 0 [pid 5131] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5131] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5131] close(3) = 0 [pid 5131] close(4) = 0 [pid 5131] mkdir("./file1", 0777) = -1 EEXIST (File exists) [ 77.096926][ T5131] loop0: detected capacity change from 0 to 32768 [ 77.133985][ T5131] bcachefs (/dev/loop0): error reading default superblock: Not a bcachefs superblock (got magic c68573f6-4e1a-4502-8265-f57f48ba6d81) [ 77.201975][ T5131] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 77.222104][ T5131] bcachefs (loop0): recovering from clean shutdown, journal seq 13 [ 77.235945][ T5131] bcachefs (loop0): Doing compatible version upgrade from 1.7: mi_btree_bitmap to 1.9: disk_accounting_v2 [ 77.235945][ T5131] running recovery passes: check_allocations [ 77.265827][ T5131] BUG: sleeping function called from invalid context at include/linux/sched/mm.h:337 [ 77.283253][ T5131] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5131, name: syz-executor411 [ 77.300814][ T5131] preempt_count: 1, expected: 0 [ 77.307381][ T5131] RCU nest depth: 0, expected: 0 [ 77.323391][ T5131] 2 locks held by syz-executor411/5131: [ 77.334262][ T5131] #0: ffff888071080278 (&c->state_lock){+.+.}-{3:3}, at: bch2_fs_start+0x45/0x5b0 [ 77.345462][ T5131] #1: ffff8880710ca880 (&j->lock){+.+.}-{2:2}, at: bch2_fs_journal_start+0x1219/0x14a0 [ 77.367561][ T5131] Preemption disabled at: [ 77.367572][ T5131] [<0000000000000000>] 0x0 [ 77.383951][ T5131] CPU: 0 UID: 0 PID: 5131 Comm: syz-executor411 Tainted: G W 6.10.0-next-20240718-syzkaller #0 [ 77.404832][ T5131] Tainted: [W]=WARN [ 77.414412][ T5131] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 [ 77.434530][ T5131] Call Trace: [ 77.439245][ T5131] [ 77.444535][ T5131] dump_stack_lvl+0x241/0x360 [ 77.457586][ T5131] ? __pfx_dump_stack_lvl+0x10/0x10 [ 77.464406][ T5131] ? __pfx__printk+0x10/0x10 [ 77.473701][ T5131] __might_resched+0x5d4/0x780 [ 77.480643][ T5131] ? __pfx___might_resched+0x10/0x10 [ 77.487279][ T5131] ? fs_reclaim_acquire+0x93/0x140 [ 77.495359][ T5131] __kmalloc_node_track_caller_noprof+0xcb/0x440 [ 77.504832][ T5131] ? bch2_printbuf_make_room+0x1f1/0x350 [ 77.514640][ T5131] krealloc_noprof+0x7d/0x120 [ 77.520698][ T5131] bch2_printbuf_make_room+0x1f1/0x350 [ 77.528246][ T5131] bch2_prt_printf+0x267/0x6d0 [ 77.537498][ T5131] ? bch2_journal_space_available+0x11c/0x1b00 [ 77.549277][ T5131] ? __pfx_bch2_prt_printf+0x10/0x10 [ 77.561084][ T5131] bch2_journal_space_available+0x89b/0x1b00 [ 77.569093][ T5131] ? kasan_save_track+0x51/0x80 [ 77.576308][ T5131] ? kasan_save_track+0x3f/0x80 [ 77.584267][ T5131] ? poison_slab_object+0xe0/0x150 [ 77.592678][ T5131] ? __kasan_slab_free+0x37/0x60 [ 77.608432][ T5131] ? bch2_journal_space_available+0x11c/0x1b00 [ 77.624306][ T5131] ? bch2_journal_log_msg+0xda/0x120 [ 77.631265][ T5131] ? bch2_fs_recovery+0x1e48/0x38d0 [ 77.640699][ T5131] ? bch2_fs_get_tree+0xd61/0x1700 [ 77.653104][ T5131] ? vfs_get_tree+0x90/0x2a0 [ 77.660697][ T5131] ? do_new_mount+0x2be/0xb40 [ 77.666788][ T5131] ? __se_sys_mount+0x2d6/0x3c0 [ 77.675839][ T5131] ? __pfx_bch2_journal_space_available+0x10/0x10 [ 77.694678][ T5131] ? mark_lock+0x9a/0x360 [ 77.703479][ T5131] ? __lock_acquire+0x1384/0x2050 [ 77.717605][ T5131] ? kasan_quarantine_put+0xdc/0x230 [ 77.724820][ T5131] ? lockdep_hardirqs_on+0x99/0x150 [ 77.736165][ T5131] ? __pfx_lock_acquire+0x10/0x10 [ 77.746940][ T5131] ? do_raw_spin_lock+0x14f/0x370 [ 77.755295][ T5131] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 77.763683][ T5131] ? __genradix_iter_peek+0x3d0/0x430 [ 77.770498][ T5131] bch2_fs_journal_start+0x1356/0x14a0 [ 77.778226][ T5131] ? __pfx_bch2_fs_journal_start+0x10/0x10 [ 77.787969][ T5131] ? journal_replay_entry_early+0x4d/0xb70 [ 77.795407][ T5131] ? __pfx_bch2_journal_log_msg+0x10/0x10 [ 77.803795][ T5131] ? bch2_recovery_passes_from_stable+0x104/0x120 [ 77.813888][ T5131] bch2_fs_recovery+0x1ec8/0x38d0 [ 77.825734][ T5131] ? __pfx_bch2_fs_recovery+0x10/0x10 [ 77.836628][ T5131] ? __pfx_lock_release+0x10/0x10 [ 77.845959][ T5131] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 77.853680][ T5131] ? __pfx_lock_release+0x10/0x10 [ 77.867425][ T5131] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 77.875889][ T5131] ? bch2_get_next_online_dev+0x4b9/0x4f0 [ 77.885884][ T5131] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 77.898608][ T5131] ? llist_reverse_order+0x72/0x90 [ 77.905825][ T5131] bch2_fs_start+0x356/0x5b0 [ 77.916007][ T5131] bch2_fs_get_tree+0xd61/0x1700 [ 77.928186][ T5131] ? __pfx_bch2_parse_one_mount_opt+0x10/0x10 [ 77.938031][ T5131] ? __pfx_bch2_fs_get_tree+0x10/0x10 [ 77.946285][ T5131] ? generic_parse_monolithic+0x387/0x400 [ 77.959135][ T5131] ? apparmor_capable+0x13b/0x1b0 [ 77.970653][ T5131] ? bpf_lsm_capable+0x9/0x10 [ 77.979378][ T5131] vfs_get_tree+0x90/0x2a0 [ 77.984776][ T5131] do_new_mount+0x2be/0xb40 [ 77.993174][ T5131] ? __pfx_do_new_mount+0x10/0x10 [ 77.999848][ T5131] __se_sys_mount+0x2d6/0x3c0 [ 78.006980][ T5131] ? __pfx___se_sys_mount+0x10/0x10 [ 78.016069][ T5131] ? do_syscall_64+0x100/0x230 [ 78.022966][ T5131] ? __x64_sys_mount+0x20/0xc0 [ 78.031753][ T5131] do_syscall_64+0xf3/0x230 [ 78.041567][ T5131] ? clear_bhb_loop+0x35/0x90 [ 78.047453][ T5131] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 78.055481][ T5131] RIP: 0033:0x7fbe03eaadea [ 78.062742][ T5131] Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 5e 04 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 [ 78.094212][ T5131] RSP: 002b:00007fff2bd74108 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 [ 78.110189][ T5131] RAX: ffffffffffffffda RBX: 00007fff2bd74120 RCX: 00007fbe03eaadea [ 78.122193][ T5131] RDX: 0000000020000000 RSI: 000000002000f680 RDI: 00007fff2bd74120 [ 78.132498][ T5131] RBP: 0000000000000004 R08: 00007fff2bd74160 R09: 000000000000f626 [ 78.145777][ T5131] R10: 0000000000200012 R11: 0000000000000282 R12: 0000000000200012 [ 78.159238][ T5131] R13: 00007fff2bd74160 R14: 0000000000000003 R15: 0000000001000000 [ 78.177754][ T5131] [ 78.181606][ T5131] bcachefs (loop0): insufficient writeable journal devices available: have 0, need 1 [ 78.181606][ T5131] rw journal devs: [ 78.223270][ T5131] bcachefs (loop0): accounting_read... done [ 78.236151][ T5131] bcachefs (loop0): alloc_read... done [ 78.242776][ T5131] bcachefs (loop0): stripes_read... done [ 78.250647][ T5131] bcachefs (loop0): snapshots_read... done [ 78.260098][ T5131] bcachefs (loop0): check_allocations... [ 78.261378][ T5131] btree ptr not marked in member info btree allocated bitmap [ 78.261391][ T5131] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 1818ce08861e3527 written 40 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, shutting down [ 78.308812][ T5131] bcachefs (loop0): inconsistency detected - emergency read only at journal seq 13 [ 78.330930][ T5131] bcachefs (loop0): bch2_gc_mark_key(): error fsck_errors_not_fixed [ 78.346495][ T5131] bcachefs (loop0): bch2_gc_btree(): error fsck_errors_not_fixed [ 78.366583][ T5131] bcachefs (loop0): bch2_gc_btrees(): error fsck_errors_not_fixed [ 78.379130][ T5131] bcachefs (loop0): bch2_check_allocations(): error fsck_errors_not_fixed [ 78.394348][ T5131] bcachefs (loop0): bch2_fs_recovery(): error fsck_errors_not_fixed [ 78.406001][ T5131] bcachefs (loop0): bch2_fs_start(): error starting filesystem fsck_errors_not_fixed [ 78.419933][ T5131] bcachefs (loop0): shutting down [ 78.438562][ T5131] bcachefs (loop0): shutdown complete [pid 5131] mount("/dev/loop0", "./file1", "bcachefs", MS_NOSUID|MS_SYNCHRONOUS|MS_RELATIME, "\xff") = -1 EINVAL (Invalid argument) [pid 5131] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5131] ioctl(3, LOOP_CLR_FD) = 0 [ 78.800397][ T5131] bcachefs: bch2_fs_get_tree() error: fsck_errors_not_fixed [pid 5131] close(3) = 0 [pid 5131] exit_group(0) = ? [pid 5131] +++ exited with 0 +++ --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5131, si_uid=0, si_status=0, si_utime=4 /* 0.04 s */, si_stime=61 /* 0.61 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 5140 attached , child_tidptr=0x5555639bf650) = 5140 [pid 5140] set_robust_list(0x5555639bf660, 24) = 0 [pid 5140] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5140] setpgid(0, 0) = 0 [pid 5140] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5140] write(3, "1000", 4) = 4 [pid 5140] close(3) = 0 [pid 5140] write(1, "executing program\n", 18executing program ) = 18 [pid 5140] memfd_create("syzkaller", 0) = 3 [pid 5140] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbdfba00000 [pid 5140] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 5140] munmap(0x7fbdfba00000, 138412032) = 0 [pid 5140] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5140] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5140] close(3) = 0 [pid 5140] close(4) = 0 [pid 5140] mkdir("./file1", 0777) = -1 EEXIST (File exists) [ 79.352359][ T5140] loop0: detected capacity change from 0 to 32768 [ 79.383406][ T5140] bcachefs (/dev/loop0): error reading default superblock: Not a bcachefs superblock (got magic c68573f6-4e1a-4502-8265-f57f48ba6d81) [ 79.457155][ T5140] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 79.481636][ T5140] bcachefs (loop0): recovering from clean shutdown, journal seq 13 [ 79.493817][ T5140] bcachefs (loop0): Doing compatible version upgrade from 1.7: mi_btree_bitmap to 1.9: disk_accounting_v2 [ 79.493817][ T5140] running recovery passes: check_allocations [ 79.520688][ T5140] BUG: sleeping function called from invalid context at include/linux/sched/mm.h:337 [ 79.541401][ T5140] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5140, name: syz-executor411 [ 79.557596][ T5140] preempt_count: 1, expected: 0 [ 79.570764][ T5140] RCU nest depth: 0, expected: 0 [ 79.578943][ T5140] 2 locks held by syz-executor411/5140: [ 79.593446][ T5140] #0: ffff888071080278 (&c->state_lock){+.+.}-{3:3}, at: bch2_fs_start+0x45/0x5b0 [ 79.611566][ T5140] #1: ffff8880710ca880 (&j->lock){+.+.}-{2:2}, at: bch2_fs_journal_start+0x1219/0x14a0 [ 79.628026][ T5140] Preemption disabled at: [ 79.628040][ T5140] [<0000000000000000>] 0x0 [ 79.645477][ T5140] CPU: 1 UID: 0 PID: 5140 Comm: syz-executor411 Tainted: G W 6.10.0-next-20240718-syzkaller #0 [ 79.677100][ T5140] Tainted: [W]=WARN [ 79.682986][ T5140] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 [ 79.712458][ T5140] Call Trace: [ 79.722403][ T5140] [ 79.725965][ T5140] dump_stack_lvl+0x241/0x360 [ 79.735004][ T5140] ? __pfx_dump_stack_lvl+0x10/0x10 [ 79.745460][ T5140] ? __pfx__printk+0x10/0x10 [ 79.753780][ T5140] __might_resched+0x5d4/0x780 [ 79.772360][ T5140] ? __pfx___might_resched+0x10/0x10 [ 79.781219][ T5140] ? fs_reclaim_acquire+0x93/0x140 [ 79.791826][ T5140] __kmalloc_node_track_caller_noprof+0xcb/0x440 [ 79.811229][ T5140] ? bch2_printbuf_make_room+0x1f1/0x350 [ 79.823139][ T5140] krealloc_noprof+0x7d/0x120 [ 79.831017][ T5140] bch2_printbuf_make_room+0x1f1/0x350 [ 79.836954][ T5140] bch2_prt_printf+0x267/0x6d0 [ 79.847367][ T5140] ? bch2_journal_space_available+0x11c/0x1b00 [ 79.865272][ T5140] ? __pfx_bch2_prt_printf+0x10/0x10 [ 79.874155][ T5140] bch2_journal_space_available+0x89b/0x1b00 [ 79.885072][ T5140] ? kasan_save_track+0x51/0x80 [ 79.898776][ T5140] ? kasan_save_track+0x3f/0x80 [ 79.913691][ T5140] ? poison_slab_object+0xe0/0x150 [ 79.920051][ T5140] ? __kasan_slab_free+0x37/0x60 [ 79.927872][ T5140] ? bch2_journal_space_available+0x11c/0x1b00 [ 79.948029][ T5140] ? bch2_journal_log_msg+0xda/0x120 [ 79.954102][ T5140] ? bch2_fs_recovery+0x1e48/0x38d0 [ 79.960894][ T5140] ? bch2_fs_get_tree+0xd61/0x1700 [ 79.967348][ T5140] ? vfs_get_tree+0x90/0x2a0 [ 79.977398][ T5140] ? do_new_mount+0x2be/0xb40 [ 79.982810][ T5140] ? __se_sys_mount+0x2d6/0x3c0 [ 79.988641][ T5140] ? __pfx_bch2_journal_space_available+0x10/0x10 [ 79.997189][ T5140] ? mark_lock+0x9a/0x360 [ 80.002900][ T5140] ? __lock_acquire+0x1384/0x2050 [ 80.011213][ T5140] ? kasan_quarantine_put+0xdc/0x230 [ 80.020141][ T5140] ? lockdep_hardirqs_on+0x99/0x150 [ 80.026859][ T5140] ? __pfx_lock_acquire+0x10/0x10 [ 80.033361][ T5140] ? do_raw_spin_lock+0x14f/0x370 [ 80.039300][ T5140] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 80.045344][ T5140] ? __genradix_iter_peek+0x3d0/0x430 [ 80.053792][ T5140] bch2_fs_journal_start+0x1356/0x14a0 [ 80.063313][ T5140] ? __pfx_bch2_fs_journal_start+0x10/0x10 [ 80.074596][ T5140] ? journal_replay_entry_early+0x4d/0xb70 [ 80.082113][ T5140] ? __pfx_bch2_journal_log_msg+0x10/0x10 [ 80.097921][ T5140] ? bch2_recovery_passes_from_stable+0x104/0x120 [ 80.113482][ T5140] bch2_fs_recovery+0x1ec8/0x38d0 [ 80.124535][ T5140] ? __pfx_bch2_fs_recovery+0x10/0x10 [ 80.140351][ T5140] ? __pfx_lock_release+0x10/0x10 [ 80.147033][ T5140] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 80.154712][ T5140] ? __pfx_lock_release+0x10/0x10 [ 80.160502][ T5140] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 80.169442][ T5140] ? bch2_get_next_online_dev+0x4b9/0x4f0 [ 80.179054][ T5140] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 80.185416][ T5140] ? llist_reverse_order+0x72/0x90 [ 80.191263][ T5140] bch2_fs_start+0x356/0x5b0 [ 80.198562][ T5140] bch2_fs_get_tree+0xd61/0x1700 [ 80.205136][ T5140] ? __pfx_bch2_parse_one_mount_opt+0x10/0x10 [ 80.213159][ T5140] ? __pfx_bch2_fs_get_tree+0x10/0x10 [ 80.218768][ T5140] ? generic_parse_monolithic+0x387/0x400 [ 80.227755][ T5140] ? apparmor_capable+0x13b/0x1b0 [ 80.243806][ T5140] ? bpf_lsm_capable+0x9/0x10 [ 80.250712][ T5140] vfs_get_tree+0x90/0x2a0 [ 80.256704][ T5140] do_new_mount+0x2be/0xb40 [ 80.262466][ T5140] ? __pfx_do_new_mount+0x10/0x10 [ 80.271529][ T5140] __se_sys_mount+0x2d6/0x3c0 [ 80.278956][ T5140] ? __pfx___se_sys_mount+0x10/0x10 [ 80.284529][ T5140] ? do_syscall_64+0x100/0x230 [ 80.290863][ T5140] ? __x64_sys_mount+0x20/0xc0 [ 80.298250][ T5140] do_syscall_64+0xf3/0x230 [ 80.303239][ T5140] ? clear_bhb_loop+0x35/0x90 [ 80.311168][ T5140] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 80.318602][ T5140] RIP: 0033:0x7fbe03eaadea [ 80.325425][ T5140] Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 5e 04 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 [ 80.357460][ T5140] RSP: 002b:00007fff2bd74108 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 [ 80.370786][ T5140] RAX: ffffffffffffffda RBX: 00007fff2bd74120 RCX: 00007fbe03eaadea [ 80.382156][ T5140] RDX: 0000000020000000 RSI: 000000002000f680 RDI: 00007fff2bd74120 [ 80.396578][ T5140] RBP: 0000000000000004 R08: 00007fff2bd74160 R09: 000000000000f626 [ 80.407985][ T5140] R10: 0000000000200012 R11: 0000000000000282 R12: 0000000000200012 [ 80.418779][ T5140] R13: 00007fff2bd74160 R14: 0000000000000003 R15: 0000000001000000 [ 80.437757][ T5140] [ 80.444100][ T5140] bcachefs (loop0): insufficient writeable journal devices available: have 0, need 1 [ 80.444100][ T5140] rw journal devs: [ 80.494307][ T5140] bcachefs (loop0): accounting_read... done [ 80.501665][ T5140] bcachefs (loop0): alloc_read... done [ 80.510021][ T5140] bcachefs (loop0): stripes_read... done [ 80.519323][ T5140] bcachefs (loop0): snapshots_read... done [ 80.534576][ T5140] bcachefs (loop0): check_allocations... [ 80.538291][ T5140] btree ptr not marked in member info btree allocated bitmap [ 80.538313][ T5140] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 1818ce08861e3527 written 40 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, shutting down [ 80.592711][ T5140] bcachefs (loop0): inconsistency detected - emergency read only at journal seq 13 [ 80.612418][ T5140] bcachefs (loop0): bch2_gc_mark_key(): error fsck_errors_not_fixed [ 80.632754][ T5140] bcachefs (loop0): bch2_gc_btree(): error fsck_errors_not_fixed [ 80.653308][ T5140] bcachefs (loop0): bch2_gc_btrees(): error fsck_errors_not_fixed [ 80.671303][ T5140] bcachefs (loop0): bch2_check_allocations(): error fsck_errors_not_fixed [ 80.686841][ T5140] bcachefs (loop0): bch2_fs_recovery(): error fsck_errors_not_fixed [ 80.698642][ T5140] bcachefs (loop0): bch2_fs_start(): error starting filesystem fsck_errors_not_fixed [ 80.718816][ T5140] bcachefs (loop0): shutting down [ 80.742727][ T5140] bcachefs (loop0): shutdown complete [pid 5140] mount("/dev/loop0", "./file1", "bcachefs", MS_NOSUID|MS_SYNCHRONOUS|MS_RELATIME, "\xff") = -1 EINVAL (Invalid argument) [pid 5140] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5140] ioctl(3, LOOP_CLR_FD) = 0 [ 81.164451][ T5140] bcachefs: bch2_fs_get_tree() error: fsck_errors_not_fixed [pid 5140] close(3) = 0 [pid 5140] exit_group(0) = ? [pid 5140] +++ exited with 0 +++ --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5140, si_uid=0, si_status=0, si_utime=3 /* 0.03 s */, si_stime=60 /* 0.60 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 5149 attached , child_tidptr=0x5555639bf650) = 5149 [pid 5149] set_robust_list(0x5555639bf660, 24) = 0 [pid 5149] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5149] setpgid(0, 0) = 0 [pid 5149] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5149] write(3, "1000", 4) = 4 [pid 5149] close(3) = 0 [pid 5149] write(1, "executing program\n", 18executing program ) = 18 [pid 5149] memfd_create("syzkaller", 0) = 3 [pid 5149] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbdfba00000