./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor1343994235 <...> [ 87.085758][ T10] cfg80211: failed to load regulatory.db Warning: Permanently added '10.128.0.241' (ED25519) to the list of known hosts. execve("./syz-executor1343994235", ["./syz-executor1343994235"], 0x7ffffc2c6740 /* 10 vars */) = 0 brk(NULL) = 0x55558126a000 brk(0x55558126ad00) = 0x55558126ad00 arch_prctl(ARCH_SET_FS, 0x55558126a380) = 0 set_tid_address(0x55558126a650) = 5818 set_robust_list(0x55558126a660, 24) = 0 rseq(0x55558126aca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor1343994235", 4096) = 28 getrandom("\xb7\x37\x17\xc2\x9d\xe2\x79\x86", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x55558126ad00 brk(0x55558128bd00) = 0x55558128bd00 brk(0x55558128c000) = 0x55558128c000 mprotect(0x7ff250abd000, 16384, PROT_READ) = 0 mmap(0x1ffffffff000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x1ffffffff000 mmap(0x200000000000, 16777216, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x200000000000 mmap(0x200001000000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x200001000000 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=0x55558126a650) = 5819 ./strace-static-x86_64: Process 5819 attached [pid 5819] set_robust_list(0x55558126a660, 24) = 0 [pid 5819] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5819] setpgid(0, 0) = 0 [pid 5819] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5819] write(3, "1000", 4) = 4 [pid 5819] close(3) = 0 [pid 5819] write(1, "executing program\n", 18executing program ) = 18 [pid 5819] memfd_create("syzkaller", 0) = 3 [pid 5819] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ff2485ff000 [pid 5819] 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"..., 8388608) = 8388608 [pid 5819] munmap(0x7ff2485ff000, 138412032) = 0 [pid 5819] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5819] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5819] close(3) = 0 [pid 5819] close(4) = 0 [pid 5819] mkdir("./file0", 0777) = 0 [ 92.893910][ T5819] loop0: detected capacity change from 0 to 16384 [ 93.087991][ T5819] bcachefs (loop0): starting version 1.13: inode_has_child_snapshots opts=metadata_checksum=none,data_checksum=none [ 93.088005][ T5819] features: new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 93.088021][ T5819] bcachefs (loop0): Using encoding defined by superblock: utf8-12.1.0 [ 93.088208][ T5819] bcachefs (loop0): recovering from clean shutdown, journal seq 15 [ 93.088288][ T5819] bcachefs (loop0): Doing compatible version upgrade from 1.13: inode_has_child_snapshots to 1.28: inode_has_case_insensitive [ 93.088288][ T5819] running recovery pa[ 93.088288][ T5819] bcachefs (loop0): Doing compatible version upgrade from 1.13: inode_has_child_snapshots to 1.28: inode_has_case_insensitive [ 93.088288][ T5819] running recovery passes: check_allocations,check_extents_to_backpointers,check_inodes [ 93.114707][ T5819] bcachefs (loop0): btree node read error at btree alloc level 1/1 [ 93.114725][ T5819] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 3a29d24e27fd9a2e written 65534 min_key R 0:0:16777215 durability: 1 ptr: 0:178:0 gen 0 [ 93.114738][ T5819] loop0 node offset 16/65534: btree node data missing: expected 65534 sectors, found 16 [ 93.114747][ T5819] loop0 btree validate error [ 93.114753][ T5819] repair success (rewriting node) [ 93.116261][ T5819] bcachefs (loop0): invalid bkey in btree_node btree=subvolumes level=0: u64s 10 type subvolume 0:1970324836974593:0 len 0 ver 0: root 4096 snapshot id 4294967295 creation_parent 0 fs_parent 0 [ 93.116286][ T5819] invalid pos, deleting [ 93.122013][ T5819] bcachefs (loop0): error reading btree root btree=subvolumes level=0: btree_node_read_error, fixing [ 93.134950][ T5819] bcachefs (loop0): error reading btree root btree=accounting level=0: btree_node_read_error, fixing [ 93.135478][ T5819] bcachefs (loop0): check_topology... [ 93.146635][ T5819] bcachefs (loop0): btree node with incorrect min_key at btree=alloc level=1: [ 93.146652][ T5819] parent: u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 3a29d24e27fd9a2e written 65534 min_key R 0:0:16777215 durability: 1 ptr: 0:178:0 gen 0 [ 93.146664][ T5819] next: u64s 11 type btree_ptr_v2 0:82:0 len 0 ver 0: seq af8d2de42da20fd1 written 16 min_key POS_MIN durability: 1 ptr: 0:141:0 gen 0, fixing [ 93.147097][ T5819] bcachefs (loop0): set_node_min(): u64s 11 type btree_ptr_v2 0:82:0 len 0 ver 0: seq af8d2de42da20fd1 written 16 min_key POS_MIN durability: 1 ptr: 0:141:0 gen 0 -> 0:0:16777215 [ 93.148444][ T5819] bcachefs (loop0): btree node with incorrect min_key at btree=alloc level=1: [ 93.148455][ T5819] parent: u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 3a29d24e27fd9a2e written 65534 min_key R 0:0:16777215 durability: 1 ptr: 0:178:0 gen 0 [ 93.148467][ T5819] prev: u64s 11 type btree_ptr_v2 0:82:0 len 0 ver 0: seq af8d2de42da20fd1 written 16 min_key R 0:0:16777215 durability: 1 ptr: 0:141:0 gen 0 [ 93.148478][ T5819] next: u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 4f44a3ebe7de7b3c written 16 min_key 0:457:1 durability: 1 ptr: 0:174:0 gen 0, fixing [ 93.148757][ T5819] bcachefs (loop0): set_node_min(): u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 4f44a3ebe7de7b3c written 16 min_key 0:457:1 durability: 1 ptr: 0:174:0 gen 0 -> 0:82:1 [ 93.149173][ T5819] bcachefs (loop0): btree root with incorrect min_key: 0:0:16777215 [ 93.149182][ T5819] btree=alloc level=1 u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 3a29d24e27fd9a2e written 65534 min_key R 0:0:16777215 durability: 1 ptr: 0:178:0 gen 0 [ 93.149194][ T5819] btree topology error: [ 93.149606][ T5819] ------------[ cut here ]------------ [ 93.149612][ T5819] kernel BUG at fs/bcachefs/btree_gc.c:528! [ 93.149631][ T5819] Oops: invalid opcode: 0000 [#1] SMP KASAN PTI [ 93.149652][ T5819] CPU: 1 UID: 0 PID: 5819 Comm: syz-executor134 Tainted: G W 6.16.0-syzkaller-06699-ge8d780dcd957 #0 PREEMPT_{RT,(full)} [ 93.149677][ T5819] Tainted: [W]=WARN [ 93.149683][ T5819] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 [ 93.149692][ T5819] RIP: 0010:bch2_btree_repair_topology_recurse+0x52dc/0x52e0 [ 93.149720][ T5819] Code: fd 90 0f 0b e8 c5 21 a7 fd 90 0f 0b e8 bd 21 a7 fd 90 0f 0b e8 b5 21 a7 fd 90 0f 0b e8 ad 21 a7 fd 90 0f 0b e8 a5 21 a7 fd 90 <0f> 0b 66 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f [ 93.149734][ T5819] RSP: 0018:ffffc900049cea60 EFLAGS: 00010293 [ 93.149751][ T5819] RAX: ffffffff8417669b RBX: 00000000fffff6e8 RCX: ffff8880383d9dc0 [ 93.149764][ T5819] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 [ 93.149774][ T5819] RBP: ffffc900049cef90 R08: 0000000000000000 R09: 0000000000000000 [ 93.149785][ T5819] R10: dffffc0000000000 R11: fffffbfff1df4a1f R12: ffff8881422ce700 [ 93.149797][ T5819] R13: dffffc0000000000 R14: 0000000000000000 R15: ffff888042e68000 [ 93.149809][ T5819] FS: 000055558126a380(0000) GS:ffff888126c1c000(0000) knlGS:0000000000000000 [ 93.149824][ T5819] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 93.149836][ T5819] CR2: 0000563e00254ef0 CR3: 00000000341da000 CR4: 00000000003526f0 [ 93.149853][ T5819] Call Trace: [ 93.149859][ T5819] [ 93.149882][ T5819] ? __pfx_bch2_btree_repair_topology_recurse+0x10/0x10 [ 93.149907][ T5819] ? kfree+0x195/0x550 [ 93.149929][ T5819] ? bch2_printbuf_exit+0x6f/0xb0 [ 93.149946][ T5819] ? bch2_check_topology+0x510/0xe00 [ 93.149963][ T5819] ? __bch2_run_recovery_passes+0x395/0x1010 [ 93.149980][ T5819] ? bch2_run_recovery_passes+0x184/0x210 [ 93.150011][ T5819] ? __pfx___do_six_trylock+0x10/0x10 [ 93.150029][ T5819] ? bch2_check_topology+0x57c/0xe00 [ 93.150048][ T5819] ? six_lock_ip_waiter+0xe6/0x170 [ 93.150062][ T5819] ? __pfx_bch2_six_check_for_deadlock+0x10/0x10 [ 93.150089][ T5819] bch2_check_topology+0x692/0xe00 [ 93.150108][ T5819] ? bch2_check_topology+0x57c/0xe00 [ 93.150134][ T5819] ? __pfx_bch2_check_topology+0x10/0x10 [ 93.150151][ T5819] ? __bch2_print+0x176/0x220 [ 93.150177][ T5819] ? __pfx___bch2_print+0x10/0x10 [ 93.150205][ T5819] __bch2_run_recovery_passes+0x395/0x1010 [ 93.150236][ T5819] bch2_run_recovery_passes+0x184/0x210 [ 93.150254][ T5819] bch2_fs_recovery+0x2690/0x3a50 [ 93.150290][ T5819] ? __pfx_bch2_fs_recovery+0x10/0x10 [ 93.150314][ T5819] ? lockdep_unlock+0x89/0x120 [ 93.150334][ T5819] ? validate_chain+0x897/0x2140 [ 93.150359][ T5819] ? __lock_acquire+0xab9/0xd20 [ 93.150382][ T5819] ? do_raw_spin_lock+0x121/0x290 [ 93.150404][ T5819] ? _raw_spin_unlock_irqrestore+0x85/0x110 [ 93.150426][ T5819] ? lockdep_hardirqs_on+0x9c/0x150 [ 93.150445][ T5819] ? _raw_spin_unlock_irqrestore+0xad/0x110 [ 93.150466][ T5819] ? __pfx__raw_spin_unlock_irqrestore+0x10/0x10 [ 93.150485][ T5819] ? do_raw_spin_lock+0x121/0x290 [ 93.150507][ T5819] ? rt_mutex_slowunlock+0x493/0x8a0 [ 93.150529][ T5819] ? lockdep_hardirqs_on+0x9c/0x150 [ 93.150549][ T5819] ? _raw_spin_unlock_irqrestore+0xad/0x110 [ 93.150570][ T5819] ? __pfx_rt_mutex_slowunlock+0x10/0x10 [ 93.150594][ T5819] ? bch2_fs_start+0xa0f/0xda0 [ 93.150612][ T5819] bch2_fs_start+0xaaf/0xda0 [ 93.150628][ T5819] ? bch2_fs_start+0x5e7/0xda0 [ 93.150645][ T5819] ? __pfx_bch2_fs_start+0x10/0x10 [ 93.150669][ T5819] ? sget+0x267/0x620 [ 93.150690][ T5819] bch2_fs_get_tree+0xb39/0x1520 [ 93.150723][ T5819] ? __pfx_bch2_fs_get_tree+0x10/0x10 [ 93.150756][ T5819] ? __pfx_vfs_parse_comma_sep+0x10/0x10 [ 93.150782][ T5819] ? rcu_is_watching+0x15/0xb0 [ 93.150806][ T5819] ? cap_capable+0x11f/0x460 [ 93.150821][ T5819] ? safesetid_security_capable+0xa9/0x1a0 [ 93.150841][ T5819] vfs_get_tree+0x8f/0x2b0 [ 93.150863][ T5819] do_new_mount+0x2a2/0x9e0 [ 93.150888][ T5819] ? ns_capable+0x8a/0xf0 [ 93.150905][ T5819] ? __pfx_do_new_mount+0x10/0x10 [ 93.150928][ T5819] ? path_mount+0x61c/0xfe0 [ 93.150960][ T5819] __se_sys_mount+0x317/0x410 [ 93.150987][ T5819] ? __pfx___se_sys_mount+0x10/0x10 [ 93.151010][ T5819] ? rcu_is_watching+0x15/0xb0 [ 93.151035][ T5819] ? __x64_sys_mount+0x20/0xc0 [ 93.151059][ T5819] do_syscall_64+0xfa/0x3b0 [ 93.151080][ T5819] ? lockdep_hardirqs_on+0x9c/0x150 [ 93.151099][ T5819] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 93.151116][ T5819] ? clear_bhb_loop+0x60/0xb0 [ 93.151134][ T5819] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 93.151149][ T5819] RIP: 0033:0x7ff250a46eaa [ 93.151164][ T5819] 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 [ 93.151177][ T5819] RSP: 002b:00007fffdc384708 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 [ 93.151195][ T5819] RAX: ffffffffffffffda RBX: 00007fffdc384720 RCX: 00007ff250a46eaa [ 93.151207][ T5819] RDX: 0000200000001000 RSI: 0000200000001040 RDI: 00007fffdc384720 [ 93.151218][ T5819] RBP: 0000200000001040 R08: 00007fffdc384760 R09: 0000000000004912 [ 93.151230][ T5819] R10: 0000000000000000 R11: 0000000000000282 R12: 0000200000001000 [ 93.151240][ T5819] R13: 00007fffdc384760 R14: 0000000000000003 R15: 0000000000000000 [ 93.151257][ T5819] [ 93.151262][ T5819] Modules linked in: [ 93.151321][ T5819] ---[ end trace 0000000000000000 ]--- [ 93.151408][ T5819] RIP: 0010:bch2_btree_repair_topology_recurse+0x52dc/0x52e0 [ 93.151432][ T5819] Code: fd 90 0f 0b e8 c5 21 a7 fd 90 0f 0b e8 bd 21 a7 fd 90 0f 0b e8 b5 21 a7 fd 90 0f 0b e8 ad 21 a7 fd 90 0f 0b e8 a5 21 a7 fd 90 <0f> 0b 66 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f [ 93.151445][ T5819] RSP: 0018:ffffc900049cea60 EFLAGS: 00010293 [ 93.151460][ T5819] RAX: ffffffff8417669b RBX: 00000000fffff6e8 RCX: ffff8880383d9dc0 [ 93.151472][ T5819] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 [ 93.151482][ T5819] RBP: ffffc900049cef90 R08: 0000000000000000 R09: 0000000000000000 [ 93.151493][ T5819] R10: dffffc0000000000 R11: fffffbfff1df4a1f R12: ffff8881422ce700 [ 93.151506][ T5819] R13: dffffc0000000000 R14: 0000000000000000 R15: ffff888042e68000 [ 93.151518][ T5819] FS: 000055558126a380(0000) GS:ffff888126c1c000(0000) knlGS:0000000000000000 [ 93.151533][ T5819] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 93.151545][ T5819] CR2: 0000563e00254ef0 CR3: 00000000341da000 CR4: 00000000003526f0 [ 93.151563][ T5819] Kernel panic - not syncing: Fatal exception [ 93.151711][ T5819] Kernel Offset: disabled