./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor1830964745 <...> Warning: Permanently added '10.128.0.225' (ED25519) to the list of known hosts. execve("./syz-executor1830964745", ["./syz-executor1830964745"], 0x7fff9cf62f70 /* 10 vars */) = 0 brk(NULL) = 0x55556a063000 brk(0x55556a063d00) = 0x55556a063d00 arch_prctl(ARCH_SET_FS, 0x55556a063380) = 0 set_tid_address(0x55556a063650) = 5831 set_robust_list(0x55556a063660, 24) = 0 rseq(0x55556a063ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor1830964745", 4096) = 28 getrandom("\xb1\x65\xc6\xa7\xbc\xcf\x78\x30", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x55556a063d00 brk(0x55556a084d00) = 0x55556a084d00 brk(0x55556a085000) = 0x55556a085000 mprotect(0x7fc9dd30a000, 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 write(1, "executing program\n", 18executing program ) = 18 memfd_create("syzkaller", 0) = 3 mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc9d4e00000 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 munmap(0x7fc9d4e00000, 138412032) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 close(4) = 0 mkdir("./file0aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", 0777) = 0 [ 65.187735][ T5831] loop0: detected capacity change from 0 to 32768 [ 65.259738][ T5831] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,no_splitbrain_check,fsck,fix_errors=ask,norecovery,nojournal_transaction_names,reconstruct_alloc [ 65.281291][ T5831] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 65.289491][ T5831] bcachefs (loop0): Doing compatible version upgrade from 1.7: mi_btree_bitmap to 1.19: autofix_errors [ 65.289491][ T5831] running recovery passes: check_allocations,check_extents_to_backpointers,check_inodes [ 65.311150][ T5831] invalid btree id 251 (max 63), fix? [ 65.317114][ T5831] bcachefs (loop0): dropping and reconstructing all alloc info [ 65.329522][ T5831] bcachefs (loop0): error validating btree node on loop0 at btree xattrs level 0/0 [ 65.329549][ T5831] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 2285c34bed0abe32 written 16 min_key POS_MIN durability: 1 ptr: 0:31:0 gen 0 [ 65.329557][ T5831] node offset 0/16 bset u64s 0: incorrect max key U64_MAX:18374686479671623680:50331647 [ 65.362817][ T5831] bcachefs (loop0): running explicit recovery pass check_topology (2), currently at recovery_pass_empty (0) [ 65.374847][ T5831] bcachefs (loop0): flagging btree xattrs lost data [ 65.381564][ T5831] bcachefs (loop0): running explicit recovery pass check_backpointers_to_extents (16), currently at recovery_pass_empty (0) [ 65.394565][ T5831] bcachefs (loop0): running explicit recovery pass scan_for_btree_nodes (1), currently at recovery_pass_empty (0) [ 65.407902][ T5831] error reading btree root btree=xattrs level=0: btree_node_read_error, fixing [ 65.420137][ T5831] ------------[ cut here ]------------ [ 65.425759][ T5831] UBSAN: shift-out-of-bounds in fs/bcachefs/btree_cache.c:215:18 [ 65.433494][ T5831] shift exponent 251 is too large for 64-bit type 'unsigned long long' [ 65.441814][ T5831] CPU: 0 UID: 0 PID: 5831 Comm: syz-executor183 Not tainted 6.13.0-rc3-next-20241220-syzkaller #0 [ 65.441841][ T5831] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 65.441856][ T5831] Call Trace: [ 65.441865][ T5831] [ 65.441873][ T5831] dump_stack_lvl+0x241/0x360 [ 65.441919][ T5831] ? __pfx_dump_stack_lvl+0x10/0x10 [ 65.441933][ T5831] ? __pfx__printk+0x10/0x10 [ 65.441965][ T5831] __ubsan_handle_shift_out_of_bounds+0x3c8/0x420 [ 65.442006][ T5831] __bch2_btree_node_hash_insert+0x1b1d/0x1b80 [ 65.442034][ T5831] ? lockdep_hardirqs_on+0x99/0x150 [ 65.442066][ T5831] ? __bch2_btree_node_hash_insert+0x20d/0x1b80 [ 65.442086][ T5831] ? __pfx___bch2_btree_node_hash_insert+0x10/0x10 [ 65.442117][ T5831] bch2_btree_node_hash_insert+0x7e/0xc0 [ 65.442139][ T5831] bch2_btree_root_read+0x5c6/0x7a0 [ 65.442163][ T5831] ? __pfx_bch2_btree_root_read+0x10/0x10 [ 65.442201][ T5831] ? bch2_current_has_btree_trans+0x142/0x180 [ 65.442228][ T5831] read_btree_roots+0x375/0x9e0 [ 65.442259][ T5831] ? __pfx_read_btree_roots+0x10/0x10 [ 65.442275][ T5831] ? bch2_reconstruct_alloc+0x334/0x5d0 [ 65.442310][ T5831] bch2_fs_recovery+0x260f/0x3de0 [ 65.442344][ T5831] ? __pfx_bch2_fs_recovery+0x10/0x10 [ 65.442396][ T5831] ? __pfx_lock_release+0x10/0x10 [ 65.442419][ T5831] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 65.442437][ T5831] ? __pfx_lock_release+0x10/0x10 [ 65.442469][ T5831] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 65.442489][ T5831] ? bch2_get_next_online_dev+0x4b9/0x4f0 [ 65.442505][ T5831] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 65.442528][ T5831] ? llist_reverse_order+0x72/0x90 [ 65.442553][ T5831] bch2_fs_start+0x37c/0x610 [ 65.442584][ T5831] bch2_fs_get_tree+0xd8d/0x1740 [ 65.442638][ T5831] ? __pfx_bch2_fs_get_tree+0x10/0x10 [ 65.442683][ T5831] ? generic_parse_monolithic+0x387/0x400 [ 65.442710][ T5831] ? rcu_is_watching+0x15/0xb0 [ 65.442731][ T5831] ? apparmor_capable+0x13b/0x1b0 [ 65.442759][ T5831] vfs_get_tree+0x90/0x2b0 [ 65.442784][ T5831] do_new_mount+0x2be/0xb40 [ 65.442812][ T5831] ? __pfx_do_new_mount+0x10/0x10 [ 65.442847][ T5831] __se_sys_mount+0x2d6/0x3c0 [ 65.442872][ T5831] ? __pfx___se_sys_mount+0x10/0x10 [ 65.442891][ T5831] ? do_syscall_64+0x100/0x230 [ 65.442912][ T5831] ? __x64_sys_mount+0x20/0xc0 [ 65.442933][ T5831] do_syscall_64+0xf3/0x230 [ 65.442950][ T5831] ? clear_bhb_loop+0x35/0x90 [ 65.442976][ T5831] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 65.442997][ T5831] RIP: 0033:0x7fc9dd292a4a [ 65.443021][ T5831] 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.443045][ T5831] RSP: 002b:00007ffd93e90cc8 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 [ 65.443065][ T5831] RAX: ffffffffffffffda RBX: 00007ffd93e90ce0 RCX: 00007fc9dd292a4a [ 65.443078][ T5831] RDX: 0000000020000180 RSI: 0000000020000540 RDI: 00007ffd93e90ce0 [ 65.443090][ T5831] RBP: 0000000000000004 R08: 00007ffd93e90d20 R09: 0000000000005964 [ 65.443101][ T5831] R10: 0000000000800000 R11: 0000000000000282 R12: 0000000000800000 [ 65.443112][ T5831] R13: 00007ffd93e90d20 R14: 0000000000000003 R15: 0000000001000000 [ 65.443141][ T5831] [ 65.443148][ T5831] ---[ end trace ]--- [ 65.760301][ T5831] Kernel panic - not syncing: UBSAN: panic_on_warn set ... [ 65.767499][ T5831] CPU: 0 UID: 0 PID: 5831 Comm: syz-executor183 Not tainted 6.13.0-rc3-next-20241220-syzkaller #0 [ 65.778070][ T5831] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 65.788116][ T5831] Call Trace: [ 65.791383][ T5831] [ 65.794302][ T5831] dump_stack_lvl+0x241/0x360 [ 65.798976][ T5831] ? __pfx_dump_stack_lvl+0x10/0x10 [ 65.804169][ T5831] ? __pfx__printk+0x10/0x10 [ 65.808752][ T5831] ? vscnprintf+0x5d/0x90 [ 65.813072][ T5831] panic+0x349/0x880 [ 65.816965][ T5831] ? check_panic_on_warn+0x21/0xb0 [ 65.822071][ T5831] ? __pfx_panic+0x10/0x10 [ 65.826479][ T5831] ? _printk+0xd5/0x120 [ 65.830626][ T5831] ? __pfx__printk+0x10/0x10 [ 65.835209][ T5831] check_panic_on_warn+0x86/0xb0 [ 65.840144][ T5831] __ubsan_handle_shift_out_of_bounds+0x3e7/0x420 [ 65.846560][ T5831] __bch2_btree_node_hash_insert+0x1b1d/0x1b80 [ 65.852723][ T5831] ? lockdep_hardirqs_on+0x99/0x150 [ 65.857915][ T5831] ? __bch2_btree_node_hash_insert+0x20d/0x1b80 [ 65.864161][ T5831] ? __pfx___bch2_btree_node_hash_insert+0x10/0x10 [ 65.870677][ T5831] bch2_btree_node_hash_insert+0x7e/0xc0 [ 65.876302][ T5831] bch2_btree_root_read+0x5c6/0x7a0 [ 65.881489][ T5831] ? __pfx_bch2_btree_root_read+0x10/0x10 [ 65.887214][ T5831] ? bch2_current_has_btree_trans+0x142/0x180 [ 65.893276][ T5831] read_btree_roots+0x375/0x9e0 [ 65.898148][ T5831] ? __pfx_read_btree_roots+0x10/0x10 [ 65.903504][ T5831] ? bch2_reconstruct_alloc+0x334/0x5d0 [ 65.909041][ T5831] bch2_fs_recovery+0x260f/0x3de0 [ 65.914060][ T5831] ? __pfx_bch2_fs_recovery+0x10/0x10 [ 65.919444][ T5831] ? __pfx_lock_release+0x10/0x10 [ 65.924475][ T5831] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 65.930179][ T5831] ? __pfx_lock_release+0x10/0x10 [ 65.935196][ T5831] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 65.940815][ T5831] ? bch2_get_next_online_dev+0x4b9/0x4f0 [ 65.946516][ T5831] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 65.952149][ T5831] ? llist_reverse_order+0x72/0x90 [ 65.957252][ T5831] bch2_fs_start+0x37c/0x610 [ 65.961833][ T5831] bch2_fs_get_tree+0xd8d/0x1740 [ 65.966791][ T5831] ? __pfx_bch2_fs_get_tree+0x10/0x10 [ 65.972177][ T5831] ? generic_parse_monolithic+0x387/0x400 [ 65.977890][ T5831] ? rcu_is_watching+0x15/0xb0 [ 65.982642][ T5831] ? apparmor_capable+0x13b/0x1b0 [ 65.987654][ T5831] vfs_get_tree+0x90/0x2b0 [ 65.992060][ T5831] do_new_mount+0x2be/0xb40 [ 65.996585][ T5831] ? __pfx_do_new_mount+0x10/0x10 [ 66.001603][ T5831] __se_sys_mount+0x2d6/0x3c0 [ 66.006292][ T5831] ? __pfx___se_sys_mount+0x10/0x10 [ 66.011953][ T5831] ? do_syscall_64+0x100/0x230 [ 66.016731][ T5831] ? __x64_sys_mount+0x20/0xc0 [ 66.021506][ T5831] do_syscall_64+0xf3/0x230 [ 66.026008][ T5831] ? clear_bhb_loop+0x35/0x90 [ 66.030686][ T5831] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 66.036580][ T5831] RIP: 0033:0x7fc9dd292a4a [ 66.040994][ T5831] 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.060595][ T5831] RSP: 002b:00007ffd93e90cc8 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 [ 66.069013][ T5831] RAX: ffffffffffffffda RBX: 00007ffd93e90ce0 RCX: 00007fc9dd292a4a [ 66.076983][ T5831] RDX: 0000000020000180 RSI: 0000000020000540 RDI: 00007ffd93e90ce0 [ 66.084952][ T5831] RBP: 0000000000000004 R08: 00007ffd93e90d20 R09: 0000000000005964 [ 66.092920][ T5831] R10: 0000000000800000 R11: 0000000000000282 R12: 0000000000800000 [ 66.100999][ T5831] R13: 00007ffd93e90d20 R14: 0000000000000003 R15: 0000000001000000 [ 66.109010][ T5831] [ 66.112187][ T5831] Kernel Offset: disabled [ 66.116549][ T5831] Rebooting in 86400 seconds..