./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor107811760 <...> Warning: Permanently added '10.128.0.126' (ED25519) to the list of known hosts. execve("./syz-executor107811760", ["./syz-executor107811760"], 0x7ffebb3f0750 /* 10 vars */) = 0 brk(NULL) = 0x55559514f000 brk(0x55559514fd00) = 0x55559514fd00 arch_prctl(ARCH_SET_FS, 0x55559514f380) = 0 set_tid_address(0x55559514f650) = 5088 set_robust_list(0x55559514f660, 24) = 0 rseq(0x55559514fca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor107811760", 4096) = 27 getrandom("\x66\xfe\x24\x78\x0d\xcb\xa3\x61", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x55559514fd00 brk(0x555595170d00) = 0x555595170d00 brk(0x555595171000) = 0x555595171000 mprotect(0x7ff34d5ab000, 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 memfd_create("syzkaller", 0) = 3 mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ff345000000 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(0x7ff345000000, 138412032) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 close(4) = 0 mkdir("./file0", 0777) = 0 [ 58.734387][ T5088] loop0: detected capacity change from 0 to 32768 [ 58.825077][ T5088] bcachefs (loop0): mounting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=xxhash,str_hash=crc32c,nojournal_transaction_names [ 58.840595][ T5088] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 58.855034][ T5088] ------------[ cut here ]------------ [ 58.860579][ T5088] kernel BUG at fs/bcachefs/alloc_background.h:166! [ 58.867231][ T5088] Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI [ 58.874154][ T5088] CPU: 0 PID: 5088 Comm: syz-executor107 Not tainted 6.9.0-rc6-next-20240503-syzkaller #0 [ 58.884019][ T5088] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 [ 58.894053][ T5088] RIP: 0010:bch2_alloc_v4_invalid+0x9af/0x9c0 [ 58.900122][ T5088] Code: 47 cf f6 fd e9 d7 fb ff ff 44 89 e9 80 e1 07 38 c1 0f 8c 23 fc ff ff 4c 89 ef e8 cc ce f6 fd e9 16 fc ff ff e8 62 20 91 fd 90 <0f> 0b e8 5a 20 91 fd 90 0f 0b 0f 1f 80 00 00 00 00 90 90 90 90 90 [ 58.919720][ T5088] RSP: 0018:ffffc900035be618 EFLAGS: 00010293 [ 58.925770][ T5088] RAX: ffffffff8404f57e RBX: 00000000000000fd RCX: ffff88807c78bc00 [ 58.933721][ T5088] RDX: 0000000000000000 RSI: 00000000000000fd RDI: 00000000000000fa [ 58.941669][ T5088] RBP: 000000000000002d R08: ffffffff8404eca5 R09: 0000000000000000 [ 58.949635][ T5088] R10: 0000000000000000 R11: ffffffff8404ebd0 R12: 000000005770f4b6 [ 58.957583][ T5088] R13: ffffc900035beaa0 R14: ffff8880778c06e8 R15: 1ffff920006b7d45 [ 58.965535][ T5088] FS: 000055559514f380(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 [ 58.974441][ T5088] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 58.981007][ T5088] CR2: 00007ffd24b68da8 CR3: 000000002de70000 CR4: 00000000003506f0 [ 58.988962][ T5088] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 58.996914][ T5088] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 59.004865][ T5088] Call Trace: [ 59.008128][ T5088] [ 59.011040][ T5088] ? __die_body+0x88/0xe0 [ 59.015356][ T5088] ? die+0xcf/0x110 [ 59.019148][ T5088] ? do_trap+0x15a/0x3a0 [ 59.023369][ T5088] ? bch2_alloc_v4_invalid+0x9af/0x9c0 [ 59.028811][ T5088] ? do_error_trap+0x1dc/0x2c0 [ 59.033555][ T5088] ? bch2_alloc_v4_invalid+0x9af/0x9c0 [ 59.038994][ T5088] ? __pfx_do_error_trap+0x10/0x10 [ 59.044087][ T5088] ? handle_invalid_op+0x34/0x40 [ 59.049001][ T5088] ? bch2_alloc_v4_invalid+0x9af/0x9c0 [ 59.054438][ T5088] ? exc_invalid_op+0x38/0x50 [ 59.059102][ T5088] ? asm_exc_invalid_op+0x1a/0x20 [ 59.064109][ T5088] ? __pfx_bch2_alloc_v4_invalid+0x10/0x10 [ 59.069896][ T5088] ? bch2_alloc_v4_invalid+0xd5/0x9c0 [ 59.075249][ T5088] ? bch2_alloc_v4_invalid+0x9ae/0x9c0 [ 59.080690][ T5088] ? bch2_alloc_v4_invalid+0x9af/0x9c0 [ 59.086127][ T5088] ? bch2_alloc_v4_invalid+0x9ae/0x9c0 [ 59.091562][ T5088] ? __bch2_bkey_unpack_key+0x959/0xdd0 [ 59.097085][ T5088] ? bch2_bkey_val_invalid+0xe5/0x1c0 [ 59.102439][ T5088] bch2_btree_node_read_done+0x3e7d/0x5ed0 [ 59.108236][ T5088] ? __pfx_bch2_btree_node_read_done+0x10/0x10 [ 59.114371][ T5088] ? __asan_memcpy+0x40/0x70 [ 59.118948][ T5088] ? __pfx_bch2_bkey_pick_read_device+0x10/0x10 [ 59.125168][ T5088] ? bch2_btree_ptr_v2_to_text+0x209/0x2f0 [ 59.130960][ T5088] btree_node_read_work+0x665/0x1300 [ 59.136237][ T5088] ? __pfx_btree_node_read_work+0x10/0x10 [ 59.141956][ T5088] ? print_irqtrace_events+0x1e0/0x220 [ 59.147392][ T5088] ? lockdep_hardirqs_on+0x99/0x150 [ 59.152570][ T5088] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 59.158440][ T5088] ? __pfx__raw_spin_unlock_irqrestore+0x10/0x10 [ 59.164746][ T5088] ? mean_and_variance_weighted_get_mean+0x73/0xc0 [ 59.171224][ T5088] ? __bch2_time_stats_update+0x2c6/0x370 [ 59.176930][ T5088] bch2_btree_node_read+0x2637/0x2c80 [ 59.182290][ T5088] ? __mutex_unlock_slowpath+0x21d/0x750 [ 59.187901][ T5088] ? __pfx_bch2_btree_node_read+0x10/0x10 [ 59.193619][ T5088] ? __pfx___bch2_btree_node_hash_insert+0x10/0x10 [ 59.200121][ T5088] ? bch2_btree_node_mem_alloc+0x967/0x1210 [ 59.206012][ T5088] ? bch2_btree_node_hash_insert+0x18b/0x1d0 [ 59.211988][ T5088] bch2_btree_root_read+0x61e/0x970 [ 59.217168][ T5088] ? __pfx_bch2_btree_root_read+0x10/0x10 [ 59.222871][ T5088] ? bch2_journal_log_msg+0xda/0x120 [ 59.228137][ T5088] read_btree_roots+0x22d/0x7b0 [ 59.232970][ T5088] bch2_fs_recovery+0x2334/0x36e0 [ 59.237976][ T5088] ? mark_lock+0x9a/0x350 [ 59.242284][ T5088] ? __pfx_bch2_fs_recovery+0x10/0x10 [ 59.247637][ T5088] ? __pfx_lock_acquire+0x10/0x10 [ 59.252639][ T5088] ? bch2_get_next_online_dev+0x48/0x4b0 [ 59.258254][ T5088] ? __pfx_lock_release+0x10/0x10 [ 59.263260][ T5088] ? bch2_get_next_online_dev+0x48/0x4b0 [ 59.268870][ T5088] ? bch2_get_next_online_dev+0x47f/0x4b0 [ 59.274569][ T5088] ? bch2_get_next_online_dev+0x48/0x4b0 [ 59.280183][ T5088] ? llist_reverse_order+0x72/0x90 [ 59.285274][ T5088] bch2_fs_start+0x356/0x5b0 [ 59.289851][ T5088] bch2_fs_open+0xa8d/0xdf0 [ 59.294336][ T5088] ? __pfx_bch2_fs_open+0x10/0x10 [ 59.299341][ T5088] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 59.305649][ T5088] ? __pfx_bch2_test_super+0x10/0x10 [ 59.310914][ T5088] ? sget+0x2b8/0x620 [ 59.314874][ T5088] ? __pfx_bch2_noset_super+0x10/0x10 [ 59.320222][ T5088] bch2_mount+0x71d/0x1320 [ 59.324625][ T5088] ? __pfx_bch2_mount+0x10/0x10 [ 59.329457][ T5088] ? aa_get_newest_label+0xff/0x6f0 [ 59.334634][ T5088] ? vfs_parse_fs_string+0x190/0x230 [ 59.339896][ T5088] ? kfree+0x4e/0x360 [ 59.343859][ T5088] ? vfs_parse_fs_string+0x190/0x230 [ 59.349139][ T5088] legacy_get_tree+0xee/0x190 [ 59.353798][ T5088] ? __pfx_bch2_mount+0x10/0x10 [ 59.358628][ T5088] vfs_get_tree+0x90/0x2a0 [ 59.363024][ T5088] do_new_mount+0x2be/0xb40 [ 59.367502][ T5088] ? ns_capable+0x8a/0xf0 [ 59.371815][ T5088] ? __pfx_do_new_mount+0x10/0x10 [ 59.376842][ T5088] __se_sys_mount+0x2d9/0x3c0 [ 59.381500][ T5088] ? __pfx___se_sys_mount+0x10/0x10 [ 59.386678][ T5088] ? do_syscall_64+0x102/0x240 [ 59.391417][ T5088] ? __x64_sys_mount+0x20/0xc0 [ 59.396159][ T5088] do_syscall_64+0xf5/0x240 [ 59.400639][ T5088] ? clear_bhb_loop+0x35/0x90 [ 59.405292][ T5088] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 59.411165][ T5088] RIP: 0033:0x7ff34d527a3a [ 59.415559][ T5088] 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 [ 59.435157][ T5088] RSP: 002b:00007ffd7ed56fe8 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 [ 59.443559][ T5088] RAX: ffffffffffffffda RBX: 00007ffd7ed57000 RCX: 00007ff34d527a3a [ 59.451534][ T5088] RDX: 0000000020011a00 RSI: 0000000020011a40 RDI: 00007ffd7ed57000 [ 59.459493][ T5088] RBP: 0000000000000004 R08: 00007ffd7ed57040 R09: 00000000000119ee [ 59.467445][ T5088] R10: 0000000000200014 R11: 0000000000000282 R12: 0000000000200014 [ 59.475398][ T5088] R13: 00007ffd7ed57040 R14: 0000000000000003 R15: 0000000001000000 [ 59.483356][ T5088] [ 59.486351][ T5088] Modules linked in: [ 59.490413][ T5088] ---[ end trace 0000000000000000 ]--- [ 59.495921][ T5088] RIP: 0010:bch2_alloc_v4_invalid+0x9af/0x9c0 [ 59.502047][ T5088] Code: 47 cf f6 fd e9 d7 fb ff ff 44 89 e9 80 e1 07 38 c1 0f 8c 23 fc ff ff 4c 89 ef e8 cc ce f6 fd e9 16 fc ff ff e8 62 20 91 fd 90 <0f> 0b e8 5a 20 91 fd 90 0f 0b 0f 1f 80 00 00 00 00 90 90 90 90 90 [ 59.521691][ T5088] RSP: 0018:ffffc900035be618 EFLAGS: 00010293 [ 59.527815][ T5088] RAX: ffffffff8404f57e RBX: 00000000000000fd RCX: ffff88807c78bc00 [ 59.535823][ T5088] RDX: 0000000000000000 RSI: 00000000000000fd RDI: 00000000000000fa [ 59.543877][ T5088] RBP: 000000000000002d R08: ffffffff8404eca5 R09: 0000000000000000 [ 59.551867][ T5088] R10: 0000000000000000 R11: ffffffff8404ebd0 R12: 000000005770f4b6 [ 59.559853][ T5088] R13: ffffc900035beaa0 R14: ffff8880778c06e8 R15: 1ffff920006b7d45 [ 59.567859][ T5088] FS: 000055559514f380(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 [ 59.576809][ T5088] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 59.583408][ T5088] CR2: 00007ffd24b68da8 CR3: 000000002de70000 CR4: 00000000003506f0 [ 59.591376][ T5088] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 59.599359][ T5088] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 59.607361][ T5088] Kernel panic - not syncing: Fatal exception [ 59.613681][ T5088] Kernel Offset: disabled [ 59.617987][ T5088] Rebooting in 86400 seconds..