mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
tick: Cleanup NOHZ per cpu data on cpu down
commit 4b0c0f294f
upstream.
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.
Change-Id: I5f2be7afd398bc97b997ab2143f9d71230c44dd5
Reported-by: Prarit Bhargava <prarit@redhat.com>
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
68a644ad50
commit
c8ad3a7446
1 changed files with 1 additions and 1 deletions
|
@ -930,7 +930,7 @@ void tick_cancel_sched_timer(int cpu)
|
|||
hrtimer_cancel(&ts->sched_timer);
|
||||
# endif
|
||||
|
||||
ts->nohz_mode = NOHZ_MODE_INACTIVE;
|
||||
memset(ts, 0, sizeof(*ts));
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue