Skip to content
Commit bb6eddf7 authored by Thomas Gleixner's avatar Thomas Gleixner
Browse files

clockevents: Prevent clockevent_devices list corruption on cpu hotplug



Xiaotian Feng triggered a list corruption in the clock events list on
CPU hotplug and debugged the root cause.

If a CPU registers more than one per cpu clock event device, then only
the active clock event device is removed on CPU_DEAD. The unused
devices are kept in the clock events device list.

On CPU up the clock event devices are registered again, which means
that we list_add an already enqueued list_head. That results in list
corruption.

Resolve this by removing all devices which are associated to the dead
CPU on CPU_DEAD.

Reported-by: default avatarXiaotian Feng <dfeng@redhat.com>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Tested-by: default avatarXiaotian Feng <dfeng@redhat.com>
Cc: stable@kernel.org
parent e9c0748b
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