Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 5a830bbc authored by Phil Chang's avatar Phil Chang Committed by Thomas Gleixner
Browse files

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: default avatarPhil Chang <phil.chang@mediatek.com>
Signed-off-by: default avatarAnna-Maria Behnsen <anna-maria@linutronix.de>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Reviewed-by: default avatarAnna-Maria Behnsen <anna-maria@linutronix.de>
parent 6ba59ff4
Branches
Tags v2017.10
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment