Open Madouura opened 7 months ago
Your subject refers to an error that isn't in the log - do you still have that log too?
What kernel version are you on?
What kernel version are you on?
It's in the title, Linux 6.7-rc4.
do you still have that log too?
I've rebooted (and fsck'd) since then, do I just get it from journalctl
or dmesg
?
Well, since it went emergency RO, systemd journal wouldn't have been able to save it, alas.
You'll have to wait for it to happen again, then grab it from dmesg (without rebooting!) and save it manually - e.g. by scping it to another machine.
I just got basically the same thing on 6.9.7
[449036.160447] about to insert invalid key in data update path
[449036.160454] old: u64s 10 type extent 134514883:1776:U32_MAX len 16 ver 64804986: durability: 2 crc: c_size 8 size 16 offset 0 nonce 0 csum chacha20_poly1305_80 compress lz4 ptr: 6:567152:528 gen 1 ptr: 7:668446:520 gen 1 rebalance: target hdd compression zstd:15
[449036.160458] k: u64s 10 type extent 134514883:1784:U32_MAX len 16 ver 64805228: durability: 2 crc: c_size 8 size 16 offset 0 nonce 0 csum chacha20_poly1305_80 compress lz4 ptr: 6:567152:536 gen 1 ptr: 7:668446:528 gen 1 rebalance: target hdd compression zstd:15
[449036.160462] new: u64s 14 type extent 134514883:1776:U32_MAX len 8 ver 64805228: durability: 2 crc: c_size 8 size 16 offset 0 nonce 0 csum chacha20_poly1305_80 compress lz4 ptr: 6:567152:536 gen 1 cached ptr: 7:668446:528 gen 1 cached rebalance: target hdd compression zstd:15 crc: c_size 8 size 16 offset 8 nonce 0 csum chacha20_poly1305_80 compress zstd ptr: 3:182418:40 gen 6 ptr: 2:1286464:424 gen 2
[449036.163824] bcachefs (f7fa14ed-5a8e-4b14-b39a-8b5c21f8bc25): fatal error - emergency read only
[449036.164289] ------------[ cut here ]------------
[449036.164292] kernel BUG at fs/bcachefs/io_write.c:532!
[449036.164718] invalid opcode: 0000 [#1] PREEMPT SMP NOPTI
[449036.165141] CPU: 8 PID: 562219 Comm: kworker/u80:0 Not tainted 6.9.7-arch1-1 #1 44783200744f92500e6484c6d93590bc19db4a83
[449036.165620] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
[449036.166077] Workqueue: bcachefs bch2_write_point_do_index_updates [bcachefs]
[449036.166633] RIP: 0010:__bch2_write_index+0x26d/0x270 [bcachefs]
[449036.167188] Code: 09 e8 97 d0 03 00 5a eb 88 be 1e 00 00 00 44 89 e7 e8 07 5b fc ff 84 c0 0f 85 73 ff ff ff 4d 8b b5 38 01 00 00 e9 50 ff ff ff <0f> 0b 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 66 0f 1f
[449036.168192] RSP: 0018:ffff9ffae3643e00 EFLAGS: 00010246
[449036.168699] RAX: ffff93c80df58428 RBX: 0000000000000010 RCX: 0000000000000010
[449036.169218] RDX: ffff93c80df58428 RSI: 0000000000000009 RDI: 0098093cc893ffff
[449036.169747] RBP: ffff93c815200000 R08: 0000000000000000 R09: 00000000113d99fc
[449036.170280] R10: 047b703c2f843f00 R11: 00047b703c2f843f R12: 0000000000000000
[449036.170835] R13: ffff93c80df58298 R14: ffff93c80df583e0 R15: dead000000000100
[449036.171383] FS: 0000000000000000(0000) GS:ffff93cf5fa00000(0000) knlGS:0000000000000000
[449036.171940] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[449036.172502] CR2: 000064e240a4dfe0 CR3: 000000011e37c000 CR4: 0000000000350ef0
[449036.173078] Call Trace:
[449036.173653] <TASK>
[449036.174226] ? __die_body.cold+0x19/0x27
[449036.174819] ? die+0x2e/0x50
[449036.175404] ? do_trap+0xca/0x110
[449036.175991] ? do_error_trap+0x6a/0x90
[449036.176596] ? __bch2_write_index+0x26d/0x270 [bcachefs aa0637810d467c8e6cf072acf6a70476543ba202]
[449036.177281] ? exc_invalid_op+0x50/0x70
[449036.177933] ? __bch2_write_index+0x26d/0x270 [bcachefs aa0637810d467c8e6cf072acf6a70476543ba202]
[449036.178798] ? asm_exc_invalid_op+0x1a/0x20
[449036.179485] ? __bch2_write_index+0x26d/0x270 [bcachefs aa0637810d467c8e6cf072acf6a70476543ba202]
[449036.180215] bch2_write_point_do_index_updates+0xb9/0x160 [bcachefs aa0637810d467c8e6cf072acf6a70476543ba202]
[449036.180964] process_one_work+0x18e/0x350
[449036.181631] worker_thread+0x2eb/0x410
[449036.182314] ? __pfx_worker_thread+0x10/0x10
[449036.183011] kthread+0xd2/0x100
[449036.183720] ? __pfx_kthread+0x10/0x10
[449036.184412] ret_from_fork+0x34/0x50
[449036.185095] ? __pfx_kthread+0x10/0x10
[449036.185781] ret_from_fork_asm+0x1a/0x30
[449036.186477] </TASK>
[449036.187215] Modules linked in: tcp_diag udp_diag inet_diag xt_conntrack nft_chain_nat xt_MASQUERADE nf_nat bridge stp llc xfrm_user xfrm_algo xt_addrtype nft_compat nf_tables overlay nf_conntrack_netlink wireguard curve25519_x86_64 libchacha20poly1305 nf_conntrack libcurve25519_generic ip6_udp_tunnel nf_defrag_ipv6 udp_tunnel nf_defrag_ipv4 nfnetlink_acct tls nfsv4 dns_resolver cbc cts rpcsec_gss_krb5 nfs netfs rpcrdma rdma_cm iw_cm ib_cm ib_core poly1305_generic libpoly1305 poly1305_x86_64 chacha_generic chacha_x86_64 libchacha bcachefs lz4hc_compress lz4_compress xor raid6_pq libcrc32c intel_rapl_msr intel_rapl_common snd_hda_codec_generic snd_hda_intel crct10dif_pclmul snd_intel_dspcfg crc32_pclmul snd_intel_sdw_acpi polyval_clmulni polyval_generic snd_hda_codec gf128mul ghash_clmulni_intel snd_hda_core sha512_ssse3 snd_hwdep iTCO_wdt sha256_ssse3 intel_pmc_bxt snd_pcm sha1_ssse3 iTCO_vendor_support snd_timer aesni_intel joydev cfg80211 snd mousedev crypto_simd i2c_i801 psmouse pcspkr cryptd soundcore rfkill
[449036.187360] i2c_smbus lpc_ich mac_hid nfsd nfs_acl tcp_bbr lockd auth_rpcgss grace ptp_kvm ptp pps_core sunrpc dm_mod tun loop nfnetlink vsock_loopback vmw_vsock_virtio_transport_common vmw_vsock_vmci_transport vsock vmw_vmci qemu_fw_cfg ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 hid_generic usbhid virtio_net serio_raw virtio_scsi net_failover virtio_console failover atkbd virtio_balloon virtio_rng virtio_blk libps2 vivaldi_fmap bochs nvme drm_vram_helper crc32c_intel nvme_core drm_ttm_helper intel_agp nvme_auth virtio_pci xhci_pci ttm i8042 virtio_pci_legacy_dev intel_gtt xhci_pci_renesas virtio_pci_modern_dev serio
[449036.196839] ---[ end trace 0000000000000000 ]---
I have older kernel logs since my rootfs isn't bcachefs, however I can't see anything relevent to this.
Unsure if this is relevant but I get a strange "compressed and incompressible extents" listing in
$ cat /sys/fs/bcachefs/f7fa14ed-5a8e-4b14-b39a-8b5c21f8bc25/compression_stats
type compressed uncompressed average extent size
none 1.24 GiB 1.24 GiB 5.18 KiB
lz4_old 0 B 0 B 0 B
gzip 0 B 0 B 0 B
lz4 5.25 GiB 6.80 GiB 49.5 KiB
zstd 148 GiB 251 GiB 46.1 KiB
incompressible 1.07 TiB 1.07 TiB 34.5 KiB
7066 compressed & incompressible extents
After a reboot, the filesystem mounted without issue, the compressed and incompressible extents stayed (6859 of them).
Not really sure what caused this.
bcachefs-tools
is on 1.3.3.bcachefs show-super
dmesg