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
appletalk
arcnet
bonding
caif
can
cris
dsa
ethernet
fddi
fjes
hamradio
hippi
hyperv
ieee802154
ipvlan
irda
phy
plip
ppp
slip
team
usb
vmxnet3
wan
wimax
wireless
xen-netback
Kconfig -rw-r--r-- 15.0 KB
LICENSE.SRC -rw-r--r-- 891 bytes
Makefile -rw-r--r-- 2.0 KB
Space.c -rw-r--r-- 4.1 KB
dummy.c -rw-r--r-- 5.6 KB
eql.c -rw-r--r-- 14.6 KB
geneve.c -rw-r--r-- 37.2 KB
gtp.c -rw-r--r-- 31.5 KB
ifb.c -rw-r--r-- 8.6 KB
loopback.c -rw-r--r-- 5.6 KB
macsec.c -rw-r--r-- 84.2 KB
macvlan.c -rw-r--r-- 41.2 KB
macvtap.c -rw-r--r-- 31.6 KB
mdio.c -rw-r--r-- 11.9 KB
mii.c -rw-r--r-- 18.1 KB
netconsole.c -rw-r--r-- 24.8 KB
nlmon.c -rw-r--r-- 3.5 KB
ntb_netdev.c -rw-r--r-- 12.3 KB
rionet.c -rw-r--r-- 18.6 KB
sb1000.c -rw-r--r-- 31.2 KB
sungem_phy.c -rw-r--r-- 29.7 KB
tun.c -rw-r--r-- 59.0 KB
veth.c -rw-r--r-- 12.1 KB
virtio_net.c -rw-r--r-- 63.2 KB
vrf.c -rw-r--r-- 31.1 KB
vxlan.c -rw-r--r-- 84.8 KB
xen-netfront.c -rw-r--r-- 53.9 KB

back to top