1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/fs/fuse
Linus Torvalds ebb0f38bb4 fs/pipe: fix pipe buffer index use in FUSE
This was another case that Rasmus pointed out where the direct access to
the pipe head and tail pointers broke on 32-bit configurations due to
the type changes.

As with the pipe FIONREAD case, fix it by using the appropriate helper
functions that deal with the right pipe index sizing.

Reported-by: Rasmus Villemoes <ravi@prevas.dk>
Link: https://lore.kernel.org/all/878qpi5wz4.fsf@prevas.dk/
Fixes: 3d252160b8 ("fs/pipe: Read pipe->{head,tail} atomically outside pipe->mutex")Cc: Oleg >
Cc: Mateusz Guzik <mjguzik@gmail.com>
Cc: K Prateek Nayak <kprateek.nayak@amd.com>
Cc: Swapnil Sapkal <swapnil.sapkal@amd.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2025-03-06 07:53:25 -10:00
..
acl.c fuse: support idmapped ->set_acl 2024-09-04 16:51:11 +02:00
control.c [tree-wide] finally take no_llseek out 2024-09-27 08:18:43 -07:00
cuse.c fuse: remove pages for requests and exclusively use folios 2024-11-05 14:08:35 +01:00
dax.c fuse: make args->in_args[0] to be always the header 2025-01-24 11:54:02 +01:00
dev.c fs/pipe: fix pipe buffer index use in FUSE 2025-03-06 07:53:25 -10:00
dev_uring.c fuse: prevent disabling io-uring on active connections 2025-01-27 18:02:23 +01:00
dev_uring_i.h fuse: {io-uring} Prevent mount point hang on fuse-server termination 2025-01-27 18:02:21 +01:00
dir.c fuse: don't truncate cached, mutated symlink 2025-02-20 15:48:17 +01:00
file.c fuse: revert back to __readahead_folio() for readahead 2025-02-14 10:49:23 +01:00
fuse_dev_i.h fuse: {io-uring} Make fuse_dev_queue_{interrupt,forget} non-static 2025-01-27 18:01:22 +01:00
fuse_i.h fuse: block request allocation until io-uring init is complete 2025-01-27 18:02:23 +01:00
fuse_trace.h fuse: add simple request tracepoints 2024-08-29 11:43:13 +02:00
inode.c fuse: block request allocation until io-uring init is complete 2025-01-27 18:02:23 +01:00
ioctl.c fuse: remove pages for requests and exclusively use folios 2024-11-05 14:08:35 +01:00
iomode.c fuse: fix parallel dio write on file open in passthrough mode 2024-04-15 10:12:44 +02:00
Kconfig fuse: {io-uring} Handle SQEs - register commands 2025-01-24 11:54:08 +01:00
Makefile fuse: {io-uring} Handle SQEs - register commands 2025-01-24 11:54:08 +01:00
passthrough.c backing-file: clean up the API 2024-11-11 10:45:03 +01:00
readdir.c fuse: check attributes staleness on fuse_iget() 2024-11-18 12:24:13 +01:00
sysctl.c treewide: const qualify ctl_tables where applicable 2025-01-28 13:48:37 +01:00
virtio_fs.c virtio: features, fixes, cleanups 2024-11-27 13:11:58 -08:00
xattr.c fuse: make args->in_args[0] to be always the header 2025-01-24 11:54:02 +01:00