./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor472970687 <...> Warning: Permanently added '10.128.1.136' (ED25519) to the list of known hosts. execve("./syz-executor472970687", ["./syz-executor472970687"], 0x7ffcb4c141e0 /* 10 vars */) = 0 brk(NULL) = 0x5555872ca000 brk(0x5555872cad00) = 0x5555872cad00 arch_prctl(ARCH_SET_FS, 0x5555872ca380) = 0 set_tid_address(0x5555872ca650) = 5833 set_robust_list(0x5555872ca660, 24) = 0 rseq(0x5555872caca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor472970687", 4096) = 27 getrandom("\x9d\x17\x20\x0a\x55\xe8\x1a\xc2", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x5555872cad00 brk(0x5555872ebd00) = 0x5555872ebd00 brk(0x5555872ec000) = 0x5555872ec000 mprotect(0x7f15c22c4000, 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 executing program write(1, "executing program\n", 18) = 18 memfd_create("syzkaller", 0) = 3 mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f15b9e00000 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(0x7f15b9e00000, 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 [ 64.033236][ T5833] loop0: detected capacity change from 0 to 32768 [ 64.120987][ T5833] 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 [ 64.142823][ T5833] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 64.151205][ T5833] bcachefs (loop0): Doing compatible version upgrade from 1.7: mi_btree_bitmap to 1.19: autofix_errors [ 64.151205][ T5833] running recovery passes: check_allocations,check_extents_to_backpointers,check_inodes [ 64.172765][ T5833] invalid btree id 251 (max 63), fix? [ 64.178610][ T5833] bcachefs (loop0): dropping and reconstructing all alloc info [ 64.190602][ T5833] bcachefs (loop0): error validating btree node on loop0 at btree xattrs level 0/0 [ 64.190618][ T5833] 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 [ 64.190626][ T5833] node offset 0/16 bset u64s 0: incorrect max key U64_MAX:18374686479671623680:50331647 [ 64.224005][ T5833] bcachefs (loop0): running explicit recovery pass check_topology (2), currently at recovery_pass_empty (0) [ 64.236016][ T5833] bcachefs (loop0): flagging btree xattrs lost data [ 64.242854][ T5833] bcachefs (loop0): running explicit recovery pass check_backpointers_to_extents (16), currently at recovery_pass_empty (0) [ 64.255948][ T5833] bcachefs (loop0): running explicit recovery pass scan_for_btree_nodes (1), currently at recovery_pass_empty (0) [ 64.269029][ T5833] error reading btree root btree=xattrs level=0: btree_node_read_error, fixing [ 64.281094][ T5833] ------------[ cut here ]------------ [ 64.286679][ T5833] UBSAN: shift-out-of-bounds in fs/bcachefs/btree_cache.c:215:18 [ 64.294409][ T5833] shift exponent 251 is too large for 64-bit type 'unsigned long long' [ 64.302865][ T5833] CPU: 0 UID: 0 PID: 5833 Comm: syz-executor472 Not tainted 6.13.0-rc3-next-20241220-syzkaller #0 [ 64.302891][ T5833] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 64.302906][ T5833] Call Trace: [ 64.302912][ T5833] [ 64.302919][ T5833] dump_stack_lvl+0x241/0x360 [ 64.302963][ T5833] ? __pfx_dump_stack_lvl+0x10/0x10 [ 64.302980][ T5833] ? __pfx__printk+0x10/0x10 [ 64.303010][ T5833] __ubsan_handle_shift_out_of_bounds+0x3c8/0x420 [ 64.303054][ T5833] __bch2_btree_node_hash_insert+0x1b1d/0x1b80 [ 64.303075][ T5833] ? lockdep_hardirqs_on+0x99/0x150 [ 64.303110][ T5833] ? __bch2_btree_node_hash_insert+0x20d/0x1b80 [ 64.303135][ T5833] ? __pfx___bch2_btree_node_hash_insert+0x10/0x10 [ 64.303167][ T5833] bch2_btree_node_hash_insert+0x7e/0xc0 [ 64.303190][ T5833] bch2_btree_root_read+0x5c6/0x7a0 [ 64.303214][ T5833] ? __pfx_bch2_btree_root_read+0x10/0x10 [ 64.303259][ T5833] ? bch2_current_has_btree_trans+0x142/0x180 [ 64.303286][ T5833] read_btree_roots+0x375/0x9e0 [ 64.303315][ T5833] ? __pfx_read_btree_roots+0x10/0x10 [ 64.303332][ T5833] ? bch2_reconstruct_alloc+0x334/0x5d0 [ 64.303367][ T5833] bch2_fs_recovery+0x260f/0x3de0 [ 64.303402][ T5833] ? __pfx_bch2_fs_recovery+0x10/0x10 [ 64.303457][ T5833] ? __pfx_lock_release+0x10/0x10 [ 64.303480][ T5833] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 64.303498][ T5833] ? __pfx_lock_release+0x10/0x10 [ 64.303539][ T5833] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 64.303559][ T5833] ? bch2_get_next_online_dev+0x4b9/0x4f0 [ 64.303575][ T5833] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 64.303597][ T5833] ? llist_reverse_order+0x72/0x90 [ 64.303621][ T5833] bch2_fs_start+0x37c/0x610 [ 64.303659][ T5833] bch2_fs_get_tree+0xd8d/0x1740 [ 64.303712][ T5833] ? __pfx_bch2_fs_get_tree+0x10/0x10 [ 64.303759][ T5833] ? generic_parse_monolithic+0x387/0x400 [ 64.303785][ T5833] ? rcu_is_watching+0x15/0xb0 [ 64.303806][ T5833] ? apparmor_capable+0x13b/0x1b0 [ 64.303835][ T5833] vfs_get_tree+0x90/0x2b0 [ 64.303860][ T5833] do_new_mount+0x2be/0xb40 [ 64.303891][ T5833] ? __pfx_do_new_mount+0x10/0x10 [ 64.303924][ T5833] __se_sys_mount+0x2d6/0x3c0 [ 64.303949][ T5833] ? __pfx___se_sys_mount+0x10/0x10 [ 64.303968][ T5833] ? do_syscall_64+0x100/0x230 [ 64.303988][ T5833] ? __x64_sys_mount+0x20/0xc0 [ 64.304008][ T5833] do_syscall_64+0xf3/0x230 [ 64.304024][ T5833] ? clear_bhb_loop+0x35/0x90 [ 64.304049][ T5833] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 64.304069][ T5833] RIP: 0033:0x7f15c224ca4a [ 64.304094][ T5833] 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 [ 64.304112][ T5833] RSP: 002b:00007ffd1e726af8 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 [ 64.304132][ T5833] RAX: ffffffffffffffda RBX: 00007ffd1e726b10 RCX: 00007f15c224ca4a [ 64.304144][ T5833] RDX: 0000000020000180 RSI: 0000000020000540 RDI: 00007ffd1e726b10 [ 64.304156][ T5833] RBP: 0000000000000004 R08: 00007ffd1e726b50 R09: 0000000000005964 [ 64.304168][ T5833] R10: 0000000000800000 R11: 0000000000000282 R12: 0000000000800000 [ 64.304179][ T5833] R13: 00007ffd1e726b50 R14: 0000000000000003 R15: 0000000001000000 [ 64.304207][ T5833] [ 64.304214][ T5833] ---[ end trace ]--- [ 64.621534][ T5833] Kernel panic - not syncing: UBSAN: panic_on_warn set ... [ 64.628785][ T5833] CPU: 1 UID: 0 PID: 5833 Comm: syz-executor472 Not tainted 6.13.0-rc3-next-20241220-syzkaller #0 [ 64.639356][ T5833] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 64.649416][ T5833] Call Trace: [ 64.652697][ T5833] [ 64.655629][ T5833] dump_stack_lvl+0x241/0x360 [ 64.660332][ T5833] ? __pfx_dump_stack_lvl+0x10/0x10 [ 64.665521][ T5833] ? __pfx__printk+0x10/0x10 [ 64.670126][ T5833] ? vscnprintf+0x5d/0x90 [ 64.674461][ T5833] panic+0x349/0x880 [ 64.678371][ T5833] ? check_panic_on_warn+0x21/0xb0 [ 64.683501][ T5833] ? __pfx_panic+0x10/0x10 [ 64.687913][ T5833] ? _printk+0xd5/0x120 [ 64.692068][ T5833] ? __pfx__printk+0x10/0x10 [ 64.696657][ T5833] check_panic_on_warn+0x86/0xb0 [ 64.701585][ T5833] __ubsan_handle_shift_out_of_bounds+0x3e7/0x420 [ 64.707999][ T5833] __bch2_btree_node_hash_insert+0x1b1d/0x1b80 [ 64.714137][ T5833] ? lockdep_hardirqs_on+0x99/0x150 [ 64.719326][ T5833] ? __bch2_btree_node_hash_insert+0x20d/0x1b80 [ 64.725550][ T5833] ? __pfx___bch2_btree_node_hash_insert+0x10/0x10 [ 64.732049][ T5833] bch2_btree_node_hash_insert+0x7e/0xc0 [ 64.737668][ T5833] bch2_btree_root_read+0x5c6/0x7a0 [ 64.742855][ T5833] ? __pfx_bch2_btree_root_read+0x10/0x10 [ 64.748571][ T5833] ? bch2_current_has_btree_trans+0x142/0x180 [ 64.754622][ T5833] read_btree_roots+0x375/0x9e0 [ 64.759724][ T5833] ? __pfx_read_btree_roots+0x10/0x10 [ 64.765077][ T5833] ? bch2_reconstruct_alloc+0x334/0x5d0 [ 64.770614][ T5833] bch2_fs_recovery+0x260f/0x3de0 [ 64.775631][ T5833] ? __pfx_bch2_fs_recovery+0x10/0x10 [ 64.781003][ T5833] ? __pfx_lock_release+0x10/0x10 [ 64.786012][ T5833] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 64.791625][ T5833] ? __pfx_lock_release+0x10/0x10 [ 64.796725][ T5833] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 64.802343][ T5833] ? bch2_get_next_online_dev+0x4b9/0x4f0 [ 64.808041][ T5833] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 64.813657][ T5833] ? llist_reverse_order+0x72/0x90 [ 64.818753][ T5833] bch2_fs_start+0x37c/0x610 [ 64.823356][ T5833] bch2_fs_get_tree+0xd8d/0x1740 [ 64.828318][ T5833] ? __pfx_bch2_fs_get_tree+0x10/0x10 [ 64.833709][ T5833] ? generic_parse_monolithic+0x387/0x400 [ 64.839423][ T5833] ? rcu_is_watching+0x15/0xb0 [ 64.844289][ T5833] ? apparmor_capable+0x13b/0x1b0 [ 64.849311][ T5833] vfs_get_tree+0x90/0x2b0 [ 64.853719][ T5833] do_new_mount+0x2be/0xb40 [ 64.858231][ T5833] ? __pfx_do_new_mount+0x10/0x10 [ 64.863271][ T5833] __se_sys_mount+0x2d6/0x3c0 [ 64.867948][ T5833] ? __pfx___se_sys_mount+0x10/0x10 [ 64.873128][ T5833] ? do_syscall_64+0x100/0x230 [ 64.877886][ T5833] ? __x64_sys_mount+0x20/0xc0 [ 64.882641][ T5833] do_syscall_64+0xf3/0x230 [ 64.887148][ T5833] ? clear_bhb_loop+0x35/0x90 [ 64.891831][ T5833] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 64.897747][ T5833] RIP: 0033:0x7f15c224ca4a [ 64.902154][ T5833] 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 [ 64.921746][ T5833] RSP: 002b:00007ffd1e726af8 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 [ 64.930166][ T5833] RAX: ffffffffffffffda RBX: 00007ffd1e726b10 RCX: 00007f15c224ca4a [ 64.938118][ T5833] RDX: 0000000020000180 RSI: 0000000020000540 RDI: 00007ffd1e726b10 [ 64.946072][ T5833] RBP: 0000000000000004 R08: 00007ffd1e726b50 R09: 0000000000005964 [ 64.954150][ T5833] R10: 0000000000800000 R11: 0000000000000282 R12: 0000000000800000 [ 64.962113][ T5833] R13: 00007ffd1e726b50 R14: 0000000000000003 R15: 0000000001000000 [ 64.970104][ T5833] [ 64.973374][ T5833] Kernel Offset: disabled [ 64.977806][ T5833] Rebooting in 86400 seconds..