Revision dc280d93623927570da279e99393879dbbab39e7 authored by Thomas Gleixner on 21 December 2016, 19:19:49 UTC, committed by Thomas Gleixner on 25 December 2016, 09:47:42 UTC
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>

1 parent 59fefd0
History
File Mode Size
Kconfig -rw-r--r-- 1.7 KB
Kconfig.vringh -rw-r--r-- 138 bytes
Makefile -rw-r--r-- 264 bytes
net.c -rw-r--r-- 30.9 KB
scsi.c -rw-r--r-- 57.2 KB
test.c -rw-r--r-- 7.3 KB
test.h -rw-r--r-- 187 bytes
vhost.c -rw-r--r-- 57.2 KB
vhost.h -rw-r--r-- 8.2 KB
vringh.c -rw-r--r-- 27.7 KB
vsock.c -rw-r--r-- 17.6 KB

back to top