FS#56404 - [linux] Using bcache will destroy filesystems (4.14.X)

Attached to Project: Arch Linux
Opened by Ville Aakko (Wild_Penguin) - Tuesday, 21 November 2017, 21:09 GMT
Last edited by Jan Alexander Steffens (heftig) - Wednesday, 22 November 2017, 12:45 GMT
Task Type Bug Report
Category Kernel
Status Closed
Assigned To Tobias Powalowski (tpowa)
Jan Alexander Steffens (heftig)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: Using bcache will destroy filesystems.

Mine was destroyed by a regular boot after upgrading to 4.14.0-2-ARCH and just booting up (the root filesystem was on a bcache backed filesystem).

Note that this involves also 4.14.1!

A relevant Gentoo bug report: https://bugs.gentoo.org/638206


Additional info:
This happened on 4.14.0-2-ARCH (not sure of the exact package version, since my root FS and logs are currently unavailable)

Steps to reproduce:
Use bcache partitions created on a earlier Kernel. Expect breakage, wish you have good backups.
This task depends upon

Closed by  Jan Alexander Steffens (heftig)
Wednesday, 22 November 2017, 12:45 GMT
Reason for closing:  Fixed
Additional comments about closing:  4.14.1-2
Comment by loqs (loqs) - Tuesday, 21 November 2017, 21:12 GMT
Patch is queued for 4.14.2 https://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git/tree/queue-4.14/bio-ensure-__bio_clone_fast-copies-bi_partno.patch as this causes data loss at least for bcache
please consider pulling it and doing a new release.

Loading...