summaryrefslogtreecommitdiff
path: root/include/linux/timerqueue.h
diff options
context:
space:
mode:
authorGabriele Monaco <gmonaco@redhat.com>2026-06-01 18:38:29 +0300
committerGabriele Monaco <gmonaco@redhat.com>2026-06-03 13:33:23 +0300
commite32d7f404d7d9dac307c1cd9a1fe132fa62ab6d6 (patch)
tree69b03fe4d1af6bea77c7fb8ccffe41a7599cebfa /include/linux/timerqueue.h
parent4793e8a6e20e4c17ed4e755ea40e5912cc3539af (diff)
downloadlinux-e32d7f404d7d9dac307c1cd9a1fe132fa62ab6d6.tar.xz
rv: Reset per-task DA monitors before releasing the slot
Per-task monitors use task_mon_slot to determine which slot in the array to use for the monitor. During destruction, this slot is returned but this is done before resetting the monitor. As a result, the monitor's reset is in fact resetting a slot that is outside of the array (RV_PER_TASK_MONITOR_INIT). Release the slot only after the reset to avoid out-of-bound memory access. Fixes: f5587d1b6ec93 ("rv: Add Hybrid Automata monitor type") Cc: stable@vger.kernel.org Suggested-by: Wen Yang <wen.yang@linux.dev> Reviewed-by: Wen Yang <wen.yang@linux.dev> Reviewed-by: Nam Cao <namcao@linutronix.de> Link: https://lore.kernel.org/r/20260601153840.124372-3-gmonaco@redhat.com Signed-off-by: Gabriele Monaco <gmonaco@redhat.com>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions