|
|
Log in / Subscribe / Register

When and why to deprecate filesystems

When and why to deprecate filesystems

Posted Mar 7, 2022 18:48 UTC (Mon) by error27 (guest, #8346)
Parent article: When and why to deprecate filesystems

I think it was Eric Biederman who proposed that some file systems should only compile under User Mode Linux. That's config which let's you create an executable kernel which you can boot with ./linux. Then you would mount the image from the UML kernel and export it over NFS or whatever to the real kernel.

The advantage is if the UML kernel crashes, that's just an application. It doesn't take down your whole system. The disadvantage is that it would be slower but if it's a USB disk, then it's not going to be fast in the first place. We would only do this for less used and less trusted filesystems.

It wouldn't be super hard to create a set of tools which would remove the complexity for the user. Everyone who hears the idea is like, "Yes. That sounds very easy to do from a technical perspective which makes it too boring to do." So no one has implemented the idea. But it's a good idea.


to post comments

When and why to deprecate filesystems

Posted Mar 7, 2022 19:13 UTC (Mon) by willy (subscriber, #9762) [Link]

That does nothing to remove the maintenance costs of each filesystem. It makes the badly maintained filesystems less insecure (to a certain extent ... they can still exfiltrate data).

When and why to deprecate filesystems

Posted Mar 7, 2022 19:39 UTC (Mon) by Cyberax (✭ supporter ✭, #52523) [Link]

These days it's probably better to just use FUSE for that. It's far easier to program with. It's also unlikely that you'll need high performance from these kinds of filesystems.

When and why to deprecate filesystems

Posted Mar 7, 2022 20:03 UTC (Mon) by dezgeg (guest, #92243) [Link]

It in fact has been implemented in LKL (Linux Kernel Library) - where the kernel is compiled as a userspace library, which then is used to implement a FUSE filesystem which can mount any filesystem supported by the kernel (lklfuse).

Sadly, last commit seems to be from 2020: https://github.com/lkl/linux

When and why to deprecate filesystems

Posted Mar 8, 2022 11:24 UTC (Tue) by eru (subscriber, #2753) [Link] (1 responses)

Is UML still a thing? Its web page (http://user-mode-linux.sourceforge.net/) talks about kernel 2.6...

When and why to deprecate filesystems

Posted Mar 8, 2022 13:05 UTC (Tue) by geert (subscriber, #98403) [Link]

Plenty of activity, cfr. http://lists.infradead.org/pipermail/linux-um/.
Looks like it's not yet archived on lore.kernel.org, though.

When and why to deprecate filesystems

Posted Mar 12, 2022 19:27 UTC (Sat) by rwmj (subscriber, #5474) [Link]

libguestfs does this (albeit with qemu rather than UML). In fact its purpose is to provide a secure enclave where filesystem exploits (both kernel and userspace) cannot affect the host.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds