diff options
| author | Joanne Koong <joannelkoong@gmail.com> | 2026-01-20 14:44:46 -0800 |
|---|---|---|
| committer | Miklos Szeredi <mszeredi@redhat.com> | 2026-03-03 10:05:39 +0100 |
| commit | 65161470f95bb579a72673bf303ecf0800b9054b (patch) | |
| tree | a4303a356eea3ff069b5fa68c89d5123bdf95709 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 59ba47b6be9cd0146ef9a55c6e32e337e11e7625 (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/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
