LWN: Comments on "Removing the kthread freezer?" https://lwn.net/Articles/752588/ This is a special feed containing comments posted to the individual LWN article titled "Removing the kthread freezer?". en-us Sat, 08 Nov 2025 09:15:47 +0000 Sat, 08 Nov 2025 09:15:47 +0000 https://www.rssboard.org/rss-specification lwn@lwn.net Removing the kthread freezer? https://lwn.net/Articles/753909/ https://lwn.net/Articles/753909/ mcgrof <div class="FormattedComment"> The notes from the session:<br> <p> <a href="https://lkml.kernel.org/r/20180426212243.GA27853@wotan.suse.de">https://lkml.kernel.org/r/20180426212243.GA27853@wotan.su...</a><br> </div> Tue, 08 May 2018 18:57:27 +0000 nasty ioctl() https://lwn.net/Articles/753053/ https://lwn.net/Articles/753053/ amir73il <div class="FormattedComment"> FYI, the "nasty ioctl()" is LOOP_CHANGE_FD:<br> <a href="https://mirrors.edge.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.4-rc1/2.6.4-rc1-mm1/broken-out/LOOP_CHANGE_FD.patch">https://mirrors.edge.kernel.org/pub/linux/kernel/people/a...</a> <br> <p> Not only can one use this ioctl to change the filesystem dependency graph, but it could also be used by an evil privileged user to loop a device into a backing file that is created inside the file system that is mounted on the loop device itself. Don't try this at home..<br> <p> If we had a dependency graph, LOOP_CHANGE_FD can be fixed to not allow creating loops in the graph.<br> </div> Sun, 29 Apr 2018 08:31:58 +0000 Removing the kthread freezer? https://lwn.net/Articles/752909/ https://lwn.net/Articles/752909/ neilbrown <div class="FormattedComment"> <font class="QuotedText">&gt; so containers can get leaks from the parent's domain.</font><br> <p> Leaks of what, exactly?<br> Leaks of the list of existing devices?<br> Leaks of a list of which devices are mounted - any maybe which filesystem. Don't need to expose options is sysfs, they already appear in /proc/mounts.<br> <p> Maybe there would be leaks, but without being specific they are hard to reason about.<br> <p> In sysfs there is a file I can write to which removes a disk drive from the system. Does that mean someone in a container can already unplug someone else's disk drive?<br> <p> </div> Fri, 27 Apr 2018 02:41:39 +0000 Removing the kthread freezer? https://lwn.net/Articles/752820/ https://lwn.net/Articles/752820/ Cyberax <div class="FormattedComment"> I would guess that /sys is not namespace-aware, so containers can get leaks from the parent's domain.<br> <p> Perhaps /proc is a better place?<br> </div> Thu, 26 Apr 2018 08:08:34 +0000 Removing the kthread freezer? https://lwn.net/Articles/752811/ https://lwn.net/Articles/752811/ neilbrown <div class="FormattedComment"> <font class="QuotedText">&gt; Nice except for the naming problem, and the information leak.</font><br> <p> Every filesystem has a bdi, and every bdi has a unique name. Maybe some filesytems have multiple bdi, but they can choose one. Actually, every filesystem has a unique st_dev, does it not?<br> <p> <font class="QuotedText">&gt; /sys does a reasonable job for hardware but once we get into software abstractions it can be a real drag on maintenance.</font><br> <p> Seems to work well enough for md, which can be seen extremely simple filesystem - certainly not hardware. All of /sys/devices/virtual isn't hardware (though some bits are closer than other bits).<br> Now I confess that md is represented in /sys/devices in an unfortunate way - it should have its own bus rather hang just hanging off block devices - so it shouldn't serve as a model. It can serve as an existence proof though.<br> <p> Can you say more about the "information leak" issue?<br> <p> Thanks.<br> <p> </div> Thu, 26 Apr 2018 03:03:27 +0000 Removing the kthread freezer? https://lwn.net/Articles/752808/ https://lwn.net/Articles/752808/ ebiederm <div class="FormattedComment"> Nice except for the naming problem, and the information leak.<br> <p> /sys does a reasonable job for hardware but once we get into software abstractions it can be a real drag on maintenance.<br> <p> Placing filesystem instances in sysfs does not seem like a good idea at all.<br> <p> </div> Wed, 25 Apr 2018 22:40:31 +0000 Removing the kthread freezer? https://lwn.net/Articles/752797/ https://lwn.net/Articles/752797/ neilbrown <div class="FormattedComment"> <font class="QuotedText">&gt; It would have nodes for filesystems and devices, with edges that describe the dependencies between them</font><br> <p> Maybe we will, at last, get individual filesystems appearing in /sys/devices - with symlinks for dependencies. That would be nice.<br> <p> </div> Wed, 25 Apr 2018 21:01:08 +0000