bcachefs icon indicating copy to clipboard operation
bcachefs copied to clipboard

FS Crash, kernel BUG at src/fs/bcachefs/vfs/fs.c:983

Open Syntrait opened this issue 2 weeks ago • 0 comments

Hi, I was using bcachefs on my /home partition, and the filesystem went into read-only with a crash. My root partition, which was also bcachefs, was fine.

I was playing a game with my friend, and wanted to backup the save file. I copy and pasted the 3 save files, and after a few seconds, the game crashed. I thought it was a game issue, until I realized things started breaking.

After a reboot, the filesystem mounted fine, and just in case, I did an fsck, it went well and it's up and running.

I also managed to save the last parts of dmesg. I'm not sure if this is a valid bug report or not, though.

dmesg.txt

bcachefs show-super
~> sudo bcachefs show-super /dev/nvme0n1p3
External UUID:                             d5d4dc4b-d6df-4acf-8571-4f26f68352d5
Internal UUID:                             834dd15d-184d-4306-91c4-9a11fd143ca3
Magic number:                              c68573f6-66ce-90a9-d96a-60cf803df7ef
Device index:                              0
Label:                                     (none)
Version:                                   reconcile (1.33)
Incompatible features allowed:             reconcile (1.33)
Incompatible features in use:              reconcile (1.33)
Version upgrade complete:                  reconcile (1.33)
Oldest version on disk:                    inode_has_child_snapshots (1.13)
Created:                                   Sat Jan 25 15:46:47 2025
Sequence number:                           4666
Time of last write:                        Tue Dec  9 00:17:44 2025
Superblock size:                           6.76k/1.00M
Clean:                                     0
Devices:                                   1
Sections:                                  replicas_v0,clean,journal_seq_blacklist,journal_v2,counters,members_v2,errors,ext,downgrade,recovery_passes,extent_type_u64s
Features:                                  journal_seq_blacklist_v3,reflink,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,extents_above_btree_updates,btree_updates_journalled,reflink_inline_data,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes,incompat_version_field,casefolding
Compat features:                           alloc_info,alloc_metadata,extents_above_btree_updates_done,bformat_overflow_done,no_stale_ptrs

Options:
  block_size:                              512
  btree_node_size:                         256k
  errors:                                  continue [fix_safe] panic ro
  write_error_timeout:                     30
  metadata_replicas:                       1
  data_replicas:                           1
  metadata_replicas_required:              1
  data_replicas_required:                  1
  encoded_extent_max:                      64.0k
  metadata_checksum:                       none [crc32c] crc64 xxhash
  data_checksum:                           none [crc32c] crc64 xxhash
  checksum_err_retry_nr:                   3
  compression:                             none
  background_compression:                  none
  str_hash:                                crc32c crc64 [siphash]
  metadata_target:                         none
  foreground_target:                       none
  background_target:                       none
  promote_target:                          none
  erasure_code:                            0
  casefold:                                0
  inodes_32bit:                            1
  shard_inode_numbers_bits:                4
  gc_reserve_percent:                      8
  gc_reserve_bytes:                        0
  root_reserve_percent:                    0
  wide_macs:                               0
  promote_whole_extents:                   1
  acl:                                     1
  usrquota:                                0
  grpquota:                                0
  prjquota:                                0
  degraded:                                [ask] yes very no
  journal_flush_delay:                     1000
  journal_flush_disabled:                  0
  journal_reclaim_delay:                   100
  writeback_timeout:                       0
  journal_transaction_names:               1
  allocator_stuck_timeout:                 30
  version_upgrade:                         compatible [incompatible] none
  nocow:                                   0
  reconcile_on_ac_only:                    0

errors (size 184):
hash_table_key_wrong_offset                 3               Tue Dec  9 00:16:26 2025
need_discard_key_wrong                      28              Thu Nov 20 23:52:09 2025
ptr_to_missing_backpointer                  2725344         Sun Nov 16 13:58:51 2025
backpointer_to_missing_ptr                  3592            Sat Nov 15 23:44:06 2025
alloc_key_data_type_wrong                   29              Wed Oct  1 22:19:22 2025
alloc_key_dirty_sectors_wrong               29              Wed Oct  1 22:19:22 2025
btree_node_topology_bad_min_key             1               Wed Oct  1 22:19:04 2025
accounting_key_junk_at_end                  159156935       Wed Oct  1 17:55:53 2025
backpointer_bucket_offset_wrong             20              Tue Sep 30 17:26:02 2025
vfs_bad_inode_rm                            2               Wed Aug 27 01:14:50 2025
inode_dir_has_nonzero_i_size                752             Wed Jul 30 22:25:31 2025

ext (size 96):
Recovery passes required:
Errors to silently fix:
Btrees with missing data:
Device 0:                                  /dev/nvme0n1p3  WDC PC SN530 SDBPNPZ-512G-1002
  Label:                                   (none)
  UUID:                                    331faff1-577c-4a06-8838-322d5b23983f
  Size:                                    356G
  read errors:                             0
  write errors:                            0
  checksum errors:                         0
  seqread iops:                            0
  seqwrite iops:                           0
  randread iops:                           0
  randwrite iops:                          0
  Bucket size:                             256k
  First bucket:                            0
  Buckets:                                 1460824
  Last mount:                              Tue Dec  9 00:17:36 2025
  Last superblock write:                   4666
  State:                                   rw
  Data allowed:                            journal,btree,user
  Has data:                                journal,btree,user
  Rotational:                              0
  Btree allocated bitmap blocksize:        8.00M
  Btree allocated bitmap:                  0010000000000000000000000000000000000000000000000000100000000101
  Durability:                              1
  Discard:                                 0
  Freespace initialized:                   1
  Resize on mount:                         0
  Last device name:                        nvme0n1p3
  Last device model:

System info:

Distro: Gentoo Linux CPU: AMD Ryzen 5 4600HS GPU: NVIDIA GTX 1650 Ti RAM: 16 GB

Syntrait avatar Dec 08 '25 21:12 Syntrait