summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/netdev-times.py
diff options
context:
space:
mode:
authorBryam Vargas <hexlabsecurity@proton.me>2026-07-17 06:26:59 -0500
committerMikulas Patocka <mpatocka@redhat.com>2026-07-17 21:40:46 +0200
commit16c3b3a326e70f246a605b3dc27b7f83ba4743e3 (patch)
treec303093b57785a8cdd757ba014187afe8e1fa886 /tools/perf/scripts/python/netdev-times.py
parent7ac1f10f987a2ffae4aecf0e2ceca8f552b665cb (diff)
dm-pcache: detect a cycle in the last-kset chain during replay
cache_replay() follows the on-media last-kset chain by next_cache_seg_id with no cond_resched(). A forged chain that points back into a segment it has already visited makes the replay loop follow it forever. Cap the last-kset hops at cache->n_segs; a valid chain visits each segment at most once. 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/netdev-times.py')
0 files changed, 0 insertions, 0 deletions