[14701.188596] bcachefs5.sh (5541): drop_caches: 3 [14701.659761] bcachefs5.sh (5541): drop_caches: 3 [14703.796447] bcachefs5.sh (5541): drop_caches: 3 [14703.811361] __bch2_read_endio: 115 callbacks suppressed [14703.811365] bcachefs (dm-0 inum 4812 offset 864256): data checksum error: expected 0:aa506e0d got 0:c0602356 (type crc32c) [14703.814660] bcachefs (dm-0 inum 4812 offset 1126400): data checksum error: expected 0:7d282ac4 got 0:2b7d2fb3 (type crc32c) [14703.815272] bcachefs (dm-0 inum 4812 offset 1191936): data checksum error: expected 0:530a2d07 got 0:4d82df20 (type crc32c) [14703.823627] bcachefs (dm-0 inum 4812 offset 3133440): data checksum error: expected 0:de1f3329 got 0:7c5bbdae (type crc32c) [14703.827005] bcachefs (dm-0 inum 4812 offset 3551232): data checksum error: expected 0:85cec08f got 0:769245b8 (type crc32c) [14703.829213] bcachefs (dm-0 inum 4812 offset 3616768): data checksum error: expected 0:ba7c1369 got 0:32f21396 (type crc32c) [14703.838588] bcachefs (dm-0 inum 4812 offset 7024640): data checksum error: expected 0:a0a71b6 got 0:33d92dad (type crc32c) [14703.858474] bcachefs (dm-0 inum 4812 offset 14102528): data checksum error: expected 0:a984d290 got 0:30542d42 (type crc32c) [14703.863049] bcachefs (dm-0 inum 4812 offset 15269888): data checksum error: expected 0:1b4a3326 got 0:fc3084c (type crc32c) [14703.866111] bcachefs (dm-0 inum 4812 offset 15675392): data checksum error: expected 0:37fd97cb got 0:74904b35 (type crc32c) [14706.138416] bcachefs (2562f115-8ea3-4daa-96c9-1429f54a1727): error validating btree node on dm-0 at btree alloc level 0/1 [14706.138420] u64s 12 type btree_ptr_v2 1:2683:0 len 0 ver 0: seq 6c1698f0696bfc68 written 232 min_key 1:1940:1 durability: 2 ptr: 0:95:0 gen 2 ptr: 1:95:0 gen 2 [14706.138421] node offset 120 bset u64s 2600: invalid checksum [14706.144241] BUG: kernel NULL pointer dereference, address: 0000000000000018 [14706.144246] #PF: supervisor write access in kernel mode [14706.144248] #PF: error_code(0x0002) - not-present page [14706.144250] PGD 0 P4D 0 [14706.144253] Oops: 0002 [#1] PREEMPT SMP [14706.144258] CPU: 2 PID: 2061 Comm: kworker/u8:2 Not tainted 6.3.0 #1 [14706.144264] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 [14706.144265] Workqueue: writeback wb_workfn (flush-bcachefs-44) [14706.144294] RIP: 0010:try_alloc_bucket+0x159/0x4d0 [bcachefs] [14706.144361] Code: af e0 48 89 df e8 37 38 02 00 48 8b 3b e8 af 72 05 00 48 8b 85 48 ff ff ff 66 83 b8 9a 00 00 00 00 75 0b 48 8b 85 50 ff ff ff <80> 60 18 bf 4c 89 ee 48 89 df e8 08 84 02 00 4c 89 e7 e8 f0 b6 09 [14706.144363] RSP: 0018:ffff8881810f6f60 EFLAGS: 00010246 [14706.144368] RAX: 0000000000000000 RBX: ffff8881810f78b0 RCX: 0000000000000001 [14706.144370] RDX: 000000000000004b RSI: 0000000000000000 RDI: 0000000000000000 [14706.144371] RBP: ffff8881810f7110 R08: 0000000000000021 R09: 000000000000000b [14706.144373] R10: 0000000000000000 R11: 0000000000000800 R12: ffff8881810f6ff8 [14706.144374] R13: ffff8881810f7058 R14: ffff8881944c0000 R15: fffffffffffffffb [14706.144376] FS: 0000000000000000(0000) GS:ffff8881fad00000(0000) knlGS:0000000000000000 [14706.144380] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [14706.144382] CR2: 0000000000000018 CR3: 0000000183584003 CR4: 0000000000060ea0 [14706.144384] Call Trace: [14706.144398] [14706.144399] ? bch2_btree_node_iter_advance+0x72/0x170 [bcachefs] [14706.144419] ? __bch2_btree_path_set_pos+0x165/0x420 [bcachefs] [14706.144442] ? bch2_bucket_alloc_freelist+0x246/0x350 [bcachefs] [14706.144459] bch2_bucket_alloc_freelist+0x246/0x350 [bcachefs] [14706.144478] bch2_bucket_alloc_trans+0x1a6/0x360 [bcachefs] [14706.144497] bch2_bucket_alloc_set_trans+0xfc/0x340 [bcachefs] [14706.144517] __open_bucket_add_buckets+0x2da/0x500 [bcachefs] [14706.144535] open_bucket_add_buckets+0x51/0x120 [bcachefs] [14706.144554] bch2_alloc_sectors_start_trans+0x63c/0x820 [bcachefs] [14706.144572] ? bch2_btree_path_traverse_one+0x7cc/0x9c0 [bcachefs] [14706.144594] ? kvm_clock_read+0x14/0x30 [14706.144610] ? kvm_sched_clock_read+0x5/0x10 [14706.144613] ? bch2_trans_begin+0x347/0x540 [bcachefs] [14706.144635] __bch2_write+0x1a9/0x1320 [bcachefs] [14706.144668] ? krealloc+0x93/0xe0 [14706.144678] ? bch2_trans_mark_inode+0x4d/0x60 [bcachefs] [14706.144702] ? run_one_mem_trigger+0x190/0x1a0 [bcachefs] [14706.144725] ? __bch2_write+0x140/0x1320 [bcachefs] [14706.144749] ? __bch2_writepage+0x3c1/0x8b0 [bcachefs] [14706.144773] __bch2_writepage+0x3c1/0x8b0 [bcachefs] [14706.144803] write_cache_pages+0x155/0x330 [14706.144811] ? bch2_truncate_folios+0x60/0x60 [bcachefs] [14706.144836] bch2_writepages+0x43/0xb0 [bcachefs] [14706.144861] do_writepages+0xa4/0x150 [14706.144864] __writeback_single_inode+0x2c/0x190 [14706.144868] writeback_sb_inodes+0x1bb/0x430 [14706.144871] wb_writeback.isra.0+0x4e/0x160 [14706.144875] wb_workfn+0x8b/0x2f0 [14706.144878] ? psi_task_switch+0xe9/0x1a0 [14706.144893] ? __switch_to_asm+0x2a/0x50 [14706.144900] ? finish_task_switch.isra.0+0x84/0x270 [14706.144909] ? __schedule+0x215/0x550 [14706.144915] process_one_work+0x1a7/0x330 [14706.144918] worker_thread+0x46/0x3b0 [14706.144920] ? rescuer_thread+0x390/0x390 [14706.144922] kthread+0xc2/0xf0 [14706.144925] ? kthread_complete_and_exit+0x20/0x20 [14706.144928] ret_from_fork+0x1f/0x30 [14706.144931] [14706.144931] Modules linked in: brd dm_flakey sha256_ssse3 sha256_generic libsha256 bcachefs xor lz4_compress zstd_compress zstd_decompress zstd_common mean_and_variance zlib_deflate raid6_pq lz4_decompress libcrc32c skcipher dm_mod binfmt_misc nfsd auth_rpcgss oid_registry nfs_acl nfs lockd grace sunrpc ipv6 af_packet qxl drm_ttm_helper ttm drm_kms_helper syscopyarea mousedev sysfillrect sysimgblt drm drm_panel_orientation_quirks cfbfillrect cfbimgblt evdev sha512_ssse3 pcspkr cfbcopyarea sha512_generic fb font fbdev virtio_rng virtio_balloon rng_core qemu_fw_cfg button ext4 crc32c_generic crc16 mbcache jbd2 sd_mod t10_pi crc64_rocksoft crc_t10dif crct10dif_generic crct10dif_common crc64 virtio_scsi virtio_net scsi_mod net_failover bsg failover scsi_common crc32c_intel crypto_hash cryptomgr crypto_algapi crypto psmouse i2c_core virtio_pci virtio virtio_pci_legacy_dev virtio_pci_modern_dev virtio_ring [last unloaded: brd] [14706.145009] CR2: 0000000000000018 [14706.145010] ---[ end trace 0000000000000000 ]--- [14706.145014] RIP: 0010:try_alloc_bucket+0x159/0x4d0 [bcachefs] [14706.145033] Code: af e0 48 89 df e8 37 38 02 00 48 8b 3b e8 af 72 05 00 48 8b 85 48 ff ff ff 66 83 b8 9a 00 00 00 00 75 0b 48 8b 85 50 ff ff ff <80> 60 18 bf 4c 89 ee 48 89 df e8 08 84 02 00 4c 89 e7 e8 f0 b6 09 [14706.145035] RSP: 0018:ffff8881810f6f60 EFLAGS: 00010246 [14706.145037] RAX: 0000000000000000 RBX: ffff8881810f78b0 RCX: 0000000000000001 [14706.145038] RDX: 000000000000004b RSI: 0000000000000000 RDI: 0000000000000000 [14706.145039] RBP: ffff8881810f7110 R08: 0000000000000021 R09: 000000000000000b [14706.145041] R10: 0000000000000000 R11: 0000000000000800 R12: ffff8881810f6ff8 [14706.145042] R13: ffff8881810f7058 R14: ffff8881944c0000 R15: fffffffffffffffb [14706.145044] FS: 0000000000000000(0000) GS:ffff8881fad00000(0000) knlGS:0000000000000000 [14706.145047] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [14706.145049] CR2: 0000000000000018 CR3: 0000000183584003 CR4: 0000000000060ea0 [14706.145051] note: kworker/u8:2[2061] exited with irqs disabled [14706.145063] ------------[ cut here ]------------ [14706.145064] WARNING: CPU: 2 PID: 2061 at kernel/exit.c:814 do_exit+0x74b/0x8f0 [14706.145119] Modules linked in: brd dm_flakey sha256_ssse3 sha256_generic libsha256 bcachefs xor lz4_compress zstd_compress zstd_decompress zstd_common mean_and_variance zlib_deflate raid6_pq lz4_decompress libcrc32c skcipher dm_mod binfmt_misc nfsd auth_rpcgss oid_registry nfs_acl nfs lockd grace sunrpc ipv6 af_packet qxl drm_ttm_helper ttm drm_kms_helper syscopyarea mousedev sysfillrect sysimgblt drm drm_panel_orientation_quirks cfbfillrect cfbimgblt evdev sha512_ssse3 pcspkr cfbcopyarea sha512_generic fb font fbdev virtio_rng virtio_balloon rng_core qemu_fw_cfg button ext4 crc32c_generic crc16 mbcache jbd2 sd_mod t10_pi crc64_rocksoft crc_t10dif crct10dif_generic crct10dif_common crc64 virtio_scsi virtio_net scsi_mod net_failover bsg failover scsi_common crc32c_intel crypto_hash cryptomgr crypto_algapi crypto psmouse i2c_core virtio_pci virtio virtio_pci_legacy_dev virtio_pci_modern_dev virtio_ring [last unloaded: brd] [14706.145180] CPU: 2 PID: 2061 Comm: kworker/u8:2 Tainted: G D 6.3.0 #1 [14706.145183] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 [14706.145184] Workqueue: writeback wb_workfn (flush-bcachefs-44) [14706.145188] RIP: 0010:do_exit+0x74b/0x8f0 [14706.145199] Code: bb 30 04 00 00 31 f6 e8 13 e3 ff ff e9 10 fe ff ff 4c 89 e6 bf 05 06 00 00 e8 11 bb 00 00 e9 c3 f9 ff ff 0f 0b e9 da f8 ff ff <0f> 0b e9 0f f9 ff ff 48 89 df e8 46 fc 08 00 e9 85 fa ff ff 48 89 [14706.145200] RSP: 0018:ffff8881810f7ee8 EFLAGS: 00010282 [14706.145202] RAX: 0000000400000000 RBX: ffff888184ce6c00 RCX: 0000000000000000 [14706.145203] RDX: 0000000000000001 RSI: 0000000000002710 RDI: ffff888188674a40 [14706.145205] RBP: ffff888192077c00 R08: 80000000ffff04b5 R09: 2073717269206874 [14706.145206] R10: 6c62617369642073 R11: 7172692068746977 R12: 0000000000000009 [14706.145208] R13: ffff888188674a40 R14: 0000000000000000 R15: 0000000000000000 [14706.145209] FS: 0000000000000000(0000) GS:ffff8881fad00000(0000) knlGS:0000000000000000 [14706.145214] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [14706.145215] CR2: 0000000000000018 CR3: 0000000183584003 CR4: 0000000000060ea0 [14706.145217] Call Trace: [14706.145218] [14706.145219] make_task_dead+0x74/0x160 [14706.145222] rewind_stack_and_make_dead+0x17/0x20 [14706.145225] RIP: 0000:0x0 [14706.145228] Code: Unable to access opcode bytes at 0xffffffffffffffd6. [14706.145229] RSP: 0000:0000000000000000 EFLAGS: 00000000 ORIG_RAX: 0000000000000000 [14706.145231] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 [14706.145233] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 [14706.145234] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [14706.145235] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [14706.145236] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [14706.145238] [14706.145239] ---[ end trace 0000000000000000 ]---