./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor780434398 <...> Warning: Permanently added '10.128.1.99' (ED25519) to the list of known hosts. execve("./syz-executor780434398", ["./syz-executor780434398"], 0x7ffc9d38cf00 /* 10 vars */) = 0 brk(NULL) = 0x5555718ec000 brk(0x5555718ecd00) = 0x5555718ecd00 arch_prctl(ARCH_SET_FS, 0x5555718ec380) = 0 set_tid_address(0x5555718ec650) = 5837 set_robust_list(0x5555718ec660, 24) = 0 rseq(0x5555718ecca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor780434398", 4096) = 27 getrandom("\xb1\xc6\xe8\x69\xe7\x7d\x5a\xc7", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x5555718ecd00 brk(0x55557190dd00) = 0x55557190dd00 brk(0x55557190e000) = 0x55557190e000 mprotect(0x7fc6f353e000, 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 5839 attached , child_tidptr=0x5555718ec650) = 5839 [pid 5839] set_robust_list(0x5555718ec660, 24) = 0 [pid 5839] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5839] setpgid(0, 0) = 0 [pid 5839] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5839] write(3, "1000", 4) = 4 [pid 5839] close(3) = 0 [pid 5839] write(1, "executing program\n", 18executing program ) = 18 [pid 5839] memfd_create("syzkaller", 0) = 3 [pid 5839] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc6eb000000 [pid 5839] 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 5839] munmap(0x7fc6eb000000, 138412032) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5839] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5839] close(3) = 0 [pid 5839] close(4) = 0 [pid 5839] mkdir("./file0", 0777) = 0 syzkaller login: [ 61.855723][ T5839] loop0: detected capacity change from 0 to 32768 [ 61.936225][ T5839] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=errors=continue,metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 61.953464][ T5839] invalid journal entry, version=1.7: mi_btree_bitmap type=btree_keys in superblock: k->u64s 0, fixing [ 61.964740][ T5839] bcachefs (loop0): recovering from clean shutdown, journal seq 18446744073709551614 [ 61.974449][ T5839] bcachefs (loop0): Doing compatible version upgrade from 1.7: mi_btree_bitmap to 1.13: inode_has_child_snapshots [ 61.974449][ T5839] running recovery passes: check_allocations,check_inodes [ 62.001106][ T5839] invalid bkey u64s 18 type inode_v3 0:536870912:U32_MAX len 0 ver 0: (unpack error) [ 62.001125][ T5839] invalid variable length fields: delete?, fixing [ 62.019720][ T5839] invalid bkey u64s 11 type reflink_p 0:6:0 len 0 ver 0: idx 1 front_pad 27 back_pad 65536 [ 62.019734][ T5839] idx < front_pad (1 < 27): delete?, fixing [ 62.038668][ T5839] bcachefs (loop0): error validating btree node on loop0 at btree freespace level 0/0 [ 62.038681][ T5839] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0 [ 62.038689][ T5839] node offset 0/32 bset u64s 0: checksum error, type crc32c: got da6193ec should be 00000000, fixing [ 62.073402][ T5839] bcachefs (loop0): error validating btree node on loop0 at btree freespace level 0/0 [ 62.073421][ T5839] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0 [ 62.073429][ T5839] node offset 0/32 bset u64s 0: unsupported bset version 0.0 [ 62.104612][ T5839] bcachefs (loop0): flagging btree freespace lost data [ 62.114391][ T5839] error reading btree root freespace l=0: btree_node_read_error, fixing [ 62.125582][ T5839] bcachefs (loop0): accounting_read... done [ 62.132588][ T5839] bcachefs (loop0): alloc_read... done [ 62.138105][ T5839] bcachefs (loop0): stripes_read... done [ 62.143812][ T5839] bcachefs (loop0): snapshots_read... done [ 62.149957][ T5839] bcachefs (loop0): check_allocations... [ 62.151159][ T5839] bcachefs (loop0): pointer to nonexistent bucket 0:131114 [ 62.164069][ T5839] bcachefs (loop0): bch2_gc_mark_key(): error EIO [ 62.170527][ T5839] bcachefs (loop0): bch2_gc_btree(): error EIO [ 62.176894][ T5839] btree node read error for alloc, fixing [ 62.182769][ T5839] bcachefs (loop0): running explicit recovery pass check_topology (2), currently at check_allocations (8) [ 62.194127][ T5839] bcachefs (loop0): bch2_gc_btrees(): error restart_recovery [ 62.201853][ T5839] bcachefs (loop0): bch2_check_allocations(): error restart_recovery [ 62.209967][ T5839] bcachefs (loop0): check_topology... done [ 62.215875][ T5839] bcachefs (loop0): accounting_read... done [ 62.222005][ T5839] bcachefs (loop0): alloc_read... done [ 62.227526][ T5839] bcachefs (loop0): stripes_read... done [ 62.233244][ T5839] bcachefs (loop0): snapshots_read... done [ 62.239137][ T5839] bcachefs (loop0): check_allocations... [ 62.239854][ T5839] bcachefs (loop0): pointer to nonexistent bucket 0:131114 [ 62.252685][ T5839] bcachefs (loop0): bch2_gc_mark_key(): error EIO [ 62.259134][ T5839] bcachefs (loop0): bch2_gc_btree(): error EIO [ 62.265327][ T5839] btree node read error for alloc, fixing [ 62.272062][ T5839] btree ptr not marked in member info btree allocated bitmap [ 62.272072][ T5839] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 62.296080][ T5839] btree ptr not marked in member info btree allocated bitmap [ 62.296093][ T5839] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 62.319538][ T5839] btree ptr not marked in member info btree allocated bitmap [ 62.319551][ T5839] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 62.342943][ T5839] btree ptr not marked in member info btree allocated bitmap [ 62.342956][ T5839] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ebb8d5a9e3463bdb written 16 min_key POS_MIN durability: 1 ptr: 0:32:0 gen 0, fixing [ 62.366535][ T5839] bucket 0:42 data type btree ptr gen 0 missing in alloc btree [ 62.366556][ T5839] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 1db8f60c84bb244c written 8 min_key POS_MIN durability: 1 ptr: 0:42:0 gen 0, fixing [ 62.389960][ T5839] bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 62.398223][ T5839] bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 62.408716][ T5839] bucket 0:26 gen 0 has wrong data_type: got btree, should be need_discard, fixing [ 62.418040][ T5839] bucket 0:26 gen 0 data type need_discard has wrong dirty_sectors: got 524544, should be 0, fixing [ 62.429530][ T5839] bucket 0:29 gen 0 has wrong data_type: got btree, should be need_discard, fixing [ 62.438952][ T5839] bucket 0:29 gen 0 data type need_discard has wrong dirty_sectors: got 256, should be 0, fixing [ 62.449940][ T5839] bucket 0:42 gen 0 has wrong data_type: got free, should be btree, fixing [ 62.458651][ T5839] bucket 0:42 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 62.469905][ T5839] done [ 62.475188][ T5839] bcachefs (loop0): going read-write [ 62.482275][ T5839] bcachefs (loop0): journal_replay... [ 62.483266][ T5839] ------------[ cut here ]------------ [ 62.494221][ T5839] kernel BUG at fs/bcachefs/journal_reclaim.h:30! [ 62.500709][ T5839] Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI [ 62.507672][ T5839] CPU: 1 UID: 0 PID: 5839 Comm: syz-executor780 Not tainted 6.12.0-syzkaller-09073-g9f16d5e6f220 #0 [ 62.518424][ T5839] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 62.528555][ T5839] RIP: 0010:bch2_journal_pin_set+0x766/0x780 [ 62.534529][ T5839] Code: c1 0f 8c fe f9 ff ff 48 89 df e8 c5 28 c8 fd e9 f1 f9 ff ff e8 5b 71 60 fd 90 0f 0b e8 53 71 60 fd 90 0f 0b e8 4b 71 60 fd 90 <0f> 0b e8 43 71 60 fd 90 0f 0b e8 3b 71 60 fd 90 0f 0b e8 33 71 60 [ 62.554129][ T5839] RSP: 0018:ffffc9000394ee50 EFLAGS: 00010293 [ 62.560188][ T5839] RAX: ffffffff84356e75 RBX: 0000000000000000 RCX: ffff88802c313c00 [ 62.568150][ T5839] RDX: 0000000000000000 RSI: ffffffffffffffff RDI: 0000000000000000 [ 62.576111][ T5839] RBP: 0000000000000000 R08: ffffffff84356bc2 R09: fffff52000729db8 [ 62.584089][ T5839] R10: dffffc0000000000 R11: fffff52000729db8 R12: ffff88802766c901 [ 62.592050][ T5839] R13: ffff8880789ca500 R14: ffff88802766c940 R15: ffffffffffffffff [ 62.600011][ T5839] FS: 00005555718ec380(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 [ 62.608929][ T5839] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 62.615499][ T5839] CR2: 0000557704c1da48 CR3: 000000007a91c000 CR4: 00000000003526f0 [ 62.623460][ T5839] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 62.631417][ T5839] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 62.639375][ T5839] Call Trace: [ 62.642642][ T5839] [ 62.645560][ T5839] ? __die_body+0x5f/0xb0 [ 62.649883][ T5839] ? die+0x9e/0xc0 [ 62.653589][ T5839] ? do_trap+0x15a/0x3a0 [ 62.657823][ T5839] ? bch2_journal_pin_set+0x766/0x780 [ 62.663183][ T5839] ? do_error_trap+0x1dc/0x2c0 [ 62.667937][ T5839] ? bch2_journal_pin_set+0x766/0x780 [ 62.673308][ T5839] ? __pfx_do_error_trap+0x10/0x10 [ 62.678413][ T5839] ? handle_invalid_op+0x34/0x40 [ 62.683358][ T5839] ? bch2_journal_pin_set+0x766/0x780 [ 62.688720][ T5839] ? exc_invalid_op+0x38/0x50 [ 62.693392][ T5839] ? asm_exc_invalid_op+0x1a/0x20 [ 62.698409][ T5839] ? bch2_journal_pin_set+0x4b2/0x780 [ 62.703776][ T5839] ? bch2_journal_pin_set+0x765/0x780 [ 62.709137][ T5839] ? bch2_journal_pin_set+0x766/0x780 [ 62.714496][ T5839] ? __pfx_bch2_btree_node_flush0+0x10/0x10 [ 62.720382][ T5839] ? __pfx_bch2_btree_node_flush0+0x10/0x10 [ 62.726264][ T5839] bch2_btree_insert_key_leaf+0x800/0xa90 [ 62.731977][ T5839] __bch2_trans_commit+0x7163/0x93c0 [ 62.737258][ T5839] ? __pfx___bch2_trans_commit+0x10/0x10 [ 62.742883][ T5839] bch2_journal_replay+0x1a3a/0x2a40 [ 62.748161][ T5839] ? irq_work_queue+0xca/0x150 [ 62.752913][ T5839] ? __wake_up_klogd+0xd5/0x110 [ 62.757757][ T5839] ? __pfx_bch2_journal_replay+0x10/0x10 [ 62.763377][ T5839] ? bch2_do_pending_node_rewrites+0x35/0x210 [ 62.769433][ T5839] ? __mutex_unlock_slowpath+0x21e/0x790 [ 62.775055][ T5839] ? __bch2_print+0x17a/0x220 [ 62.779719][ T5839] ? kvm_sched_clock_read+0x11/0x20 [ 62.784908][ T5839] ? local_clock_noinstr+0xe/0xe0 [ 62.789925][ T5839] ? bch2_run_recovery_pass+0x6d/0x1e0 [ 62.795377][ T5839] ? __pfx___bch2_print+0x10/0x10 [ 62.800390][ T5839] ? bch2_do_stripe_deletes+0x127/0x160 [ 62.805921][ T5839] ? __bch2_fs_read_write+0x35c/0x370 [ 62.811282][ T5839] bch2_run_recovery_pass+0xf0/0x1e0 [ 62.816560][ T5839] bch2_run_recovery_passes+0x3a7/0x880 [ 62.822101][ T5839] bch2_fs_recovery+0x25cc/0x39d0 [ 62.827120][ T5839] ? __pfx_bch2_fs_recovery+0x10/0x10 [ 62.832493][ T5839] ? __pfx_lock_release+0x10/0x10 [ 62.837502][ T5839] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 62.843124][ T5839] ? __pfx_lock_release+0x10/0x10 [ 62.848137][ T5839] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 62.853761][ T5839] ? bch2_get_next_online_dev+0x4b9/0x4f0 [ 62.859469][ T5839] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 62.865092][ T5839] ? llist_reverse_order+0x72/0x90 [ 62.870191][ T5839] bch2_fs_start+0x356/0x5b0 [ 62.874796][ T5839] bch2_fs_get_tree+0xd68/0x1710 [ 62.879760][ T5839] ? __pfx_bch2_fs_get_tree+0x10/0x10 [ 62.885155][ T5839] ? generic_parse_monolithic+0x387/0x400 [ 62.890879][ T5839] ? cap_capable+0x1b4/0x250 [ 62.895470][ T5839] ? safesetid_security_capable+0xb2/0x1d0 [ 62.901286][ T5839] vfs_get_tree+0x90/0x2b0 [ 62.905717][ T5839] do_new_mount+0x2be/0xb40 [ 62.910217][ T5839] ? __pfx_do_new_mount+0x10/0x10 [ 62.915235][ T5839] __se_sys_mount+0x2d6/0x3c0 [ 62.919912][ T5839] ? __pfx___se_sys_mount+0x10/0x10 [ 62.925122][ T5839] ? do_syscall_64+0x100/0x230 [ 62.929888][ T5839] ? __x64_sys_mount+0x20/0xc0 [ 62.934647][ T5839] do_syscall_64+0xf3/0x230 [ 62.939154][ T5839] ? clear_bhb_loop+0x35/0x90 [ 62.943833][ T5839] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 62.949731][ T5839] RIP: 0033:0x7fc6f34c6dea [ 62.954151][ T5839] 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.973758][ T5839] RSP: 002b:00007ffc6a712b88 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 [ 62.982165][ T5839] RAX: ffffffffffffffda RBX: 00007ffc6a712ba0 RCX: 00007fc6f34c6dea [ 62.990129][ T5839] RDX: 0000000020000000 RSI: 0000000020000080 RDI: 00007ffc6a712ba0 [ 62.998088][ T5839] RBP: 0000000000000004 R08: 00007ffc6a712be0 R09: 0000000000005983 [ 63.006064][ T5839] R10: 0000000000000000 R11: 0000000000000282 R12: 0000000000000000 [ 63.014035][ T5839] R13: 00007ffc6a712be0 R14: 0000000000000003 R15: 0000000001000000 [ 63.022008][ T5839] [ 63.025023][ T5839] Modules linked in: [ 63.029070][ T5839] ---[ end trace 0000000000000000 ]--- [ 63.034518][ T5839] RIP: 0010:bch2_journal_pin_set+0x766/0x780 [ 63.040511][ T5839] Code: c1 0f 8c fe f9 ff ff 48 89 df e8 c5 28 c8 fd e9 f1 f9 ff ff e8 5b 71 60 fd 90 0f 0b e8 53 71 60 fd 90 0f 0b e8 4b 71 60 fd 90 <0f> 0b e8 43 71 60 fd 90 0f 0b e8 3b 71 60 fd 90 0f 0b e8 33 71 60 [ 63.060126][ T5839] RSP: 0018:ffffc9000394ee50 EFLAGS: 00010293 [ 63.066177][ T5839] RAX: ffffffff84356e75 RBX: 0000000000000000 RCX: ffff88802c313c00 [ 63.074143][ T5839] RDX: 0000000000000000 RSI: ffffffffffffffff RDI: 0000000000000000 [ 63.082117][ T5839] RBP: 0000000000000000 R08: ffffffff84356bc2 R09: fffff52000729db8 [ 63.090083][ T5839] R10: dffffc0000000000 R11: fffff52000729db8 R12: ffff88802766c901 [ 63.098034][ T5839] R13: ffff8880789ca500 R14: ffff88802766c940 R15: ffffffffffffffff [ 63.106032][ T5839] FS: 00005555718ec380(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 [ 63.114955][ T5839] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 63.121564][ T5839] CR2: 0000557704c1da48 CR3: 000000007a91c000 CR4: 00000000003526f0 [ 63.129537][ T5839] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 63.137489][ T5839] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 63.145466][ T5839] Kernel panic - not syncing: Fatal exception [ 63.151758][ T5839] Kernel Offset: disabled [ 63.156068][ T5839] Rebooting in 86400 seconds..