Revision 55860d96ca59265d35427da0ee7d7f61e404f8e7 authored by Sebastian Andrzej Siewior on 26 June 2020, 03:29:55 UTC, committed by Linus Torvalds on 26 June 2020, 07:27:37 UTC
According to Christopher Lameter two fixes have been merged for the same
problem.  As far as I can tell, the code does not acquire the list_lock
and invoke kmalloc().  list_slab_objects() misses an unlock (the
counterpart to get_map()) and the memory allocated in free_partial()
isn't used.

Revert the mentioned commit.

Link: http://lkml.kernel.org/r/20200618201234.795692-1-bigeasy@linutronix.de
Fixes: aa456c7aebb14 ("slub: remove kmalloc under list_lock from list_slab_objects() V2")
Link: https://lkml.kernel.org/r/alpine.DEB.2.22.394.2006181501480.12014@www.lameter.com
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: David Rientjes <rientjes@google.com>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Yu Zhao <yuzhao@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 8982ae5
History
File Mode Size
appletalk
arcnet
bonding
caif
can
dsa
ethernet
fddi
fjes
hamradio
hippi
hyperv
ieee802154
ipa
ipvlan
netdevsim
phy
plip
ppp
slip
team
usb
vmxnet3
wan
wimax
wireguard
wireless
xen-netback
Kconfig -rw-r--r-- 19.4 KB
LICENSE.SRC -rw-r--r-- 891 bytes
Makefile -rw-r--r-- 2.3 KB
Space.c -rw-r--r-- 3.7 KB
bareudp.c -rw-r--r-- 20.2 KB
dummy.c -rw-r--r-- 5.1 KB
eql.c -rw-r--r-- 14.6 KB
geneve.c -rw-r--r-- 49.0 KB
gtp.c -rw-r--r-- 31.7 KB
ifb.c -rw-r--r-- 8.4 KB
loopback.c -rw-r--r-- 7.0 KB
macsec.c -rw-r--r-- 106.3 KB
macvlan.c -rw-r--r-- 44.8 KB
macvtap.c -rw-r--r-- 6.1 KB
mdio.c -rw-r--r-- 17.2 KB
mii.c -rw-r--r-- 18.0 KB
net_failover.c -rw-r--r-- 23.2 KB
netconsole.c -rw-r--r-- 24.1 KB
nlmon.c -rw-r--r-- 2.9 KB
ntb_netdev.c -rw-r--r-- 12.2 KB
rionet.c -rw-r--r-- 18.4 KB
sb1000.c -rw-r--r-- 31.0 KB
sungem_phy.c -rw-r--r-- 29.8 KB
tap.c -rw-r--r-- 30.2 KB
thunderbolt.c -rw-r--r-- 34.5 KB
tun.c -rw-r--r-- 85.6 KB
veth.c -rw-r--r-- 33.6 KB
virtio_net.c -rw-r--r-- 84.1 KB
vrf.c -rw-r--r-- 34.0 KB
vsockmon.c -rw-r--r-- 3.0 KB
vxlan.c -rw-r--r-- 119.8 KB
xen-netfront.c -rw-r--r-- 55.0 KB

back to top