Re: [PATCH] loop: reject binding to procfs and sysfs files
From: Christoph Hellwig
Date: Mon Jun 01 2026 - 03:11:23 EST
On Sat, May 30, 2026 at 10:48:17PM +0900, Tetsuo Handa wrote:
> Writing to pseudo files via /dev/loopX might also cause undesirable
> results.
So don't do it.
> Therefore, explicitly reject binding to pseudo files on procfs
> and sysfs for now. Other filesystems can be appended as needed.
NAK. If people want to do these stupid things we should allow it.
Hardcoding random superblock magics in random drivers is never a good
idea.