linux-brain/fs/fuse
Miklos Szeredi 710c33adef fuse: verify attributes
commit eb59bd17d2fa6e5e84fba61a5ebdea984222e6d5 upstream.

If a filesystem returns negative inode sizes, future reads on the file were
causing the cpu to spin on truncate_pagecache.

Create a helper to validate the attributes.  This now does two things:

 - check the file mode
 - check if the file size fits in i_size without overflowing

Reported-by: Arijit Banerjee <arijit@rubrik.com>
Fixes: d8a5ba4545 ("[PATCH] FUSE - core")
Cc: <stable@vger.kernel.org> # v2.6.14
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-12-13 08:52:36 +01:00
..
acl.c fuse: Support fuse filesystems outside of init_user_ns 2018-03-20 17:11:44 +01:00
control.c fuse: use READ_ONCE on congestion_threshold and max_background 2019-11-20 18:47:53 +01:00
cuse.c fuse: fix memleak in cuse_channel_open 2019-10-11 18:21:20 +02:00
dev.c fuse: fix deadlock with aio poll and fuse_iqueue::waitq.lock 2019-10-05 13:10:13 +02:00
dir.c fuse: verify attributes 2019-12-13 08:52:36 +01:00
file.c fuse: truncate pending writes on O_TRUNC 2019-11-06 13:06:13 +01:00
fuse_i.h fuse: verify attributes 2019-12-13 08:52:36 +01:00
inode.c fuse: fix deadlock with aio poll and fuse_iqueue::waitq.lock 2019-10-05 13:10:13 +02:00
Kconfig fuse: Add posix ACL support 2016-10-01 07:32:32 +02:00
Makefile fuse: Use generic xattr ops 2016-10-01 07:32:32 +02:00
xattr.c fuse: Ensure posix acls are translated outside of init_user_ns 2018-05-31 12:26:10 +02:00