]> git.baikalelectronics.ru Git - kernel.git/commit
tick: Cleanup NOHZ per cpu data on cpu down
authorThomas Gleixner <tglx@linutronix.de>
Fri, 3 May 2013 13:02:50 +0000 (15:02 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 12 May 2013 10:20:09 +0000 (12:20 +0200)
commitaff79df1899406812ce289997a1649a77a47ad25
treecdfb352f5cf66f5e5bb79fa9a975aabd891e1f62
parent4d7b358e5ecfbe5c605c957b8a4bf95147d70c08
tick: Cleanup NOHZ per cpu data on cpu down

Prarit reported a crash on CPU offline/online. The reason is that on
CPU down the NOHZ related per cpu data of the dead cpu is not cleaned
up. If at cpu online an interrupt happens before the per cpu tick
device is registered the irq_enter() check potentially sees stale data
and dereferences a NULL pointer.

Cleanup the data after the cpu is dead.

Reported-by: Prarit Bhargava <prarit@redhat.com>
Cc: stable@vger.kernel.org
Cc: Mike Galbraith <bitbucket@online.de>
Link: http://lkml.kernel.org/r/alpine.LFD.2.02.1305031451561.2886@ionos
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/time/tick-sched.c