summaryrefslogtreecommitdiffstats
path: root/include/linux/page_ref.h
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2020-03-31 22:18:49 +0200
committerThomas Gleixner <tglx@linutronix.de>2020-04-01 13:20:14 +0200
commit73d20564e0dcae003e0d79977f044d5e57496304 (patch)
tree10e1f109985f6da880de947d076646bd33fac2e9 /include/linux/page_ref.h
parent42595ce90b9d4a6b9d8c5a1ea78da4eeaf7e086a (diff)
downloadlinux-73d20564e0dcae003e0d79977f044d5e57496304.tar.gz
linux-73d20564e0dcae003e0d79977f044d5e57496304.tar.bz2
linux-73d20564e0dcae003e0d79977f044d5e57496304.zip
hrtimer: Don't dereference the hrtimer pointer after the callback
A hrtimer can be released in its callback, but lockdep_hrtimer_exit() dereferences the pointer after the callback returns, i.e. a potential use after free. Retrieve the context in which the hrtimer expires before the callback is invoked and use it in lockdep_hrtimer_exit(). Fixes: 40db173965c0 ("lockdep: Add hrtimer context tracing bits") Reported-by: syzbot+62c155c276e580cfb606@syzkaller.appspotmail.com Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lkml.kernel.org/r/20200331201849.fkp2siy3vcdqvqlz@linutronix.de
Diffstat (limited to 'include/linux/page_ref.h')
0 files changed, 0 insertions, 0 deletions