android_kernel_samsung_a7y1.../fs/fuse
Miklos Szeredi 1654709f0d 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: d8a5ba45457e ("[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>
2020-04-07 12:45:40 +02:00
..
control.c fuse: use READ_ONCE on congestion_threshold and max_background 2020-04-07 12:31:03 +02:00
cuse.c fuse: fix memleak in cuse_channel_open 2020-04-07 08:08:08 +02:00
dev.c fuse: retrieve: cap requested size to negotiated max_write 2020-04-06 19:02:05 +02:00
dir.c fuse: verify attributes 2020-04-07 12:45:40 +02:00
file.c fuse: truncate pending writes on O_TRUNC 2020-04-07 09:28:04 +02:00
fuse_i.h fuse: verify attributes 2020-04-07 12:45:40 +02:00
inode.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Kconfig A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30