[PATCH RFC v3 37/44] zloop: refuse zone files on pseudo filesystems

sashiko-bot at kernel.org sashiko-bot at kernel.org
Mon Nov 16 11:28:19 UTC 2026


> zloop opens its zone files by name below the base directory but a bind
> mount can put any file there, including a procfs or sysfs file. Refuse
> files on pseudo filesystems as zone files just like loop does by
> switching to file_check_backing().
> 
> Note that the helper only accepts regular files. So far zloop took
> anything with ->read_iter() and ->write_iter() as a zone file. That
> includes character devices, FIFOs and block devices if someone put them
> where zloop expects a zone file. Zone files are created by zloop itself
> and zloop truncates them to size and to reset and finish zones which
> only works for regular files. So refuse everything else.
> 
> Reviewed-by: Alexander Mikhalitsyn <alex at amutable.com>
> Reviewed-by: Chris Down <chris at chrisdown.name>
> Tested-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=37




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