[lvc-project] [PATCH] block: Avoid mounting the bdev pseudo-filesystem in userspace
Jens Axboe
axboe at kernel.dk
Tue May 26 19:37:24 MSK 2026
On Thu, 21 May 2026 10:28:56 +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;`
>
> [...]
Applied, thanks!
[1/1] block: Avoid mounting the bdev pseudo-filesystem in userspace
commit: b518ae170f6c411cac2d5f320278c27d902bc628
Best regards,
--
Jens Axboe
More information about the lvc-project
mailing list