diff options
| author | Bryam Vargas <hexlabsecurity@proton.me> | 2026-07-17 06:26:58 -0500 |
|---|---|---|
| committer | Mikulas Patocka <mpatocka@redhat.com> | 2026-07-17 21:40:34 +0200 |
| commit | 7ac1f10f987a2ffae4aecf0e2ceca8f552b665cb (patch) | |
| tree | a9cc8669407ed1904dc8ecea5116152024e06242 /tools/perf/scripts/python/bin | |
| parent | d1898576090a10d2ac2715218a652e78fb65a6b0 (diff) | |
dm-pcache: reject a kset that overruns its segment
cache_replay(), the writeback worker and the GC worker read a kset of
get_kset_onmedia_size() bytes and advance the position by it. A forged
key_num makes that size exceed the segment's remaining space, so the
advance walks past the segment and trips the cache_pos_advance() BUG_ON.
Reject a kset whose on-media size exceeds cache_seg_remain() before use.
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/bin')
0 files changed, 0 insertions, 0 deletions
