By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
World of SoftwareWorld of SoftwareWorld of Software
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Search
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
Reading: Linus Torvalds Expresses His Hatred For Case-Insensitive File-Systems
Share
Sign In
Notification Show More
Font ResizerAa
World of SoftwareWorld of Software
Font ResizerAa
  • Software
  • Mobile
  • Computing
  • Gadget
  • Gaming
  • Videos
Search
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Have an existing account? Sign In
Follow US
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
World of Software > Computing > Linus Torvalds Expresses His Hatred For Case-Insensitive File-Systems
Computing

Linus Torvalds Expresses His Hatred For Case-Insensitive File-Systems

News Room
Last updated: 2025/04/25 at 9:45 AM
News Room Published 25 April 2025
Share
SHARE

Linus Torvalds is sharing some of his classic and straight-to-the-point wisdom today over file-systems with case-folding / case-insensitive file and folder support.

Stemming from Bcachefs having discovered broken case-folding support for its implementation and now submitted to be fixed this week for Linux 6.15, Linus has written a lengthy post on the Linux kernel mailing list to outline his views on such case folding functionality.

This current Bcachefs case-folding issue also isn’t the first time Linux file-systems have seen problems with case-folding. In the past there have been past issues such as case folding behavior with emojis and other special Unicode characters.

Broken SSD

Linus Torvalds wrote on the LKML his feelings around file-system case folding for case-insensitive files/folders:

“The only lesson to be learned is that filesystem people never learn.

Case-insensitive names are horribly wrong, and you shouldn’t have done them at all. The problem wasn’t the lack of testing, the problem was implementing it in the first place.

The problem is then compounded by “trying to do it right”, and in the process doing it horrible wrong indeed, because “right” doesn’t exist, but trying to will make random bytes have very magical meaning.

And btw, the tests are all completely broken anyway. Last I saw, they didn’t actually test for all the really interesting cases – the ones that cause security issues in user land.

Security issues like “user space checked that the filename didn’t match some security-sensitive pattern”. And then the shit-for-brains filesystem ends up matching that pattern *anyway*, because the people who do case insensitivity *INVARIABLY* do things like ignore non-printing characters, so now “case insensitive” also means “insensitive to other things too”.

For examples of this, see commits

5c26d2f1d3f5 (“unicode: Don’t special case ignorable code points”)

and

231825b2e1ff (“Revert “unicode: Don’t special case ignorable code points””)

and cry.

Hint: ❤ and ❤️ are two unicode characters that differ only in ignorable code points. And guess what? The cray-cray incompetent people who want those two to compare the same will then also have other random – and perhaps security-sensitive – files compare the same, just because they have ignorable code points in them.

So now every single user mode program that checks that they don’t touch special paths is basically open to being fooled into doing things they explicitly checked they shouldn’t be doing. And no, that isn’t something unusual or odd. *Lots* of programs do exactly that.

Dammit. Case sensitivity is a BUG. The fact that filesystem people *still* think it’s a feature, I cannot understand. It’s like they revere the old FAT filesystem _so_ much that they have to recreate it – badly.”

Classic Linus sharing his technical feelings directly to the point.

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Twitter Email Print
Share
What do you think?
Love0
Sad0
Happy0
Sleepy0
Angry0
Dead0
Wink0
Previous Article The other blue sky is geting tons of traffic
Next Article Everybody wants to buy Chrome
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

248.1k Like
69.1k Follow
134k Pin
54.3k Follow

Latest News

US passes bill that could lead to TikTok ban, leaving the app with an uncertain fate · TechNode
Computing
Musk calls for new political party amid criticism of Trump megabill
News
Certina’s new DS-X is one of the best affordable adventure watches around | Stuff
Gadget
Tencent acquires two ByteDance gaming studios · TechNode
Computing

You Might also Like

Computing

US passes bill that could lead to TikTok ban, leaving the app with an uncertain fate · TechNode

4 Min Read
Computing

Tencent acquires two ByteDance gaming studios · TechNode

1 Min Read
Computing

11 Alibaba apps begin development for Huawei HarmonyOS · TechNode

1 Min Read
Computing

New AI Model Promises INSANELY Good Aesthetic AI Photos | HackerNoon

11 Min Read
//

World of Software is your one-stop website for the latest tech news and updates, follow us now to get the news that matters to you.

Quick Link

  • Privacy Policy
  • Terms of use
  • Advertise
  • Contact

Topics

  • Computing
  • Software
  • Press Release
  • Trending

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

World of SoftwareWorld of Software
Follow US
Copyright © All Rights Reserved. World of Software.
Welcome Back!

Sign in to your account

Lost your password?