bcachefs (loop0): check_topology... done bcachefs (loop0): accounting_read... done bcachefs (loop0): alloc_read... done bcachefs (loop0): stripes_read... done bcachefs (loop0): snapshots_read... done bcachefs (loop0): check_allocations... done bcachefs (loop0): going read-write bcachefs (loop0): done starting filesystem FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 1 CPU: 0 UID: 0 PID: 5104 Comm: syz.0.0 Not tainted 6.12.0-rc4-syzkaller-00047-gc2ee9f594da8 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 fail_dump lib/fault-inject.c:53 [inline] should_fail_ex+0x3b0/0x4e0 lib/fault-inject.c:154 should_failslab+0xac/0x100 mm/failslab.c:46 slab_pre_alloc_hook mm/slub.c:4038 [inline] slab_alloc_node mm/slub.c:4114 [inline] __do_kmalloc_node mm/slub.c:4263 [inline] __kmalloc_node_track_caller_noprof+0xda/0x440 mm/slub.c:4283 __do_krealloc mm/slab_common.c:1220 [inline] krealloc_noprof+0x88/0x120 mm/slab_common.c:1269 bch2_printbuf_make_room+0x1f1/0x350 fs/bcachefs/printbuf.c:59 bch2_prt_vprintf+0x25b/0x700 fs/bcachefs/printbuf.c:169 __bch2_fsck_err+0x2c1/0x15f0 fs/bcachefs/error.c:263 bch2_bucket_ref_update+0x8ae/0x12d0 fs/bcachefs/buckets.c:469 __mark_pointer fs/bcachefs/buckets.c:551 [inline] bch2_trigger_pointer fs/bcachefs/buckets.c:590 [inline] __trigger_extent+0x1173/0x4fa0 fs/bcachefs/buckets.c:740 bch2_trigger_extent+0x585/0xaa0 fs/bcachefs/buckets.c:869 bch2_key_trigger fs/bcachefs/bkey_methods.h:87 [inline] run_one_trans_trigger fs/bcachefs/btree_trans_commit.c:507 [inline] run_btree_triggers+0xc91/0x1270 fs/bcachefs/btree_trans_commit.c:540 bch2_trans_commit_run_triggers fs/bcachefs/btree_trans_commit.c:572 [inline] __bch2_trans_commit+0x369/0x93c0 fs/bcachefs/btree_trans_commit.c:1057 bch2_trans_commit fs/bcachefs/btree_update.h:184 [inline] bch2_extent_update+0x4c0/0xbb0 fs/bcachefs/io_write.c:325 bch2_write_index_default fs/bcachefs/io_write.c:373 [inline] __bch2_write_index+0xed2/0x2140 fs/bcachefs/io_write.c:526 __bch2_write+0x56c1/0x5e30 fs/bcachefs/io_write.c:1506 bch2_write+0x9b5/0x1760 fs/bcachefs/io_write.c:1634 closure_queue include/linux/closure.h:270 [inline] closure_call include/linux/closure.h:432 [inline] bch2_dio_write_loop fs/bcachefs/fs-io-direct.c:532 [inline] bch2_direct_write+0x1afb/0x31a0 fs/bcachefs/fs-io-direct.c:655 bch2_write_iter+0x18e/0x23f0 fs/bcachefs/fs-io-buffered.c:1030 iter_file_splice_write+0xbfa/0x1510 fs/splice.c:743 do_splice_from fs/splice.c:941 [inline] direct_splice_actor+0x11b/0x220 fs/splice.c:1164 splice_direct_to_actor+0x586/0xc80 fs/splice.c:1108 do_splice_direct_actor fs/splice.c:1207 [inline] do_splice_direct+0x289/0x3e0 fs/splice.c:1233 do_sendfile+0x561/0xe10 fs/read_write.c:1388 __do_sys_sendfile64 fs/read_write.c:1455 [inline] __se_sys_sendfile64+0x17c/0x1e0 fs/read_write.c:1441 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f606997dff9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f606a76d038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f6069b35f80 RCX: 00007f606997dff9 RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000005 RBP: 00007f606a76d090 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000800000009 R11: 0000000000000246 R12: 0000000000000002 R13: 0000000000000000 R14: 00007f6069b35f80 R15: 00007ffd8090d4e8 Oops: general protection fault, probably for non-canonical address 0xdffffc001fffffff: 0000 [#1] PREEMPT SMP KASAN NOPTI KASAN: probably user-memory-access in range [0x00000000fffffff8-0x00000000ffffffff] CPU: 0 UID: 0 PID: 5104 Comm: syz.0.0 Not tainted 6.12.0-rc4-syzkaller-00047-gc2ee9f594da8 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:__bch2_fsck_err+0x321/0x15f0 fs/bcachefs/error.c:267 Code: 03 49 bd 00 00 00 00 00 fc ff df 43 8a 04 2e 84 c0 0f 85 3b 11 00 00 8b 9c 24 0c 01 00 00 ff cb 4c 01 e3 48 89 d8 48 c1 e8 03 <42> 8a 04 28 84 c0 0f 85 3a 11 00 00 0f b6 1b bf 3f 00 00 00 89 de RSP: 0018:ffffc9000b3c5340 EFLAGS: 00010207 RAX: 000000001fffffff RBX: 00000000ffffffff RCX: 1ffff92001678a88 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000020 RBP: ffffc9000b3c5500 R08: ffffffff8443df6d R09: 00000000ffffffff R10: dffffc0000000000 R11: fffffbfff1d4a3e3 R12: 0000000000000000 R13: dffffc0000000000 R14: 1ffff92001678a89 R15: ffffc9000b3c544c FS: 00007f606a76d6c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fffd1466d78 CR3: 000000004145a000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bch2_bucket_ref_update+0x8ae/0x12d0 fs/bcachefs/buckets.c:469 __mark_pointer fs/bcachefs/buckets.c:551 [inline] bch2_trigger_pointer fs/bcachefs/buckets.c:590 [inline] __trigger_extent+0x1173/0x4fa0 fs/bcachefs/buckets.c:740 bch2_trigger_extent+0x585/0xaa0 fs/bcachefs/buckets.c:869 bch2_key_trigger fs/bcachefs/bkey_methods.h:87 [inline] run_one_trans_trigger fs/bcachefs/btree_trans_commit.c:507 [inline] run_btree_triggers+0xc91/0x1270 fs/bcachefs/btree_trans_commit.c:540 bch2_trans_commit_run_triggers fs/bcachefs/btree_trans_commit.c:572 [inline] __bch2_trans_commit+0x369/0x93c0 fs/bcachefs/btree_trans_commit.c:1057 bch2_trans_commit fs/bcachefs/btree_update.h:184 [inline] bch2_extent_update+0x4c0/0xbb0 fs/bcachefs/io_write.c:325 bch2_write_index_default fs/bcachefs/io_write.c:373 [inline] __bch2_write_index+0xed2/0x2140 fs/bcachefs/io_write.c:526 __bch2_write+0x56c1/0x5e30 fs/bcachefs/io_write.c:1506 bch2_write+0x9b5/0x1760 fs/bcachefs/io_write.c:1634 closure_queue include/linux/closure.h:270 [inline] closure_call include/linux/closure.h:432 [inline] bch2_dio_write_loop fs/bcachefs/fs-io-direct.c:532 [inline] bch2_direct_write+0x1afb/0x31a0 fs/bcachefs/fs-io-direct.c:655 bch2_write_iter+0x18e/0x23f0 fs/bcachefs/fs-io-buffered.c:1030 iter_file_splice_write+0xbfa/0x1510 fs/splice.c:743 do_splice_from fs/splice.c:941 [inline] direct_splice_actor+0x11b/0x220 fs/splice.c:1164 splice_direct_to_actor+0x586/0xc80 fs/splice.c:1108 do_splice_direct_actor fs/splice.c:1207 [inline] do_splice_direct+0x289/0x3e0 fs/splice.c:1233 do_sendfile+0x561/0xe10 fs/read_write.c:1388 __do_sys_sendfile64 fs/read_write.c:1455 [inline] __se_sys_sendfile64+0x17c/0x1e0 fs/read_write.c:1441 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f606997dff9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f606a76d038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f6069b35f80 RCX: 00007f606997dff9 RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000005 RBP: 00007f606a76d090 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000800000009 R11: 0000000000000246 R12: 0000000000000002 R13: 0000000000000000 R14: 00007f6069b35f80 R15: 00007ffd8090d4e8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__bch2_fsck_err+0x321/0x15f0 fs/bcachefs/error.c:267 Code: 03 49 bd 00 00 00 00 00 fc ff df 43 8a 04 2e 84 c0 0f 85 3b 11 00 00 8b 9c 24 0c 01 00 00 ff cb 4c 01 e3 48 89 d8 48 c1 e8 03 <42> 8a 04 28 84 c0 0f 85 3a 11 00 00 0f b6 1b bf 3f 00 00 00 89 de RSP: 0018:ffffc9000b3c5340 EFLAGS: 00010207 RAX: 000000001fffffff RBX: 00000000ffffffff RCX: 1ffff92001678a88 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000020 RBP: ffffc9000b3c5500 R08: ffffffff8443df6d R09: 00000000ffffffff R10: dffffc0000000000 R11: fffffbfff1d4a3e3 R12: 0000000000000000 R13: dffffc0000000000 R14: 1ffff92001678a89 R15: ffffc9000b3c544c FS: 00007f606a76d6c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f606a74c9a0 CR3: 000000004145a000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess), 1 bytes skipped: 0: 49 bd 00 00 00 00 00 movabs $0xdffffc0000000000,%r13 7: fc ff df a: 43 8a 04 2e mov (%r14,%r13,1),%al e: 84 c0 test %al,%al 10: 0f 85 3b 11 00 00 jne 0x1151 16: 8b 9c 24 0c 01 00 00 mov 0x10c(%rsp),%ebx 1d: ff cb dec %ebx 1f: 4c 01 e3 add %r12,%rbx 22: 48 89 d8 mov %rbx,%rax 25: 48 c1 e8 03 shr $0x3,%rax * 29: 42 8a 04 28 mov (%rax,%r13,1),%al <-- trapping instruction 2d: 84 c0 test %al,%al 2f: 0f 85 3a 11 00 00 jne 0x116f 35: 0f b6 1b movzbl (%rbx),%ebx 38: bf 3f 00 00 00 mov $0x3f,%edi 3d: 89 de mov %ebx,%esi