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

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

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 Tech: We have a plan B for bog standard IPO

Contingency plan in place if VMware investors don't like reverse merger proposal

Docker fave Alpine Linux suffers bug miscreants can exploit to poison containers

Now that's poetic, Justicz: Update apk and images now

Russian malware harvesting Telegram Desktop creds, chats

Python programmer may have outed himself on YouTube

Dell in-houses production, dumps Celestica in Ireland

Exclusive When Irish-made drives are migrating

Dell EMC plucks Tech Data distie man Tomlin to run UK channels

Updated Latest exec hired to make the direct sales conflict go away

FBI fingers North Korea for two malware strains

'Joanap' and 'Brambul' harvest info about your systems and send it home