Data Centre


'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, APAC Editor


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


More from The Register

In defence of online ads: The 'net ain't free and you ain't paying

Something for the Weekend, Sir? Selling England by the pound

Automated payment machines do NOT work the same all over the world – as I found out

Something for the Weekend, Sir? Standing on a dusty highway, waving my nozzle in the breeze

No, seriously, why are you holding your phone like that?

Something for the Weekend, Sir? Don't panic but you might just be French

Every step you take: We track you for your own safety, you know?

Something for the Weekend, Sir? Amazon CEO is pruning my roses

Want to know what an organisation is really like? Visit the restroom

Something for the Weekend, Sir? You can learn a lot about a biz from its bogs

Your software hates you and your devices think you're stupid

Something for the Weekend, Sir? If you find our user interfaces unintuitive, that's YOUR problem, chum

Is your smart device a bit thick? It's about to get a lot worse

Something for the Weekend, Sir? Don't trust consumers with their own data

Best thing about a smart toilet? You can take your mobile in without polluting it

Something for the Weekend, Sir? It really makes you sit and think, doesn't it?

Kill the blockchain! It'll make you fitter in the long run, honest

Something for the Weekend, Sir? Trashy ideas return to whence they came

Blame everything on 'computer error' – no one will contradict you

Something for the Weekend, Sir? Sorry I slept in but my computer didn't make me go to bed early