LWN: Comments on "Another Linux capabilities hole found" https://lwn.net/Articles/328572/ This is a special feed containing comments posted to the individual LWN article titled "Another Linux capabilities hole found". en-us Sat, 01 Nov 2025 03:19:07 +0000 Sat, 01 Nov 2025 03:19:07 +0000 https://www.rssboard.org/rss-specification lwn@lwn.net Ever further off topic :) https://lwn.net/Articles/329664/ https://lwn.net/Articles/329664/ nix <div class="FormattedComment"> Of course Linux caches file data: in fact it won't work without it. <br> Absolutely everything that gets put in a page in memory (all file data, <br> anonymous mmaped pages, you name it) has to pass through the page cache <br> first. Executables *run* from the page cache: their text pages reside <br> nowhere else.<br> <p> There *is* a cache of disk blocks (the buffer cache), but these days it's <br> used pretty much entirely for metadata (as this doesn't necessarily have a <br> page in memory devoted to it).<br> <p> </div> Wed, 22 Apr 2009 22:57:13 +0000 Ever further off topic :) https://lwn.net/Articles/329510/ https://lwn.net/Articles/329510/ mjthayer <div class="FormattedComment"> Does Linux actually cache file data, or only block data? I would have thought that user space filesystem latency could be reduced quite a bit by clever caching - the kernel caches data from file reads (with a bit of read-ahead), and writes to files, and sends them to the user space filesystem as a package. If the filesystem has an underlying block device, this could be done shortly before the block device cache is due to be flushed.<br> </div> Wed, 22 Apr 2009 09:20:25 +0000 Another Linux capabilities hole found https://lwn.net/Articles/328969/ https://lwn.net/Articles/328969/ i3839 <div class="FormattedComment"> Local network latency is very low, much lower than hard disk latencies. Throughput is about 100 MB/s, as fast as fast hard disks. The only reason it's slower is because there's a slow local fs at the other end.<br> <p> Fundamental issue is that programs use system calls to communicate with the outside world, and most of those system calls deal (sometimes indirectly) with files. For a network filesystem client going through the kernel, then to userspace and back again is just a stupid way of doing something relatively simple.<br> <p> To sum up, network filesystem clients are in-kernel for all the same reasons why normal filesystems are in-kernel. For network fs servers it's a slightly different trade-off.<br> <p> </div> Sat, 18 Apr 2009 17:05:14 +0000 Another Linux capabilities hole found https://lwn.net/Articles/328810/ https://lwn.net/Articles/328810/ mjthayer <div class="FormattedComment"> Are these fundamental issues though, or things that can be fixed? Bearing in mind, as I said, that a network fs will be slower than a local one anyway (until networks reach the speed of a local bus that is...) And do you think that it would still be good to keep network filesystems in the kernel if it were possible to put them in user space?<br> </div> Fri, 17 Apr 2009 07:44:32 +0000 Another Linux capabilities hole found https://lwn.net/Articles/328694/ https://lwn.net/Articles/328694/ ajb <div class="FormattedComment"> There are other non-kernel nfs implementations. vesta (vestasys.org) has one which they claim is faster than the in-kernel implementation. There is also <a href="http://nfs-ganesha.sourceforge.net/">http://nfs-ganesha.sourceforge.net/</a><br> </div> Thu, 16 Apr 2009 14:48:29 +0000 Another Linux capabilities hole found https://lwn.net/Articles/328693/ https://lwn.net/Articles/328693/ bfields Also, note the problem here was on the *server* side, not the client. And the question of why the server is in the kernel is also interesting, but irrelevant in this case since the userspace server was equally affected by this bug--the userspace server uses setfsuid(), which uses the same mask bits as the in-kernel nfsd is using. Thu, 16 Apr 2009 14:45:43 +0000 Another Linux capabilities hole found https://lwn.net/Articles/328674/ https://lwn.net/Articles/328674/ Cyberax <div class="FormattedComment"> FUSE is not ready to replace native filesystems. It's far slower than real in-kernel FS, less powerful and can have some consistency problems.<br> </div> Thu, 16 Apr 2009 11:55:00 +0000 Another Linux capabilities hole found https://lwn.net/Articles/328650/ https://lwn.net/Articles/328650/ mjthayer <div class="FormattedComment"> I wonder why we still need network filesystems in the kernel? The traditional reason was to allow for using nfs as a root partition, but surely with FUSE and an initramfs (and perhaps a bit of work to make them usable in this context) this is no longer such an important reason? And given the inherent latency of a network filesystem, the extra performance can't be a valid reason either.<br> <p> Disclaimer: I am speaking as a naive outsider, not a clueful kernel dev.<br> </div> Thu, 16 Apr 2009 08:48:38 +0000