aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/tree-mod-log.c
diff options
context:
space:
mode:
authorLevi Yun <[email protected]>2024-05-06 04:10:59 +0000
committerThomas Gleixner <[email protected]>2024-05-08 09:19:43 +0000
commitd7ad05c86e2191bd66e5b62fca8da53c4a53484f (patch)
tree059c0c94610cd072eaf552d1b3f845f8e4238abe /fs/btrfs/tree-mod-log.c
parentLinux 6.9-rc7 (diff)
downloadkernel-d7ad05c86e2191bd66e5b62fca8da53c4a53484f.tar.gz
kernel-d7ad05c86e2191bd66e5b62fca8da53c4a53484f.zip
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]
Diffstat (limited to 'fs/btrfs/tree-mod-log.c')
0 files changed, 0 insertions, 0 deletions