linux/kernel/time
Phil Chang 5a830bbce3 hrtimer: Prevent queuing of hrtimer without a function callback
The hrtimer function callback must not be NULL. It has to be specified by
the call side but it is not validated by the hrtimer code. When a hrtimer
is queued without a function callback, the kernel crashes with a null
pointer dereference when trying to execute the callback in __run_hrtimer().

Introduce a validation before queuing the hrtimer in
hrtimer_start_range_ns().

[anna-maria: Rephrase commit message]

Signed-off-by: Phil Chang <phil.chang@mediatek.com>
Signed-off-by: Anna-Maria Behnsen <anna-maria@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Anna-Maria Behnsen <anna-maria@linutronix.de>
2024-06-25 16:54:27 +02:00
..
Kconfig clocksource: Make the int help prompt unit readable in ncurses 2024-04-30 00:12:22 +02:00
Makefile
alarmtimer.c
clockevents.c clockevents: Convert s[n]printf() to sysfs_emit() 2024-04-09 12:32:37 +02:00
clocksource-wdtest.c
clocksource.c clocksource: Convert s[n]printf() to sysfs_emit() 2024-04-09 12:32:37 +02:00
hrtimer.c hrtimer: Prevent queuing of hrtimer without a function callback 2024-06-25 16:54:27 +02: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 tick/nohz_full: Don't abuse smp_call_function_single() in tick_setup_device() 2024-06-10 20:18:13 +02:00
tick-internal.h
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
timeconst.bc
timeconv.c
timecounter.c
timekeeping.c timekeeping: Let timekeeping_cycles_to_ns() handle both under and overflow 2024-04-08 15:03:08 +02:00
timekeeping.h
timekeeping_debug.c
timekeeping_internal.h
timer.c sysctl changes for v6.10-rc1 2024-05-17 17:31:24 -07:00
timer_list.c
timer_migration.c timers/migration: Prevent out of bounds access on failure 2024-05-08 11:19:43 +02:00
timer_migration.h
vsyscall.c vdso: Add vdso_data:: Max_cycles 2024-04-08 15:03:07 +02:00