]> Git Repo - J-linux.git/commit
timers/migration: Prevent out of bounds access on failure
authorLevi Yun <[email protected]>
Mon, 6 May 2024 04:10:59 +0000 (05:10 +0100)
committerThomas Gleixner <[email protected]>
Wed, 8 May 2024 09:19:43 +0000 (11:19 +0200)
commitd7ad05c86e2191bd66e5b62fca8da53c4a53484f
tree059c0c94610cd072eaf552d1b3f845f8e4238abe
parentdd5a440a31fae6e459c0d6271dddd62825505361
timers/migration: Prevent out of bounds access on failure

When tmigr_setup_groups() fails the level 0 group allocation, then the
cleanup derefences index -1 of the local stack array.

Prevent this by checking the loop condition first.

Fixes: 7ee988770326 ("timers: Implement the hierarchical pull model")
Signed-off-by: Levi Yun <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Reviewed-by: Anna-Maria Behnsen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
kernel/time/timer_migration.c
This page took 0.046938 seconds and 4 git commands to generate.