kernel-aes67/kernel/time
Levi Yun d7ad05c86e 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: 7ee9887703 ("timers: Implement the hierarchical pull model")
Signed-off-by: Levi Yun <ppbuk5246@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Anna-Maria Behnsen <anna-maria@linutronix.de>
Link: https://lore.kernel.org/r/20240506041059.86877-1-ppbuk5246@gmail.com
2024-05-08 11:19:43 +02:00
..
Kconfig sched/idle: Conditionally handle tick broadcast in default_idle_call() 2024-03-01 21:04:27 +01:00
Makefile timers: Implement the hierarchical pull model 2024-02-22 17:52:32 +01:00
alarmtimer.c rtc: class: make rtc_class constant 2024-03-08 12:05:10 +01:00
clockevents.c
clocksource-wdtest.c
clocksource.c
hrtimer.c tick: Split nohz and highres features from nohz_mode 2024-02-26 11:37:32 +01:00
itimer.c
jiffies.c
namespace.c
ntp.c
ntp_internal.h
posix-clock.c Fix memory leak in posix_clock_open() 2024-03-27 09:03:22 -07:00
posix-cpu-timers.c
posix-stubs.c
posix-timers.c
posix-timers.h
sched_clock.c
test_udelay.c
tick-broadcast-hrtimer.c
tick-broadcast.c
tick-common.c timekeeping: Use READ/WRITE_ONCE() for tick_do_timer_cpu 2024-04-10 10:13:42 +02:00
tick-internal.h tick: Move broadcast cancellation up to CPUHP_AP_TICK_DYING 2024-02-26 11:37:32 +01:00
tick-legacy.c
tick-oneshot.c
tick-sched.c timekeeping: Use READ/WRITE_ONCE() for tick_do_timer_cpu 2024-04-10 10:13:42 +02:00
tick-sched.h tick/sched: Fix struct tick_sched doc warnings 2024-04-01 10:36:35 +02:00
time.c
time_test.c time: test: Fix incorrect format specifier 2024-02-27 15:26:08 -07:00
timeconst.bc
timeconv.c
timecounter.c
timekeeping.c A large set of updates and features for timers and timekeeping: 2024-03-11 14:38:26 -07:00
timekeeping.h
timekeeping_debug.c
timekeeping_internal.h
timer.c timers: Fix text inconsistencies and spelling 2024-04-01 10:36:35 +02:00
timer_list.c tick: Split nohz and highres features from nohz_mode 2024-02-26 11:37:32 +01:00
timer_migration.c timers/migration: Prevent out of bounds access on failure 2024-05-08 11:19:43 +02:00
timer_migration.h timers: Implement the hierarchical pull model 2024-02-22 17:52:32 +01:00
vsyscall.c