Data Centre

Storage

'Urgent data corruption issue' destroys filesystems in Linux 4.14

Using bcache to speed Linux 4.14? Stop if you want your data to live

By Simon Sharwood

54 SHARE

A filesystem-eating bug has been found in Linux 4.14.

First reported last week by developer Pavel Goran, the problem struck bcache, a tool that lets one use a solid state disk drive as a read/write cache for another drive. bcache is often used to store data from a slow disk on faster media.

Goran noticed the problem after trying to upgrade Gentoo from version 4.13 of the Linux kernel to version 4.14. During that effort he noticed “reads from the bcache device produce different data in 4.14 and 4.13.”

After plenty of analysis, he concluded that “this looks like a very serious bug that can corrupt or completely destroy the data on bcache devices.

Others agreed with Goran, as his report quickly made its way onto the Gentoo bugs list and was later identified as having the following cause:

A new field was introduced in 74d46992e0d9, bi_partno, instead of using bdev->bd_contains and encoding the partition information in the bi_bdev field. __bio_clone_fast was changed to copy the disk information, but not the partition information. At minimum, this regressed bcache and caused data corruption.

A fix has since been implemented and will appear in Linux 4.14.1 and eventually Linux 4.15, which is due in about two months. ®

Sign up to our NewsletterGet IT in your inbox daily

54 Comments

More from The Register

Malware scum want to build a Linux botnet using Mirai

Hadoop YARN is the attack vector, so lock it away

Arch Linux PDF reader package poisoned

Trust nobody: abandoned code was adopted by a miscreant

Hackers uncork experimental Linux-targeting malware

SSH... it's Shishiga

Google Play Store spews malware onto 9 million 'Droids

How did these get through the net?

Thought Macbooks were expensive? Dell UK unveils the 7 meeeellion pound laptop

Includes a £3m discount. Excludes VAT and delivery

They said yes, grins Dell Technologies: Expects to go public this month

Class V shareholders agree to sell or swap the stock

Dell's hokey cokey IPO takes new turn – VMware in, VMware out....

Investor roadshow delayed as Mick D considers alternative plan

You dirty DRAC: IT bods uncover Dell server firmware security slip

Weakness not easy to leverage, but iDRAC exploit would mean game over for admins

Dell melts in face of investor dissent, ups offer for Class V stock

Guess what happens? Stockholders thaw to idea of cashing in

STIBP, collaborate and listen: Linus floats Linux kernel that 'fixes' Intel CPUs' Spectre slowdown

Meanwhile: Another kernel dev is 'unfscking' the source code, with predictable results