diff options
| author | Miklos Szeredi <mszeredi@redhat.com> | 2026-04-02 15:49:09 +0300 |
|---|---|---|
| committer | Miklos Szeredi <mszeredi@redhat.com> | 2026-06-15 15:06:18 +0300 |
| commit | 48649c0603bd355fb1d2c26ed4b6f635146278ea (patch) | |
| tree | 6d2160f9d3795c3669e52a9dc43e615ebda0dd2c /include/linux/debugobjects.h | |
| parent | c0f817320d6afc8c609400e235f6f16636ed871b (diff) | |
| download | linux-48649c0603bd355fb1d2c26ed4b6f635146278ea.tar.xz | |
fuse: alloc pqueue before installing fch in fuse_dev
Prior to this patchset, fuse_dev (containing fuse_pqueue) was allocated on
mount. But now fuse_dev is allocated when opening /dev/fuse, even though
the queues are not needed at that time.
Delay allocation of the pqueue (4k worth of list_head) just before mounting
or cloning a device.
Various distributions (e.g. Debian/Fedora) configure /dev/fuse as world
writable, so the pqueue allocation should be deferred to a privileged
operation (mount) to prevent unprivileged userspace from consuming pinned
kernel memory.
[Li Wang: fix kernel NULL pointer dereference in fuse_uring_add_to_pq()]
[Fix race in fuse_dev_release()]
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
