diff options
author | Miklos Szeredi <[email protected]> | 2019-11-12 11:49:04 +0100 |
---|---|---|
committer | Miklos Szeredi <[email protected]> | 2019-11-12 11:49:04 +0100 |
commit | eb59bd17d2fa6e5e84fba61a5ebdea984222e6d5 (patch) | |
tree | a644b87e95b4245db9a2a716f56e54fe8b82179c /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | |
parent | 31f4f5b495a62c9a8b15b1c3581acd5efeb9af8c (diff) |
fuse: verify attributes
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 <[email protected]>
Fixes: d8a5ba45457e ("[PATCH] FUSE - core")
Cc: <[email protected]> # v2.6.14
Signed-off-by: Miklos Szeredi <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions