summaryrefslogtreecommitdiff
path: root/include/linux/cpuhotplug.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2016-12-21 22:19:49 +0300
committerThomas Gleixner <tglx@linutronix.de>2016-12-25 12:47:42 +0300
commitdc280d93623927570da279e99393879dbbab39e7 (patch)
tree61223479925f5c46c38a7e0419e8e0058c39c84f /include/linux/cpuhotplug.h
parent59fefd0890f12716b39de1d4e5482fd739316262 (diff)
downloadlinux-dc280d93623927570da279e99393879dbbab39e7.tar.xz
cpu/hotplug: Prevent overwriting of callbacks
Developers manage to overwrite states blindly without thought. That's fatal and hard to debug. Add sanity checks to make it fail. This requries to restructure the code so that the dynamic state allocation happens in the same lock protected section as the actual store. Otherwise the previous assignment of 'Reserved' to the name field would trigger the overwrite check. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Sebastian Siewior <bigeasy@linutronix.de> Link: http://lkml.kernel.org/r/20161221192111.675234535@linutronix.de Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/linux/cpuhotplug.h')
0 files changed, 0 insertions, 0 deletions