Revision 1fb9341ac34825aa40354e74d9a2c69df7d2c304 authored by Rusty Russell on 12 January 2013, 02:57:34 UTC, committed by Rusty Russell on 12 January 2013, 02:57:46 UTC
Prarit's excellent bug report:
> In recent Fedora releases (F17 & F18) some users have reported seeing
> messages similar to
>
> [   15.478160] kvm: Could not allocate 304 bytes percpu data
> [   15.478174] PERCPU: allocation failed, size=304 align=32, alloc from
> reserved chunk failed
>
> during system boot.  In some cases, users have also reported seeing this
> message along with a failed load of other modules.
>
> What is happening is systemd is loading an instance of the kvm module for
> each cpu found (see commit e9bda3b).  When the module load occurs the kernel
> currently allocates the modules percpu data area prior to checking to see
> if the module is already loaded or is in the process of being loaded.  If
> the module is already loaded, or finishes load, the module loading code
> releases the current instance's module's percpu data.

Now we have a new state MODULE_STATE_UNFORMED, we can insert the
module into the list (and thus guarantee its uniqueness) before we
allocate the per-cpu region.

Reported-by: Prarit Bhargava <prarit@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Tested-by: Prarit Bhargava <prarit@redhat.com>
1 parent 0d21b0e
History
File Mode Size
Kconfig -rw-r--r-- 8.3 KB
Makefile -rw-r--r-- 1.3 KB
aes_ccm.c -rw-r--r-- 3.4 KB
aes_ccm.h -rw-r--r-- 784 bytes
aes_cmac.c -rw-r--r-- 3.0 KB
aes_cmac.h -rw-r--r-- 574 bytes
agg-rx.c -rw-r--r-- 10.9 KB
agg-tx.c -rw-r--r-- 26.0 KB
cfg.c -rw-r--r-- 85.3 KB
cfg.h -rw-r--r-- 155 bytes
chan.c -rw-r--r-- 8.3 KB
debug.h -rw-r--r-- 4.3 KB
debugfs.c -rw-r--r-- 10.4 KB
debugfs.h -rw-r--r-- 375 bytes
debugfs_key.c -rw-r--r-- 9.4 KB
debugfs_key.h -rw-r--r-- 1.1 KB
debugfs_netdev.c -rw-r--r-- 19.9 KB
debugfs_netdev.h -rw-r--r-- 706 bytes
debugfs_sta.c -rw-r--r-- 13.0 KB
debugfs_sta.h -rw-r--r-- 427 bytes
driver-ops.h -rw-r--r-- 24.3 KB
event.c -rw-r--r-- 913 bytes
ht.c -rw-r--r-- 12.0 KB
ibss.c -rw-r--r-- 32.6 KB
ieee80211_i.h -rw-r--r-- 48.7 KB
iface.c -rw-r--r-- 43.2 KB
key.c -rw-r--r-- 17.5 KB
key.h -rw-r--r-- 3.9 KB
led.c -rw-r--r-- 7.9 KB
led.h -rw-r--r-- 2.1 KB
main.c -rw-r--r-- 32.4 KB
mesh.c -rw-r--r-- 23.2 KB
mesh.h -rw-r--r-- 12.7 KB
mesh_hwmp.c -rw-r--r-- 34.0 KB
mesh_pathtbl.c -rw-r--r-- 28.8 KB
mesh_plink.c -rw-r--r-- 25.5 KB
mesh_sync.c -rw-r--r-- 6.7 KB
michael.c -rw-r--r-- 2.2 KB
michael.h -rw-r--r-- 573 bytes
mlme.c -rw-r--r-- 111.4 KB
offchannel.c -rw-r--r-- 12.7 KB
pm.c -rw-r--r-- 5.0 KB
rate.c -rw-r--r-- 12.9 KB
rate.h -rw-r--r-- 4.4 KB
rc80211_minstrel.c -rw-r--r-- 15.8 KB
rc80211_minstrel.h -rw-r--r-- 2.3 KB
rc80211_minstrel_debugfs.c -rw-r--r-- 4.7 KB
rc80211_minstrel_ht.c -rw-r--r-- 23.0 KB
rc80211_minstrel_ht.h -rw-r--r-- 2.9 KB
rc80211_minstrel_ht_debugfs.c -rw-r--r-- 3.3 KB
rc80211_pid.h -rw-r--r-- 7.7 KB
rc80211_pid_algo.c -rw-r--r-- 14.6 KB
rc80211_pid_debugfs.c -rw-r--r-- 5.9 KB
rx.c -rw-r--r-- 90.0 KB
scan.c -rw-r--r-- 26.9 KB
spectmgmt.c -rw-r--r-- 2.8 KB
sta_info.c -rw-r--r-- 37.0 KB
sta_info.h -rw-r--r-- 18.9 KB
status.c -rw-r--r-- 20.1 KB
tkip.c -rw-r--r-- 10.7 KB
tkip.h -rw-r--r-- 917 bytes
trace.c -rw-r--r-- 1.2 KB
trace.h -rw-r--r-- 37.2 KB
tx.c -rw-r--r-- 77.1 KB
util.c -rw-r--r-- 53.7 KB
vht.c -rw-r--r-- 923 bytes
wep.c -rw-r--r-- 9.5 KB
wep.h -rw-r--r-- 1.1 KB
wme.c -rw-r--r-- 4.5 KB
wme.h -rw-r--r-- 748 bytes
wpa.c -rw-r--r-- 17.3 KB
wpa.h -rw-r--r-- 1.1 KB

back to top