diff options
| author | Bryam Vargas <hexlabsecurity@proton.me> | 2026-07-17 06:26:57 -0500 |
|---|---|---|
| committer | Mikulas Patocka <mpatocka@redhat.com> | 2026-07-17 21:40:25 +0200 |
| commit | d1898576090a10d2ac2715218a652e78fb65a6b0 (patch) | |
| tree | 6057ce4a4f93aa6dd114d11225fc55060252e976 /tools/perf/scripts/python | |
| parent | f11deb032fd84081e7831cffcba895d893054a22 (diff) | |
dm-pcache: bound the persisted tail-position offset
cache_pos_decode() takes the persisted key_tail and dirty_tail seg_off from
the cache device and addresses within the segment with it. A seg_off at or
past the segment data_size, controllable by whoever supplies the device
(CAP_SYS_ADMIN), reads past the segment data.
Reject a decoded seg_off that is not below the segment data_size.
Fixes: 1d57628ff95b ("dm-pcache: add persistent cache target in device-mapper")
Cc: stable@vger.kernel.org
Signed-off-by: Bryam Vargas <hexlabsecurity@proton.me>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
