./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor1842420131 <...> Warning: Permanently added '10.128.0.184' (ED25519) to the list of known hosts. execve("./syz-executor1842420131", ["./syz-executor1842420131"], 0x7ffcea0d2040 /* 10 vars */) = 0 brk(NULL) = 0x55558e536000 brk(0x55558e536d00) = 0x55558e536d00 arch_prctl(ARCH_SET_FS, 0x55558e536380) = 0 set_tid_address(0x55558e536650) = 5081 set_robust_list(0x55558e536660, 24) = 0 rseq(0x55558e536ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor1842420131", 4096) = 28 getrandom("\xdb\x03\x78\xa7\xce\x20\xae\x31", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x55558e536d00 brk(0x55558e557d00) = 0x55558e557d00 brk(0x55558e558000) = 0x55558e558000 mprotect(0x7fa69549b000, 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 5082 attached , child_tidptr=0x55558e536650) = 5082 [pid 5082] set_robust_list(0x55558e536660, 24) = 0 [pid 5082] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5082] setpgid(0, 0) = 0 [pid 5082] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5082] write(3, "1000", 4) = 4 [pid 5082] close(3) = 0 [pid 5082] memfd_create("syzkaller", 0) = 3 [pid 5082] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa68ce00000 [pid 5082] 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 5082] munmap(0x7fa68ce00000, 138412032) = 0 [pid 5082] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5082] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5082] close(3) = 0 [pid 5082] close(4) = 0 [pid 5082] mkdir("./file0", 0777) = 0 [ 56.335315][ T5082] loop0: detected capacity change from 0 to 32768 [ 56.406098][ T5082] bcachefs (loop0): mounting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,nojournal_transaction_names [ 56.420132][ T5082] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 56.440143][ T5082] bcachefs (loop0): error validating btree node on loop0 at btree (unknown) level 3/3 [ 56.440164][ T5082] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 27c2ec7b8e70cb08 written 16 min_key POS_MIN durability: 1 ptr: 0:31:0 gen 0 [ 56.440172][ T5082] node offset 0/16 bset u64s 0: incorrect btree id [ 56.471884][ T5082] bcachefs (loop0): inconsistency detected - emergency read only at journal seq 10 [ 56.481256][ T5082] ------------[ cut here ]------------ [ 56.486723][ T5082] UBSAN: shift-out-of-bounds in fs/bcachefs/recovery.c:38:10 [ 56.494458][ T5082] shift exponent 255 is too large for 64-bit type 'unsigned long long' [ 56.502783][ T5082] CPU: 1 PID: 5082 Comm: syz-executor184 Not tainted 6.9.0-syzkaller-07387-g8c06da67d0bd #0 [ 56.512846][ T5082] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 [ 56.522902][ T5082] Call Trace: [ 56.526178][ T5082] [ 56.529119][ T5082] dump_stack_lvl+0x241/0x360 [ 56.533841][ T5082] ? __pfx_dump_stack_lvl+0x10/0x10 [ 56.539041][ T5082] ? __pfx__printk+0x10/0x10 [ 56.543640][ T5082] __ubsan_handle_shift_out_of_bounds+0x3c8/0x420 [ 56.550077][ T5082] bch2_btree_lost_data+0x143/0x150 [ 56.555284][ T5082] bch2_btree_node_read_done+0x50f9/0x5a40 [ 56.561094][ T5082] ? ptr_stale+0x358/0x480 [ 56.565526][ T5082] ? bch2_bkey_ptrs_to_text+0x2266/0x2560 [ 56.571257][ T5082] ? __asan_memcpy+0x40/0x70 [ 56.575852][ T5082] ? bch2_bkey_pick_read_device+0x1436/0x1610 [ 56.581919][ T5082] ? __pfx_bch2_btree_node_read_done+0x10/0x10 [ 56.588101][ T5082] ? __pfx_bch2_bkey_pick_read_device+0x10/0x10 [ 56.594345][ T5082] ? bch2_btree_ptr_v2_to_text+0x209/0x2f0 [ 56.600161][ T5082] ? __pfx_bch2_btree_ptr_v2_to_text+0x10/0x10 [ 56.606439][ T5082] btree_node_read_work+0x665/0x1300 [ 56.611786][ T5082] ? __pfx_btree_node_read_work+0x10/0x10 [ 56.617556][ T5082] ? print_irqtrace_events+0x1d0/0x220 [ 56.623049][ T5082] ? lockdep_hardirqs_on+0x99/0x150 [ 56.628288][ T5082] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 56.634250][ T5082] ? __pfx__raw_spin_unlock_irqrestore+0x10/0x10 [ 56.640700][ T5082] ? mean_and_variance_weighted_get_mean+0x73/0xc0 [ 56.647247][ T5082] ? __bch2_time_stats_update+0x2c4/0x370 [ 56.653028][ T5082] bch2_btree_node_read+0x2b64/0x32c0 [ 56.658475][ T5082] ? mark_lock+0x9a/0x350 [ 56.662842][ T5082] ? __pfx_bch2_btree_node_read+0x10/0x10 [ 56.668587][ T5082] ? __pfx___bch2_btree_node_hash_insert+0x10/0x10 [ 56.675276][ T5082] ? bch2_btree_node_mem_alloc+0x967/0x1210 [ 56.681181][ T5082] ? bch2_btree_node_hash_insert+0x18b/0x1d0 [ 56.687171][ T5082] bch2_btree_root_read+0x61e/0x970 [ 56.692390][ T5082] ? __pfx_bch2_btree_root_read+0x10/0x10 [ 56.698132][ T5082] ? bch2_journal_log_msg+0xda/0x120 [ 56.703448][ T5082] read_btree_roots+0x22d/0x7b0 [ 56.708324][ T5082] bch2_fs_recovery+0x4334/0x63b0 [ 56.713387][ T5082] ? __pfx_bch2_fs_recovery+0x10/0x10 [ 56.718789][ T5082] ? __pfx_lock_release+0x10/0x10 [ 56.723827][ T5082] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 56.729552][ T5082] ? __pfx_lock_release+0x10/0x10 [ 56.734583][ T5082] ? __mutex_lock+0x2ef/0xd70 [ 56.739273][ T5082] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 56.744909][ T5082] ? bch2_get_next_online_dev+0x4b9/0x4f0 [ 56.750634][ T5082] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 56.756292][ T5082] ? llist_reverse_order+0x72/0x90 [ 56.761414][ T5082] bch2_fs_start+0x356/0x5b0 [ 56.766022][ T5082] bch2_fs_open+0xa8d/0xdf0 [ 56.770638][ T5082] ? __pfx_bch2_fs_open+0x10/0x10 [ 56.775769][ T5082] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 56.782118][ T5082] ? __pfx_bch2_test_super+0x10/0x10 [ 56.787415][ T5082] ? sget+0x2b8/0x620 [ 56.791407][ T5082] ? __pfx_bch2_noset_super+0x10/0x10 [ 56.796785][ T5082] bch2_mount+0x71d/0x1320 [ 56.801317][ T5082] ? __pfx_bch2_mount+0x10/0x10 [ 56.806217][ T5082] ? vfs_parse_fs_string+0x190/0x230 [ 56.811522][ T5082] ? kfree+0x4e/0x3b0 [ 56.815514][ T5082] ? vfs_parse_fs_string+0x190/0x230 [ 56.820821][ T5082] ? __pfx_vfs_parse_fs_string+0x10/0x10 [ 56.826491][ T5082] ? cap_capable+0x1b4/0x250 [ 56.831103][ T5082] legacy_get_tree+0xee/0x190 [ 56.835805][ T5082] ? __pfx_bch2_mount+0x10/0x10 [ 56.840762][ T5082] vfs_get_tree+0x90/0x2a0 [ 56.845208][ T5082] do_new_mount+0x2be/0xb40 [ 56.849739][ T5082] ? ns_capable+0x8a/0xf0 [ 56.854079][ T5082] ? __pfx_do_new_mount+0x10/0x10 [ 56.859132][ T5082] __se_sys_mount+0x2d9/0x3c0 [ 56.863847][ T5082] ? __pfx___se_sys_mount+0x10/0x10 [ 56.869076][ T5082] ? do_syscall_64+0x102/0x240 [ 56.873860][ T5082] ? __x64_sys_mount+0x20/0xc0 [ 56.878644][ T5082] do_syscall_64+0xf5/0x240 [ 56.883169][ T5082] ? clear_bhb_loop+0x35/0x90 [ 56.887858][ T5082] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 56.893759][ T5082] RIP: 0033:0x7fa695417daa [ 56.898178][ T5082] 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 [ 56.917784][ T5082] RSP: 002b:00007ffc4c8ca6b8 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 [ 56.926192][ T5082] RAX: ffffffffffffffda RBX: 00007ffc4c8ca6d0 RCX: 00007fa695417daa [ 56.934158][ T5082] RDX: 0000000020011a00 RSI: 0000000020000080 RDI: 00007ffc4c8ca6d0 [ 56.942121][ T5082] RBP: 0000000000000004 R08: 00007ffc4c8ca710 R09: 00000000000119fd [ 56.950105][ T5082] R10: 0000000001200014 R11: 0000000000000282 R12: 0000000001200014 [ 56.958091][ T5082] R13: 00007ffc4c8ca710 R14: 0000000000000003 R15: 0000000001000000 [ 56.966272][ T5082] [ 56.969685][ T5082] ---[ end trace ]--- [ 56.973683][ T5082] Kernel panic - not syncing: UBSAN: panic_on_warn set ... [ 56.980885][ T5082] CPU: 1 PID: 5082 Comm: syz-executor184 Not tainted 6.9.0-syzkaller-07387-g8c06da67d0bd #0 [ 56.990945][ T5082] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 [ 57.000996][ T5082] Call Trace: [ 57.004270][ T5082] [ 57.007216][ T5082] dump_stack_lvl+0x241/0x360 [ 57.011924][ T5082] ? __pfx_dump_stack_lvl+0x10/0x10 [ 57.017137][ T5082] ? __pfx__printk+0x10/0x10 [ 57.021730][ T5082] ? vprintk_emit+0x631/0x770 [ 57.026435][ T5082] ? vscnprintf+0x5d/0x90 [ 57.030786][ T5082] panic+0x349/0x860 [ 57.034691][ T5082] ? check_panic_on_warn+0x21/0xb0 [ 57.039806][ T5082] ? __pfx_panic+0x10/0x10 [ 57.044235][ T5082] ? _printk+0xd5/0x120 [ 57.048445][ T5082] ? __pfx__printk+0x10/0x10 [ 57.053051][ T5082] check_panic_on_warn+0x86/0xb0 [ 57.058024][ T5082] __ubsan_handle_shift_out_of_bounds+0x3e7/0x420 [ 57.064657][ T5082] bch2_btree_lost_data+0x143/0x150 [ 57.069876][ T5082] bch2_btree_node_read_done+0x50f9/0x5a40 [ 57.075951][ T5082] ? ptr_stale+0x358/0x480 [ 57.080384][ T5082] ? bch2_bkey_ptrs_to_text+0x2266/0x2560 [ 57.086130][ T5082] ? __asan_memcpy+0x40/0x70 [ 57.090735][ T5082] ? bch2_bkey_pick_read_device+0x1436/0x1610 [ 57.096813][ T5082] ? __pfx_bch2_btree_node_read_done+0x10/0x10 [ 57.103000][ T5082] ? __pfx_bch2_bkey_pick_read_device+0x10/0x10 [ 57.109256][ T5082] ? bch2_btree_ptr_v2_to_text+0x209/0x2f0 [ 57.115097][ T5082] ? __pfx_bch2_btree_ptr_v2_to_text+0x10/0x10 [ 57.121270][ T5082] btree_node_read_work+0x665/0x1300 [ 57.126629][ T5082] ? __pfx_btree_node_read_work+0x10/0x10 [ 57.132396][ T5082] ? print_irqtrace_events+0x1d0/0x220 [ 57.137876][ T5082] ? lockdep_hardirqs_on+0x99/0x150 [ 57.143099][ T5082] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 57.149020][ T5082] ? __pfx__raw_spin_unlock_irqrestore+0x10/0x10 [ 57.155367][ T5082] ? mean_and_variance_weighted_get_mean+0x73/0xc0 [ 57.161872][ T5082] ? __bch2_time_stats_update+0x2c4/0x370 [ 57.167591][ T5082] bch2_btree_node_read+0x2b64/0x32c0 [ 57.172963][ T5082] ? mark_lock+0x9a/0x350 [ 57.177315][ T5082] ? __pfx_bch2_btree_node_read+0x10/0x10 [ 57.183038][ T5082] ? __pfx___bch2_btree_node_hash_insert+0x10/0x10 [ 57.189535][ T5082] ? bch2_btree_node_mem_alloc+0x967/0x1210 [ 57.195427][ T5082] ? bch2_btree_node_hash_insert+0x18b/0x1d0 [ 57.201406][ T5082] bch2_btree_root_read+0x61e/0x970 [ 57.206608][ T5082] ? __pfx_bch2_btree_root_read+0x10/0x10 [ 57.212342][ T5082] ? bch2_journal_log_msg+0xda/0x120 [ 57.217630][ T5082] read_btree_roots+0x22d/0x7b0 [ 57.222747][ T5082] bch2_fs_recovery+0x4334/0x63b0 [ 57.227785][ T5082] ? __pfx_bch2_fs_recovery+0x10/0x10 [ 57.233181][ T5082] ? __pfx_lock_release+0x10/0x10 [ 57.238200][ T5082] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 57.243824][ T5082] ? __pfx_lock_release+0x10/0x10 [ 57.248842][ T5082] ? __mutex_lock+0x2ef/0xd70 [ 57.253528][ T5082] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 57.259154][ T5082] ? bch2_get_next_online_dev+0x4b9/0x4f0 [ 57.264867][ T5082] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 57.270497][ T5082] ? llist_reverse_order+0x72/0x90 [ 57.275609][ T5082] bch2_fs_start+0x356/0x5b0 [ 57.280202][ T5082] bch2_fs_open+0xa8d/0xdf0 [ 57.284719][ T5082] ? __pfx_bch2_fs_open+0x10/0x10 [ 57.289752][ T5082] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 57.296086][ T5082] ? __pfx_bch2_test_super+0x10/0x10 [ 57.301364][ T5082] ? sget+0x2b8/0x620 [ 57.305341][ T5082] ? __pfx_bch2_noset_super+0x10/0x10 [ 57.310704][ T5082] bch2_mount+0x71d/0x1320 [ 57.315130][ T5082] ? __pfx_bch2_mount+0x10/0x10 [ 57.319985][ T5082] ? vfs_parse_fs_string+0x190/0x230 [ 57.325289][ T5082] ? kfree+0x4e/0x3b0 [ 57.329280][ T5082] ? vfs_parse_fs_string+0x190/0x230 [ 57.334583][ T5082] ? __pfx_vfs_parse_fs_string+0x10/0x10 [ 57.340228][ T5082] ? cap_capable+0x1b4/0x250 [ 57.344818][ T5082] legacy_get_tree+0xee/0x190 [ 57.349499][ T5082] ? __pfx_bch2_mount+0x10/0x10 [ 57.354343][ T5082] vfs_get_tree+0x90/0x2a0 [ 57.358762][ T5082] do_new_mount+0x2be/0xb40 [ 57.363264][ T5082] ? ns_capable+0x8a/0xf0 [ 57.367616][ T5082] ? __pfx_do_new_mount+0x10/0x10 [ 57.372645][ T5082] __se_sys_mount+0x2d9/0x3c0 [ 57.377334][ T5082] ? __pfx___se_sys_mount+0x10/0x10 [ 57.382533][ T5082] ? do_syscall_64+0x102/0x240 [ 57.387293][ T5082] ? __x64_sys_mount+0x20/0xc0 [ 57.392056][ T5082] do_syscall_64+0xf5/0x240 [ 57.396589][ T5082] ? clear_bhb_loop+0x35/0x90 [ 57.401292][ T5082] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 57.407200][ T5082] RIP: 0033:0x7fa695417daa [ 57.411630][ T5082] 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 [ 57.431245][ T5082] RSP: 002b:00007ffc4c8ca6b8 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 [ 57.439661][ T5082] RAX: ffffffffffffffda RBX: 00007ffc4c8ca6d0 RCX: 00007fa695417daa [ 57.447797][ T5082] RDX: 0000000020011a00 RSI: 0000000020000080 RDI: 00007ffc4c8ca6d0 [ 57.455763][ T5082] RBP: 0000000000000004 R08: 00007ffc4c8ca710 R09: 00000000000119fd [ 57.463723][ T5082] R10: 0000000001200014 R11: 0000000000000282 R12: 0000000001200014 [ 57.471687][ T5082] R13: 00007ffc4c8ca710 R14: 0000000000000003 R15: 0000000001000000 [ 57.479664][ T5082] [ 57.482916][ T5082] Kernel Offset: disabled [ 57.487291][ T5082] Rebooting in 86400 seconds..