./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor1365974115 <...> Warning: Permanently added '10.128.0.86' (ED25519) to the list of known hosts. execve("./syz-executor1365974115", ["./syz-executor1365974115"], 0x7ffd3f7f1d30 /* 10 vars */) = 0 brk(NULL) = 0x555570a13000 brk(0x555570a13d00) = 0x555570a13d00 arch_prctl(ARCH_SET_FS, 0x555570a13380) = 0 set_tid_address(0x555570a13650) = 5079 set_robust_list(0x555570a13660, 24) = 0 rseq(0x555570a13ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor1365974115", 4096) = 28 getrandom("\x38\xc4\xea\x40\xe9\x86\xa4\x51", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555570a13d00 brk(0x555570a34d00) = 0x555570a34d00 brk(0x555570a35000) = 0x555570a35000 mprotect(0x7f1f34d71000, 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./strace-static-x86_64: Process 5080 attached , child_tidptr=0x555570a13650) = 5080 [pid 5080] set_robust_list(0x555570a13660, 24) = 0 [pid 5080] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5080] setpgid(0, 0) = 0 [pid 5080] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5080] write(3, "1000", 4) = 4 [pid 5080] close(3) = 0 executing program [pid 5080] write(1, "executing program\n", 18) = 18 [pid 5080] memfd_create("syzkaller", 0) = 3 [pid 5080] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1f2c800000 [pid 5080] 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 5080] munmap(0x7f1f2c800000, 138412032) = 0 [pid 5080] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5080] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5080] close(3) = 0 [pid 5080] close(4) = 0 [pid 5080] mkdir("./file0", 0777) = 0 syzkaller login: [ 57.969062][ T5080] loop0: detected capacity change from 0 to 32768 [ 58.058223][ T5080] bcachefs (loop0): mounting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,nojournal_transaction_names [ 58.072363][ T5080] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 58.080948][ T5080] ------------[ cut here ]------------ [ 58.086580][ T5080] kernel BUG at fs/bcachefs/replicas.c:28! [ 58.092433][ T5080] Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI [ 58.099465][ T5080] CPU: 1 PID: 5080 Comm: syz-executor136 Not tainted 6.9.0-syzkaller-08284-gea5f6ad9ad96 #0 [ 58.109522][ T5080] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 [ 58.119566][ T5080] RIP: 0010:__replicas_entry_idx+0x331/0x350 [ 58.125560][ T5080] Code: d9 80 e1 07 80 c1 03 38 c1 0f 8c d7 fe ff ff 48 89 df e8 a2 d5 be fd e9 ca fe ff ff e8 68 11 5d fd 90 0f 0b e8 60 11 5d fd 90 <0f> 0b e8 58 11 5d fd 90 0f 0b e8 50 11 5d fd 90 0f 0b 66 2e 0f 1f [ 58.145172][ T5080] RSP: 0018:ffffc9000333ef70 EFLAGS: 00010293 [ 58.151239][ T5080] RAX: ffffffff84391de0 RBX: 0000000000000004 RCX: ffff8880295d3c00 [ 58.159199][ T5080] RDX: 0000000000000000 RSI: 000000000000007f RDI: 0000000000000009 [ 58.167159][ T5080] RBP: 000000000000007f R08: ffffffff84391b58 R09: ffffffff8438288d [ 58.175116][ T5080] R10: 0000000000000007 R11: ffff8880295d3c00 R12: ffff888024a22088 [ 58.183092][ T5080] R13: ffff888024a22088 R14: 0000000000000001 R15: ffff888078a80000 [ 58.191049][ T5080] FS: 0000555570a13380(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 [ 58.199977][ T5080] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 58.206561][ T5080] CR2: 000055d9915fa648 CR3: 0000000023958000 CR4: 00000000003506f0 [ 58.214532][ T5080] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 58.222508][ T5080] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 58.230487][ T5080] Call Trace: [ 58.233762][ T5080] [ 58.236684][ T5080] ? __die_body+0x88/0xe0 [ 58.241015][ T5080] ? die+0xcf/0x110 [ 58.244817][ T5080] ? do_trap+0x15a/0x3a0 [ 58.249054][ T5080] ? __replicas_entry_idx+0x331/0x350 [ 58.254418][ T5080] ? do_error_trap+0x1dc/0x2c0 [ 58.259170][ T5080] ? __replicas_entry_idx+0x331/0x350 [ 58.264528][ T5080] ? __pfx_do_error_trap+0x10/0x10 [ 58.269631][ T5080] ? handle_invalid_op+0x34/0x40 [ 58.274577][ T5080] ? __replicas_entry_idx+0x331/0x350 [ 58.279950][ T5080] ? exc_invalid_op+0x38/0x50 [ 58.284650][ T5080] ? asm_exc_invalid_op+0x1a/0x20 [ 58.289941][ T5080] ? journal_replay_entry_early+0x4d/0x1100 [ 58.295856][ T5080] ? __replicas_entry_idx+0xa8/0x350 [ 58.301401][ T5080] ? __replicas_entry_idx+0x330/0x350 [ 58.306865][ T5080] ? __replicas_entry_idx+0x331/0x350 [ 58.312252][ T5080] bch2_replicas_set_usage+0x2ff/0x710 [ 58.317739][ T5080] ? __pfx___might_resched+0x10/0x10 [ 58.323036][ T5080] ? __pfx_lock_release+0x10/0x10 [ 58.328061][ T5080] ? __pfx_bch2_replicas_set_usage+0x10/0x10 [ 58.334039][ T5080] ? journal_replay_entry_early+0x77/0x1100 [ 58.339927][ T5080] journal_replay_early+0xba/0x4f0 [ 58.345054][ T5080] ? __pfx___mutex_unlock_slowpath+0x10/0x10 [ 58.351058][ T5080] ? __pfx_journal_replay_early+0x10/0x10 [ 58.356802][ T5080] ? bch2_blacklist_table_initialize+0x117/0x400 [ 58.363157][ T5080] ? bch2_latest_compatible_version+0x161/0x180 [ 58.369407][ T5080] ? bch2_recovery_passes_from_stable+0x128/0x140 [ 58.375841][ T5080] bch2_fs_recovery+0x39c2/0x63b0 [ 58.380896][ T5080] ? __pfx_bch2_fs_recovery+0x10/0x10 [ 58.386374][ T5080] ? __pfx_lock_release+0x10/0x10 [ 58.391402][ T5080] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 58.397042][ T5080] ? __pfx_lock_release+0x10/0x10 [ 58.402067][ T5080] ? __mutex_lock+0x2ef/0xd70 [ 58.406787][ T5080] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 58.412441][ T5080] ? bch2_get_next_online_dev+0x4b9/0x4f0 [ 58.418159][ T5080] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 58.423792][ T5080] ? llist_reverse_order+0x72/0x90 [ 58.428918][ T5080] bch2_fs_start+0x356/0x5b0 [ 58.433620][ T5080] bch2_fs_open+0xa8d/0xdf0 [ 58.438146][ T5080] ? __pfx_bch2_fs_open+0x10/0x10 [ 58.443189][ T5080] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 58.449523][ T5080] ? __pfx_bch2_test_super+0x10/0x10 [ 58.454814][ T5080] ? sget+0x2b8/0x620 [ 58.458805][ T5080] ? __pfx_bch2_noset_super+0x10/0x10 [ 58.464187][ T5080] bch2_mount+0x71d/0x1320 [ 58.468617][ T5080] ? __pfx_bch2_mount+0x10/0x10 [ 58.473567][ T5080] ? vfs_parse_fs_string+0x190/0x230 [ 58.478859][ T5080] ? kfree+0x4e/0x3b0 [ 58.482852][ T5080] ? vfs_parse_fs_string+0x190/0x230 [ 58.488148][ T5080] ? __pfx_vfs_parse_fs_string+0x10/0x10 [ 58.493786][ T5080] ? cap_capable+0x1b4/0x250 [ 58.498372][ T5080] legacy_get_tree+0xee/0x190 [ 58.503043][ T5080] ? __pfx_bch2_mount+0x10/0x10 [ 58.507883][ T5080] vfs_get_tree+0x90/0x2a0 [ 58.512293][ T5080] do_new_mount+0x2be/0xb40 [ 58.516910][ T5080] ? ns_capable+0x8a/0xf0 [ 58.521241][ T5080] ? __pfx_do_new_mount+0x10/0x10 [ 58.526267][ T5080] __se_sys_mount+0x2d9/0x3c0 [ 58.530946][ T5080] ? __pfx___se_sys_mount+0x10/0x10 [ 58.536138][ T5080] ? do_syscall_64+0x102/0x240 [ 58.540999][ T5080] ? __x64_sys_mount+0x20/0xc0 [ 58.545778][ T5080] do_syscall_64+0xf5/0x240 [ 58.550285][ T5080] ? clear_bhb_loop+0x35/0x90 [ 58.554960][ T5080] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 58.560851][ T5080] RIP: 0033:0x7f1f34ceddea [ 58.565254][ T5080] 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 [ 58.584871][ T5080] RSP: 002b:00007ffefbf78468 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 [ 58.593319][ T5080] RAX: ffffffffffffffda RBX: 00007ffefbf78480 RCX: 00007f1f34ceddea [ 58.601304][ T5080] RDX: 0000000020011a00 RSI: 0000000020000280 RDI: 00007ffefbf78480 [ 58.609273][ T5080] RBP: 0000000000000004 R08: 00007ffefbf784c0 R09: 00000000000119f8 [ 58.617232][ T5080] R10: 0000000001200014 R11: 0000000000000282 R12: 0000000001200014 [ 58.625190][ T5080] R13: 00007ffefbf784c0 R14: 0000000000000003 R15: 0000000001000000 [ 58.633162][ T5080] [ 58.636164][ T5080] Modules linked in: [ 58.640239][ T5080] ---[ end trace 0000000000000000 ]--- [ 58.645860][ T5080] RIP: 0010:__replicas_entry_idx+0x331/0x350 [ 58.651888][ T5080] Code: d9 80 e1 07 80 c1 03 38 c1 0f 8c d7 fe ff ff 48 89 df e8 a2 d5 be fd e9 ca fe ff ff e8 68 11 5d fd 90 0f 0b e8 60 11 5d fd 90 <0f> 0b e8 58 11 5d fd 90 0f 0b e8 50 11 5d fd 90 0f 0b 66 2e 0f 1f [ 58.671577][ T5080] RSP: 0018:ffffc9000333ef70 EFLAGS: 00010293 [ 58.677682][ T5080] RAX: ffffffff84391de0 RBX: 0000000000000004 RCX: ffff8880295d3c00 [ 58.685709][ T5080] RDX: 0000000000000000 RSI: 000000000000007f RDI: 0000000000000009 [ 58.693683][ T5080] RBP: 000000000000007f R08: ffffffff84391b58 R09: ffffffff8438288d [ 58.701684][ T5080] R10: 0000000000000007 R11: ffff8880295d3c00 R12: ffff888024a22088 [ 58.709719][ T5080] R13: ffff888024a22088 R14: 0000000000000001 R15: ffff888078a80000 [ 58.717778][ T5080] FS: 0000555570a13380(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 [ 58.726773][ T5080] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 58.733348][ T5080] CR2: 000055d9915fa648 CR3: 0000000023958000 CR4: 00000000003506f0 [ 58.741390][ T5080] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 58.749411][ T5080] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 58.757427][ T5080] Kernel panic - not syncing: Fatal exception [ 58.763872][ T5080] Kernel Offset: disabled [ 58.768185][ T5080] Rebooting in 86400 seconds..