diff options
| author | 2026-01-20 14:44:46 -0800 | |
|---|---|---|
| committer | 2026-03-03 10:05:39 +0100 | |
| commit | 65161470f95bb579a72673bf303ecf0800b9054b (patch) | |
| tree | a4303a356eea3ff069b5fa68c89d5123bdf95709 /tools/perf/scripts/python | |
| parent | fuse: Check for large folio with SPLICE_F_MOVE (diff) | |
fuse: validate outarg offset and size in notify store/retrieve
Add validation checking for outarg offset and outarg size values passed
in by the server. MAX_LFS_FILESIZE is the maximum file size supported.
The fuse_notify_store_out and fuse_notify_retrieve_out structs take in
a uint64_t offset.
Add logic to ensure:
* outarg.offset is less than MAX_LFS_FILESIZE
* outarg.offset + outarg.size cannot exceed MAX_LFS_FILESIZE
* potential uint64_t overflow is fixed when adding outarg.offset and
outarg.size.
Signed-off-by: Joanne Koong <joannelkoong@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
