[PATCH RFC 39/41] usb: gadget: f_mass_storage: refuse files on pseudo filesystems
sashiko-bot at kernel.org
sashiko-bot at kernel.org
Tue Nov 10 09:28:59 UTC 2026
> fsg_lun_open() takes any regular file as the backing file of a LUN. The
> file-storage kthread then reads and writes it with kernel_read() and
> kernel_write() on behalf of the USB host. With a procfs or sysfs file
> behind a LUN the host gets to read and write kernel interfaces with
> kernel credentials. Refuse files on pseudo filesystems just like loop
> does.
>
> 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/20261110-work-loop-pseudo-v1-0-4c998976c6c7@kernel.org?part=39
More information about the Linux-security-module-archive
mailing list