./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor1677545231 <...> Warning: Permanently added '10.128.0.143' (ED25519) to the list of known hosts. execve("./syz-executor1677545231", ["./syz-executor1677545231"], 0x7ffd69086ee0 /* 10 vars */) = 0 brk(NULL) = 0x555579a50000 brk(0x555579a50d00) = 0x555579a50d00 arch_prctl(ARCH_SET_FS, 0x555579a50380) = 0 set_tid_address(0x555579a50650) = 5797 set_robust_list(0x555579a50660, 24) = 0 rseq(0x555579a50ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor1677545231", 4096) = 28 getrandom("\x66\xa7\x5f\xa6\x42\x04\x93\xa2", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555579a50d00 brk(0x555579a71d00) = 0x555579a71d00 brk(0x555579a72000) = 0x555579a72000 mprotect(0x7f634ea19000, 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, child_tidptr=0x555579a50650) = 5798 ./strace-static-x86_64: Process 5798 attached [pid 5798] set_robust_list(0x555579a50660, 24) = 0 [pid 5798] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5798] setpgid(0, 0) = 0 [pid 5798] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5798] write(3, "1000", 4) = 4 [pid 5798] close(3executing program ) = 0 [pid 5798] write(1, "executing program\n", 18) = 18 [pid 5798] memfd_create("syzkaller", 0) = 3 [pid 5798] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6346400000 [pid 5798] 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 5798] munmap(0x7f6346400000, 138412032) = 0 [pid 5798] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5798] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5798] close(3) = 0 [pid 5798] close(4) = 0 [pid 5798] mkdir("./file1", 0777) = 0 [ 204.558920][ T5798] loop0: detected capacity change from 0 to 32768 [ 204.716220][ T5798] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=errors=continue,metadata_checksum=none,data_checksum=none,compression=lz4,recovery_pass_last=check_root,nojournal_transaction_names,reconstruct_alloc,no_data_io [ 204.739013][ T5798] invalid journal entry, version=1.7: mi_btree_bitmap type=btree_root in superblock: invalid btree root journal entry: wrong number of keys, fixing [ 204.756461][ T5798] invalid journal entry, version=1.7: mi_btree_bitmap type=btree_keys in superblock: k->u64s 0, fixing [ 204.768800][ T5798] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 204.778064][ T5798] bcachefs (loop0): Version upgrade required: [ 204.778064][ T5798] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 204.778064][ T5798] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 204.778064][ T5798] running recovery passes: check_allocations,check_alloc_info,check_lrus,check_btree_backpointers,check_backpointers_to_extents,check_extents_to_backpointers,check_alloc_to_lru_refs,bucket_gens_init,check_snapshot_trees,check_snapshots,check_subvols,check_subvol_children,delete_dead_snapshots,check_inodes,check_extents,check_indirect_extents,check_dirents,check_xattrs,check_root,check_unreachable_inodes,check_subvolume_structure,check_directory_structure,check_nlinks,set_fs_needs_rebalance [ 204.854067][ T5798] bcachefs (loop0): dropping and reconstructing all alloc info [ 204.867912][ T5798] invalid btree root extents, fixing [ 204.873414][ T5798] bcachefs (loop0): will run btree node scan [ 204.879751][ T5798] bcachefs (loop0): flagging btree extents lost data [ 204.891929][ T5798] bcachefs (loop0): scan_for_btree_nodes... [ 205.000752][ T5798] bch2_scan_for_btree_nodes: nodes found after overwrites: [ 205.000827][ T5798] inodes l=0 seq=1 journal_seq=12884901892 cookie=7589ab5e0c11cc7a POS_MIN-SPOS_MAX ptr: 0:38:0 gen 0 [ 205.000895][ T5798] dirents l=0 seq=1 journal_seq=4 cookie=9aa2895aefce4bdf POS_MIN-SPOS_MAX ptr: 0:41:0 gen 0 [ 205.000962][ T5798] xattrs l=0 seq=1 journal_seq=4 cookie=2285c34bed0abe32 POS_MIN-18446742974197924607:18374686479671623680:50331647 ptr: 0:31:0 gen 0 [ 205.001038][ T5798] subvolumes l=0 seq=1 journal_seq=1 cookie=c0bef60d07ceb940 POS_MIN-SPOS_MAX ptr: 0:35:0 gen 0 [ 205.001104][ T5798] snapshots l=0 seq=1 journal_seq=1 cookie=ebb8d5a9e3463bdb POS_MIN-SPOS_MAX ptr: 0:32:0 gen 0 [ 205.001168][ T5798] lru l=0 seq=1 journal_seq=5 cookie=28f61e078e70b95c POS_MIN-SPOS_MAX ptr: 0:28:0 gen 0 [ 205.001233][ T5798] deleted_inodes l=0 seq=1 journal_seq=0 cookie=1db8f60c84bb244c POS_MIN-SPOS_MAX ptr: 0:42:0 gen 0 [ 205.001294][ T5798] [ 205.097042][ T5798] done [ 205.099983][ T5798] bcachefs (loop0): check_topology... [ 205.100113][ T5798] bcachefs (loop0): btree root extents unreadable, must recover from scan [ 205.114940][ T5798] no nodes found for btree extents, continuing [ 205.121923][ T5798] done [ 205.125039][ T5798] bcachefs (loop0): accounting_read... done [ 205.132063][ T5798] bcachefs (loop0): alloc_read... done [ 205.138124][ T5798] bcachefs (loop0): stripes_read... done [ 205.144206][ T5798] bcachefs (loop0): snapshots_read... done [ 205.150662][ T5798] bcachefs (loop0): check_allocations... done [ 205.198973][ T5798] bcachefs (loop0): going read-write [ 205.209119][ T5798] bcachefs (loop0): journal_replay... [ 205.242227][ T3546] ===================================================== [ 205.255128][ T3546] BUG: KMSAN: uninit-value in bch2_bucket_alloc_early+0x11c0/0x2520 [ 205.263297][ T3546] bch2_bucket_alloc_early+0x11c0/0x2520 [ 205.269338][ T3546] bch2_bucket_alloc_trans+0x8e6/0x3fb0 [ 205.275227][ T3546] bch2_bucket_alloc_set_trans+0x959/0x1650 [ 205.281338][ T3546] __open_bucket_add_buckets+0x1dec/0x3070 [ 205.287422][ T3546] open_bucket_add_buckets+0x328/0x530 [ 205.293112][ T3546] bch2_alloc_sectors_start_trans+0x1833/0x32b0 [ 205.299650][ T3546] bch2_btree_reserve_get+0x9d6/0x2290 [ 205.305411][ T3546] bch2_btree_update_start+0x1af9/0x2d60 [ 205.311212][ T3546] bch2_btree_split_leaf+0x120/0xc00 [ 205.316912][ T3546] bch2_trans_commit_error+0x1c0/0x1d60 [ 205.322715][ T3546] __bch2_trans_commit+0x210f/0xd190 [ 205.328294][ T3546] btree_interior_update_work+0x2080/0x4870 [ 205.334434][ T3546] process_scheduled_works+0xae0/0x1c40 [ 205.340278][ T3546] worker_thread+0xea7/0x14f0 [ 205.345310][ T3546] kthread+0x3e2/0x540 [ 205.349549][ T3546] ret_from_fork+0x6d/0x90 [ 205.354116][ T3546] ret_from_fork_asm+0x1a/0x30 [ 205.359227][ T3546] [ 205.361699][ T3546] Uninit was created at: [ 205.366342][ T3546] ___kmalloc_large_node+0x22c/0x370 [ 205.371862][ T3546] __kmalloc_large_node_noprof+0x3f/0x1e0 [ 205.377952][ T3546] __kmalloc_node_noprof+0x9d6/0xf50 [ 205.383467][ T3546] __kvmalloc_node_noprof+0xc0/0x2d0 [ 205.389058][ T3546] bch2_btree_node_mem_alloc+0xa72/0x2ee0 [ 205.395161][ T3546] bch2_btree_reserve_get+0x37f/0x2290 [ 205.400823][ T3546] bch2_btree_update_start+0x1af9/0x2d60 [ 205.406733][ T3546] bch2_btree_split_leaf+0x120/0xc00 [ 205.412241][ T3546] bch2_trans_commit_error+0x1c0/0x1d60 [ 205.418091][ T3546] __bch2_trans_commit+0x210f/0xd190 [ 205.423635][ T3546] bch2_journal_replay+0x2e3d/0x4d30 [ 205.429215][ T3546] bch2_run_recovery_passes+0xaf9/0xf80 [ 205.435192][ T3546] bch2_fs_recovery+0x447b/0x5b00 [ 205.440420][ T3546] bch2_fs_start+0x7b2/0xbd0 [ 205.445290][ T3546] bch2_fs_get_tree+0x13ea/0x22d0 [ 205.450579][ T3546] vfs_get_tree+0xb1/0x5a0 [ 205.455374][ T3546] do_new_mount+0x71f/0x15e0 [ 205.460201][ T3546] path_mount+0x742/0x1f10 [ 205.464925][ T3546] __se_sys_mount+0x722/0x810 [ 205.469864][ T3546] __x64_sys_mount+0xe4/0x150 [ 205.474827][ T3546] x64_sys_call+0x39bf/0x3c30 [ 205.479724][ T3546] do_syscall_64+0xcd/0x1e0 [ 205.484383][ T3546] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 205.490614][ T3546] [ 205.493063][ T3546] CPU: 1 UID: 0 PID: 3546 Comm: kworker/u8:9 Not tainted 6.12.0-syzkaller-09073-g9f16d5e6f220 #0 [ 205.503950][ T3546] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 205.514260][ T3546] Workqueue: btree_update btree_interior_update_work [ 205.521357][ T3546] ===================================================== [ 205.528559][ T3546] Disabling lock debugging due to kernel taint [ 205.535197][ T3546] Kernel panic - not syncing: kmsan.panic set ... [ 205.541854][ T3546] CPU: 1 UID: 0 PID: 3546 Comm: kworker/u8:9 Tainted: G B 6.12.0-syzkaller-09073-g9f16d5e6f220 #0 [ 205.554007][ T3546] Tainted: [B]=BAD_PAGE [ 205.558325][ T3546] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 205.568530][ T3546] Workqueue: btree_update btree_interior_update_work [ 205.575400][ T3546] Call Trace: [ 205.578809][ T3546] [ 205.581870][ T3546] dump_stack_lvl+0x216/0x2d0 [ 205.586734][ T3546] ? kmsan_get_shadow_origin_ptr+0x4d/0xb0 [ 205.592798][ T3546] dump_stack+0x1e/0x30 [ 205.597104][ T3546] panic+0x4e2/0xcf0 [ 205.601146][ T3546] ? kmsan_get_metadata+0x81/0x1c0 [ 205.606453][ T3546] kmsan_report+0x2c7/0x2d0 [ 205.611119][ T3546] ? kmsan_get_shadow_origin_ptr+0x4d/0xb0 [ 205.617100][ T3546] ? __msan_warning+0x95/0x120 [ 205.622013][ T3546] ? bch2_bucket_alloc_early+0x11c0/0x2520 [ 205.627983][ T3546] ? bch2_bucket_alloc_trans+0x8e6/0x3fb0 [ 205.633853][ T3546] ? bch2_bucket_alloc_set_trans+0x959/0x1650 [ 205.640075][ T3546] ? __open_bucket_add_buckets+0x1dec/0x3070 [ 205.646232][ T3546] ? open_bucket_add_buckets+0x328/0x530 [ 205.652132][ T3546] ? bch2_alloc_sectors_start_trans+0x1833/0x32b0 [ 205.658708][ T3546] ? bch2_btree_reserve_get+0x9d6/0x2290 [ 205.664513][ T3546] ? bch2_btree_update_start+0x1af9/0x2d60 [ 205.670469][ T3546] ? bch2_btree_split_leaf+0x120/0xc00 [ 205.676121][ T3546] ? bch2_trans_commit_error+0x1c0/0x1d60 [ 205.682059][ T3546] ? __bch2_trans_commit+0x210f/0xd190 [ 205.687697][ T3546] ? btree_interior_update_work+0x2080/0x4870 [ 205.693924][ T3546] ? process_scheduled_works+0xae0/0x1c40 [ 205.699799][ T3546] ? worker_thread+0xea7/0x14f0 [ 205.704822][ T3546] ? kthread+0x3e2/0x540 [ 205.709226][ T3546] ? ret_from_fork+0x6d/0x90 [ 205.713970][ T3546] ? ret_from_fork_asm+0x1a/0x30 [ 205.719087][ T3546] ? kmsan_get_metadata+0x13e/0x1c0 [ 205.724553][ T3546] ? kmsan_get_shadow_origin_ptr+0x4d/0xb0 [ 205.730582][ T3546] ? filter_irq_stacks+0x60/0x1a0 [ 205.735922][ T3546] ? kmsan_get_metadata+0x13e/0x1c0 [ 205.741322][ T3546] ? kmsan_internal_set_shadow_origin+0x69/0x100 [ 205.747905][ T3546] ? kmsan_get_metadata+0x13e/0x1c0 [ 205.753308][ T3546] ? kmsan_get_shadow_origin_ptr+0x4d/0xb0 [ 205.759378][ T3546] __msan_warning+0x95/0x120 [ 205.764140][ T3546] bch2_bucket_alloc_early+0x11c0/0x2520 [ 205.770050][ T3546] ? kmsan_get_metadata+0x13e/0x1c0 [ 205.775442][ T3546] ? kmsan_get_metadata+0x13e/0x1c0 [ 205.781053][ T3546] ? kmsan_get_shadow_origin_ptr+0x4d/0xb0 [ 205.787075][ T3546] ? bch2_bucket_alloc_early+0x1aa/0x2520 [ 205.792989][ T3546] ? bch2_bucket_alloc_early+0x1aa/0x2520 [ 205.798903][ T3546] ? __msan_memset+0xf5/0x1b0 [ 205.803783][ T3546] bch2_bucket_alloc_trans+0x8e6/0x3fb0 [ 205.809524][ T3546] ? kmsan_get_shadow_origin_ptr+0x4d/0xb0 [ 205.815538][ T3546] ? bch2_btree_path_verify_level+0xdf/0x20e0 [ 205.821787][ T3546] ? filter_irq_stacks+0x60/0x1a0 [ 205.826958][ T3546] ? kmsan_get_metadata+0x13e/0x1c0 [ 205.832353][ T3546] ? kmsan_get_metadata+0x13e/0x1c0 [ 205.837822][ T3546] ? kmsan_get_shadow_origin_ptr+0x4d/0xb0 [ 205.843828][ T3546] ? bch2_bucket_alloc_trans+0xb66/0x3fb0 [ 205.849832][ T3546] ? kmsan_get_metadata+0x13e/0x1c0 [ 205.855204][ T3546] ? kmsan_get_shadow_origin_ptr+0x4d/0xb0 [ 205.861200][ T3546] ? bch2_bucket_alloc_trans+0xb66/0x3fb0 [ 205.867116][ T3546] ? bch2_bucket_alloc_set_trans+0x732/0x1650 [ 205.873382][ T3546] ? kmsan_get_metadata+0x13e/0x1c0 [ 205.878783][ T3546] bch2_bucket_alloc_set_trans+0x959/0x1650 [ 205.884935][ T3546] ? bch2_btree_path_verify+0x36d/0x4a0 [ 205.890739][ T3546] ? kmsan_get_metadata+0x13e/0x1c0 [ 205.896144][ T3546] ? kmsan_get_shadow_origin_ptr+0x4d/0xb0 [ 205.902130][ T3546] ? __open_bucket_add_buckets+0x3bb/0x3070 [ 205.908195][ T3546] ? filter_irq_stacks+0x60/0x1a0 [ 205.913368][ T3546] ? kmsan_internal_set_shadow_origin+0x11/0x100 [ 205.919854][ T3546] __open_bucket_add_buckets+0x1dec/0x3070 [ 205.925833][ T3546] ? kmsan_get_shadow_origin_ptr+0x4d/0xb0 [ 205.931820][ T3546] ? bch2_btree_path_verify_locks+0x1423/0x1490 [ 205.938265][ T3546] ? kmsan_get_metadata+0x13e/0x1c0 [ 205.943634][ T3546] ? kmsan_get_shadow_origin_ptr+0x4d/0xb0 [ 205.949641][ T3546] ? kmsan_get_shadow_origin_ptr+0x4d/0xb0 [ 205.955633][ T3546] open_bucket_add_buckets+0x328/0x530 [ 205.961262][ T3546] ? kmsan_get_metadata+0x13e/0x1c0 [ 205.966634][ T3546] bch2_alloc_sectors_start_trans+0x1833/0x32b0 [ 205.973059][ T3546] ? kmsan_get_shadow_origin_ptr+0x4d/0xb0 [ 205.979083][ T3546] ? kmsan_get_metadata+0x13e/0x1c0 [ 205.984449][ T3546] bch2_btree_reserve_get+0x9d6/0x2290 [ 205.990092][ T3546] ? kmsan_get_shadow_origin_ptr+0x4d/0xb0 [ 205.996115][ T3546] bch2_btree_update_start+0x1af9/0x2d60 [ 206.001936][ T3546] ? bch2_btree_split_leaf+0x120/0xc00 [ 206.007562][ T3546] bch2_btree_split_leaf+0x120/0xc00 [ 206.013015][ T3546] ? kmsan_get_metadata+0x13e/0x1c0 [ 206.018388][ T3546] bch2_trans_commit_error+0x1c0/0x1d60 [ 206.024121][ T3546] ? kmsan_get_shadow_origin_ptr+0x4d/0xb0 [ 206.030111][ T3546] ? bch2_trans_verify_locks+0x5bc/0x630 [ 206.035914][ T3546] ? btree_interior_update_work+0x2080/0x4870 [ 206.042142][ T3546] ? btree_interior_update_work+0x2080/0x4870 [ 206.048371][ T3546] __bch2_trans_commit+0x210f/0xd190 [ 206.053833][ T3546] ? bch2_trigger_extent+0xf9b/0x11a0 [ 206.059412][ T3546] btree_interior_update_work+0x2080/0x4870 [ 206.065522][ T3546] ? __pfx_btree_interior_update_work+0x10/0x10 [ 206.071941][ T3546] process_scheduled_works+0xae0/0x1c40 [ 206.077678][ T3546] worker_thread+0xea7/0x14f0 [ 206.082528][ T3546] kthread+0x3e2/0x540 [ 206.086727][ T3546] ? __pfx_worker_thread+0x10/0x10 [ 206.092026][ T3546] ? __pfx_kthread+0x10/0x10 [ 206.096818][ T3546] ret_from_fork+0x6d/0x90 [ 206.101361][ T3546] ? __pfx_kthread+0x10/0x10 [ 206.106070][ T3546] ret_from_fork_asm+0x1a/0x30 [ 206.110998][ T3546] [ 206.114288][ T3546] Kernel Offset: disabled [ 206.118729][ T3546] Rebooting in 86400 seconds..