diff options
| author | Miklos Szeredi <mszeredi@redhat.com> | 2019-11-12 11:49:04 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-12-21 10:34:49 +0100 |
| commit | 1503f6538360c975ce95c1f27324eac26d44bebb (patch) | |
| tree | 0fcd1e1eef148638597164fcc72c9bd1f15fe9e5 /scripts/basic | |
| parent | c5653f92a02f9ce2b1d50565ad74b1e8881e59ce (diff) | |
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>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions
