[lvc-project] [PATCH] block: Avoid mounting the bdev pseudo-filesystem in userspace
Christoph Hellwig
hch at infradead.org
Mon May 25 09:07:18 MSK 2026
On Thu, May 21, 2026 at 10:28:56AM +0300, Denis Arefev wrote:
> The bdev pseudo-filesystem is an internal kernel filesystem with which
> userspace should not interfere. Unregister it so that userspace cannot
> even attempt to mount it.
>
> This fixes a bug [1] that occurs when attempting to access files,
> because the system call move_mount() uses pointers declared in the
> inode_operations structure, which for the bdev pseudo-filesystem
> are always equal to 0. `inode->i_op = &empty_iops;`
Looks good:
Reviewed-by: Christoph Hellwig <hch at lst.de>
More information about the lvc-project
mailing list