./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor3831105807 <...> Warning: Permanently added '10.128.1.91' (ED25519) to the list of known hosts. execve("./syz-executor3831105807", ["./syz-executor3831105807"], 0x7ffd18d6dfc0 /* 10 vars */) = 0 brk(NULL) = 0x555582861000 brk(0x555582861d00) = 0x555582861d00 arch_prctl(ARCH_SET_FS, 0x555582861380) = 0 set_tid_address(0x555582861650) = 5087 set_robust_list(0x555582861660, 24) = 0 rseq(0x555582861ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor3831105807", 4096) = 28 getrandom("\x9d\x64\xb7\x90\x4a\x35\x14\xcb", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555582861d00 brk(0x555582882d00) = 0x555582882d00 brk(0x555582883000) = 0x555582883000 mprotect(0x7fcff0d29000, 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(0x555582861660, 24) = 0 [pid 5089] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5089] setpgid(0, 0) = 0 [pid 5087] <... clone resumed>, child_tidptr=0x555582861650) = 5089 [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] memfd_create("syzkaller", 0) = 3 [pid 5089] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fcfe8800000 [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(0x7fcfe8800000, 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("./file0", 0777) = 0 [ 60.188264][ T5089] loop0: detected capacity change from 0 to 32768 [ 60.268047][ T5089] bcachefs (loop0): mounting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,nojournal_transaction_names [ 60.282235][ T5089] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 60.302483][ T5089] bcachefs (loop0): inconsistency detected - emergency read only at journal seq 10 [ 60.312157][ T5089] ------------[ cut here ]------------ [ 60.317619][ T5089] UBSAN: shift-out-of-bounds in fs/bcachefs/recovery.c:38:10 [ 60.325061][ T5089] shift exponent 255 is too large for 64-bit type 'unsigned long long' [ 60.333334][ T5089] CPU: 1 PID: 5089 Comm: syz-executor383 Not tainted 6.9.0-next-20240515-syzkaller #0 [ 60.342875][ T5089] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 [ 60.352924][ T5089] Call Trace: [ 60.356197][ T5089] [ 60.359119][ T5089] dump_stack_lvl+0x241/0x360 [ 60.363820][ T5089] ? __pfx_dump_stack_lvl+0x10/0x10 [ 60.369029][ T5089] ? __pfx__printk+0x10/0x10 [ 60.373617][ T5089] __ubsan_handle_shift_out_of_bounds+0x3c8/0x420 [ 60.380060][ T5089] bch2_btree_lost_data+0x143/0x150 [ 60.385251][ T5089] bch2_btree_node_read_done+0x4f94/0x6770 [ 60.391080][ T5089] ? __pfx_lock_release+0x10/0x10 [ 60.396101][ T5089] ? __pfx_bch2_btree_node_read_done+0x10/0x10 [ 60.402269][ T5089] ? bch2_bkey_pick_read_device+0x153c/0x1830 [ 60.408343][ T5089] ? bch2_bkey_pick_read_device+0x221/0x1830 [ 60.414322][ T5089] ? __pfx_bch2_bkey_pick_read_device+0x10/0x10 [ 60.420556][ T5089] ? bch2_btree_ptr_v2_to_text+0x209/0x2f0 [ 60.426364][ T5089] ? __pfx_bch2_btree_ptr_v2_to_text+0x10/0x10 [ 60.432523][ T5089] btree_node_read_work+0x68b/0x1260 [ 60.437817][ T5089] ? __pfx_btree_node_read_work+0x10/0x10 [ 60.443528][ T5089] ? print_irqtrace_events+0x1d0/0x220 [ 60.448987][ T5089] ? lockdep_hardirqs_on+0x99/0x150 [ 60.454179][ T5089] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 60.460064][ T5089] ? __pfx__raw_spin_unlock_irqrestore+0x10/0x10 [ 60.466382][ T5089] ? mean_and_variance_weighted_get_mean+0x73/0xc0 [ 60.472884][ T5089] ? __bch2_time_stats_update+0x2c6/0x370 [ 60.478616][ T5089] bch2_btree_node_read+0x2467/0x2a40 [ 60.484005][ T5089] ? bch2_btree_node_hash_insert+0x18b/0x1d0 [ 60.489991][ T5089] ? __mutex_unlock_slowpath+0x21d/0x750 [ 60.495626][ T5089] ? __pfx_bch2_btree_node_read+0x10/0x10 [ 60.501345][ T5089] ? __pfx___bch2_btree_node_hash_insert+0x10/0x10 [ 60.507845][ T5089] ? bch2_btree_node_mem_alloc+0x96b/0x1210 [ 60.513743][ T5089] ? bch2_btree_node_hash_insert+0x18b/0x1d0 [ 60.519725][ T5089] bch2_btree_root_read+0x61e/0x970 [ 60.524922][ T5089] ? __pfx_bch2_btree_root_read+0x10/0x10 [ 60.530639][ T5089] ? bch2_journal_log_msg+0xda/0x120 [ 60.535919][ T5089] read_btree_roots+0x22d/0x7b0 [ 60.540772][ T5089] bch2_fs_recovery+0x2346/0x3700 [ 60.545797][ T5089] ? __pfx_bch2_fs_recovery+0x10/0x10 [ 60.551175][ T5089] ? __pfx_lock_release+0x10/0x10 [ 60.556194][ T5089] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 60.561817][ T5089] ? __pfx_lock_release+0x10/0x10 [ 60.566844][ T5089] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 60.572473][ T5089] ? bch2_get_next_online_dev+0x4b9/0x4f0 [ 60.578183][ T5089] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 60.583808][ T5089] ? llist_reverse_order+0x72/0x90 [ 60.588933][ T5089] bch2_fs_start+0x356/0x5b0 [ 60.593537][ T5089] bch2_fs_open+0xa8d/0xdf0 [ 60.598048][ T5089] ? __pfx_bch2_fs_open+0x10/0x10 [ 60.603076][ T5089] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 60.609409][ T5089] ? __pfx_bch2_test_super+0x10/0x10 [ 60.614698][ T5089] ? sget+0x2b8/0x620 [ 60.618670][ T5089] ? __pfx_bch2_noset_super+0x10/0x10 [ 60.624040][ T5089] bch2_mount+0x71d/0x1320 [ 60.628487][ T5089] ? __pfx_bch2_mount+0x10/0x10 [ 60.633342][ T5089] ? aa_get_newest_label+0xff/0x6f0 [ 60.638538][ T5089] ? vfs_parse_fs_string+0x190/0x230 [ 60.643816][ T5089] ? kfree+0x4e/0x360 [ 60.647799][ T5089] ? vfs_parse_fs_string+0x190/0x230 [ 60.653082][ T5089] legacy_get_tree+0xee/0x190 [ 60.657782][ T5089] ? __pfx_bch2_mount+0x10/0x10 [ 60.662652][ T5089] vfs_get_tree+0x90/0x2a0 [ 60.667066][ T5089] do_new_mount+0x2be/0xb40 [ 60.671562][ T5089] ? ns_capable+0x8a/0xf0 [ 60.675900][ T5089] ? __pfx_do_new_mount+0x10/0x10 [ 60.680920][ T5089] __se_sys_mount+0x2d9/0x3c0 [ 60.685592][ T5089] ? __pfx___se_sys_mount+0x10/0x10 [ 60.690788][ T5089] ? do_syscall_64+0x102/0x240 [ 60.695547][ T5089] ? __x64_sys_mount+0x20/0xc0 [ 60.700305][ T5089] do_syscall_64+0xf5/0x240 [ 60.704817][ T5089] ? clear_bhb_loop+0x35/0x90 [ 60.709510][ T5089] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 60.715392][ T5089] RIP: 0033:0x7fcff0ca5daa [ 60.719799][ 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.739409][ T5089] RSP: 002b:00007ffdb7d64978 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 [ 60.747847][ T5089] RAX: ffffffffffffffda RBX: 00007ffdb7d64990 RCX: 00007fcff0ca5daa [ 60.755821][ T5089] RDX: 0000000020011a00 RSI: 0000000020000080 RDI: 00007ffdb7d64990 [ 60.763798][ T5089] RBP: 0000000000000004 R08: 00007ffdb7d649d0 R09: 00000000000119fd [ 60.771779][ T5089] R10: 0000000001200014 R11: 0000000000000282 R12: 0000000001200014 [ 60.779742][ T5089] R13: 00007ffdb7d649d0 R14: 0000000000000003 R15: 0000000001000000 [ 60.787739][ T5089] [ 60.791324][ T5089] ---[ end trace ]--- [ 60.795333][ T5089] Kernel panic - not syncing: UBSAN: panic_on_warn set ... [ 60.802525][ T5089] CPU: 1 PID: 5089 Comm: syz-executor383 Not tainted 6.9.0-next-20240515-syzkaller #0 [ 60.812063][ T5089] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 [ 60.822114][ T5089] Call Trace: [ 60.825389][ T5089] [ 60.828315][ T5089] dump_stack_lvl+0x241/0x360 [ 60.832997][ T5089] ? __pfx_dump_stack_lvl+0x10/0x10 [ 60.838190][ T5089] ? __pfx__printk+0x10/0x10 [ 60.842780][ T5089] ? vprintk_emit+0x631/0x770 [ 60.847462][ T5089] ? vscnprintf+0x5d/0x90 [ 60.851790][ T5089] panic+0x349/0x860 [ 60.855691][ T5089] ? check_panic_on_warn+0x21/0xb0 [ 60.860806][ T5089] ? __pfx_panic+0x10/0x10 [ 60.865225][ T5089] ? _printk+0xd5/0x120 [ 60.869385][ T5089] ? __pfx__printk+0x10/0x10 [ 60.873984][ T5089] check_panic_on_warn+0x86/0xb0 [ 60.878926][ T5089] __ubsan_handle_shift_out_of_bounds+0x3e7/0x420 [ 60.885355][ T5089] bch2_btree_lost_data+0x143/0x150 [ 60.890556][ T5089] bch2_btree_node_read_done+0x4f94/0x6770 [ 60.896394][ T5089] ? __pfx_lock_release+0x10/0x10 [ 60.901419][ T5089] ? __pfx_bch2_btree_node_read_done+0x10/0x10 [ 60.907578][ T5089] ? bch2_bkey_pick_read_device+0x153c/0x1830 [ 60.913653][ T5089] ? bch2_bkey_pick_read_device+0x221/0x1830 [ 60.919640][ T5089] ? __pfx_bch2_bkey_pick_read_device+0x10/0x10 [ 60.925881][ T5089] ? bch2_btree_ptr_v2_to_text+0x209/0x2f0 [ 60.931694][ T5089] ? __pfx_bch2_btree_ptr_v2_to_text+0x10/0x10 [ 60.937864][ T5089] btree_node_read_work+0x68b/0x1260 [ 60.943168][ T5089] ? __pfx_btree_node_read_work+0x10/0x10 [ 60.948889][ T5089] ? print_irqtrace_events+0x1d0/0x220 [ 60.954359][ T5089] ? lockdep_hardirqs_on+0x99/0x150 [ 60.959588][ T5089] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 60.965507][ T5089] ? __pfx__raw_spin_unlock_irqrestore+0x10/0x10 [ 60.971842][ T5089] ? mean_and_variance_weighted_get_mean+0x73/0xc0 [ 60.978350][ T5089] ? __bch2_time_stats_update+0x2c6/0x370 [ 60.984071][ T5089] bch2_btree_node_read+0x2467/0x2a40 [ 60.989441][ T5089] ? bch2_btree_node_hash_insert+0x18b/0x1d0 [ 60.995442][ T5089] ? __mutex_unlock_slowpath+0x21d/0x750 [ 61.001073][ T5089] ? __pfx_bch2_btree_node_read+0x10/0x10 [ 61.006793][ T5089] ? __pfx___bch2_btree_node_hash_insert+0x10/0x10 [ 61.013293][ T5089] ? bch2_btree_node_mem_alloc+0x96b/0x1210 [ 61.019187][ T5089] ? bch2_btree_node_hash_insert+0x18b/0x1d0 [ 61.025168][ T5089] bch2_btree_root_read+0x61e/0x970 [ 61.030372][ T5089] ? __pfx_bch2_btree_root_read+0x10/0x10 [ 61.036096][ T5089] ? bch2_journal_log_msg+0xda/0x120 [ 61.041382][ T5089] read_btree_roots+0x22d/0x7b0 [ 61.046239][ T5089] bch2_fs_recovery+0x2346/0x3700 [ 61.051300][ T5089] ? __pfx_bch2_fs_recovery+0x10/0x10 [ 61.056691][ T5089] ? __pfx_lock_release+0x10/0x10 [ 61.061725][ T5089] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 61.067355][ T5089] ? __pfx_lock_release+0x10/0x10 [ 61.072382][ T5089] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 61.078013][ T5089] ? bch2_get_next_online_dev+0x4b9/0x4f0 [ 61.083727][ T5089] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 61.089367][ T5089] ? llist_reverse_order+0x72/0x90 [ 61.094482][ T5089] bch2_fs_start+0x356/0x5b0 [ 61.099077][ T5089] bch2_fs_open+0xa8d/0xdf0 [ 61.103596][ T5089] ? __pfx_bch2_fs_open+0x10/0x10 [ 61.108632][ T5089] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 61.114980][ T5089] ? __pfx_bch2_test_super+0x10/0x10 [ 61.120268][ T5089] ? sget+0x2b8/0x620 [ 61.124247][ T5089] ? __pfx_bch2_noset_super+0x10/0x10 [ 61.129619][ T5089] bch2_mount+0x71d/0x1320 [ 61.134055][ T5089] ? __pfx_bch2_mount+0x10/0x10 [ 61.138918][ T5089] ? aa_get_newest_label+0xff/0x6f0 [ 61.144114][ T5089] ? vfs_parse_fs_string+0x190/0x230 [ 61.149397][ T5089] ? kfree+0x4e/0x360 [ 61.153384][ T5089] ? vfs_parse_fs_string+0x190/0x230 [ 61.158672][ T5089] legacy_get_tree+0xee/0x190 [ 61.163352][ T5089] ? __pfx_bch2_mount+0x10/0x10 [ 61.168202][ T5089] vfs_get_tree+0x90/0x2a0 [ 61.172627][ T5089] do_new_mount+0x2be/0xb40 [ 61.177151][ T5089] ? ns_capable+0x8a/0xf0 [ 61.181479][ T5089] ? __pfx_do_new_mount+0x10/0x10 [ 61.186508][ T5089] __se_sys_mount+0x2d9/0x3c0 [ 61.191200][ T5089] ? __pfx___se_sys_mount+0x10/0x10 [ 61.196408][ T5089] ? do_syscall_64+0x102/0x240 [ 61.201176][ T5089] ? __x64_sys_mount+0x20/0xc0 [ 61.205941][ T5089] do_syscall_64+0xf5/0x240 [ 61.210441][ T5089] ? clear_bhb_loop+0x35/0x90 [ 61.215139][ T5089] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 61.221059][ T5089] RIP: 0033:0x7fcff0ca5daa [ 61.225489][ 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 [ 61.245097][ T5089] RSP: 002b:00007ffdb7d64978 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 [ 61.253512][ T5089] RAX: ffffffffffffffda RBX: 00007ffdb7d64990 RCX: 00007fcff0ca5daa [ 61.261477][ T5089] RDX: 0000000020011a00 RSI: 0000000020000080 RDI: 00007ffdb7d64990 [ 61.269442][ T5089] RBP: 0000000000000004 R08: 00007ffdb7d649d0 R09: 00000000000119fd [ 61.277407][ T5089] R10: 0000000001200014 R11: 0000000000000282 R12: 0000000001200014 [ 61.285373][ T5089] R13: 00007ffdb7d649d0 R14: 0000000000000003 R15: 0000000001000000 [ 61.293356][ T5089] [ 61.296748][ T5089] Kernel Offset: disabled [ 61.301108][ T5089] Rebooting in 86400 seconds..