[PATCH RFC v3 42/44] erofs: refuse files on pseudo filesystems as backing files

sashiko-bot at kernel.org sashiko-bot at kernel.org
Mon Nov 16 11:25:21 UTC 2026


> File-backed mounts take any regular file as the image and the same goes
> for the extra devices of such a mount. erofs reads them with the
> credentials of the mounter so this doesn't hand out anything the mounter
> couldn't read anyway. But files on pseudo filesystems aren't images.
> Refuse them just like loop does.
> 
> file_check_backing() also checks that the file is open for reading. So
> a source file descriptor that erofs can't read from fails the mount
> right away instead of on the first read.
> 
> Reviewed-by: Gao Xiang <xiang at kernel.org>
> Reviewed-by: Alexander Mikhalitsyn <alex at amutable.com>
> Reviewed-by: Chris Down <chris at chrisdown.name>
> Signed-off-by: Christian Brauner (Amutable) <brauner at kernel.org>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261116-work-loop-pseudo-v3-0-8cbbea1cf34f@kernel.org?part=42




More information about the Linux-security-module-archive mailing list