Description of problem: Whilst investigating problems related to https://bugzilla.redhat.com/show_bug.cgi?id=697157 I unloaded the hp_wmi module, then the wmi module. The system locked up, the screen changed to a plain console and an oops message was printed. I recovered this from the log after power cycling (the machine wasn't responding) Version-Release number of selected component (if applicable): kernel-2.6.38.6-27.fc15.i686 How reproducible: 100% Steps to Reproduce: 1. boot to normal system 2. rmmod hp_wmi 3. rmmod wmi Actual results: black screen / console, oops message and system is locked up Expected results: module should be removable or give error message. Additional info: May be related to BZ 697157 where the ath9k module can't unload (and locks up spontaneously too)
Created attachment 500172 [details] log messages from boot to eventual Oops
Do you still get this error with the 2.6.40.x updates in F15?
modprobe -r wmi on 2.6.40.6 still oopses.
also still happens with f16 beta
(In reply to comment #4) > also still happens with f16 beta Please post traces from f15 and/or f16
Created attachment 528559 [details] screenshot.jpg The system is inoperable after module unload so I could only take a screenshot. f16 kernel-3.1.0.0.rc9
Created attachment 531313 [details] Part of kernel log after Oops It happens on Kubuntu 11.10 Oneiric too $ uname -a Linux ubuntu 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:56:25 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux For some reason, device->kobj is NULL sysfs_find_dirent: http://lxr.linux.no/#linux+v3.1/fs/sysfs/dir.c#L539 sysfs_get_dirent: http://lxr.linux.no/#linux+v3.1/fs/sysfs/dir.c#L575 sysfs_unmerge_group: http://lxr.linux.no/#linux+v3.1/fs/sysfs/group.c#L195 (rpm_sysfs_remove: http://lxr.linux.no/#linux+v3.1/drivers/base/power/sysfs.c#L534) dpm_sysfs_remove: http://lxr.linux.no/#linux+v3.1/drivers/base/power/sysfs.c#L539 device_del: http://lxr.linux.no/#linux+v3.1/drivers/base/core.c#L1098 device_unregister: http://lxr.linux.no/#linux+v3.1/drivers/base/core.c#L1152 Could the patch at have fixed this? http://git.kernel.org/?p=linux/kernel/git/next/linux-next-history.git;a=commitdiff;h=023b9565972a4a5e0f01b9aa32680af6e9b5c388
(In reply to comment #7) > Could the patch at have fixed this? > http://git.kernel.org/?p=linux/kernel/git/next/linux-next-history.git;a=commitdiff;h=023b9565972a4a5e0f01b9aa32680af6e9b5c388 Possibly. That commit should be in the most recent rawhide kernel. If someone is willing to test that, it would be appreciated.
I've built the module using a custom Makefile and tested it. I can confirm that the NULL BUG() has disappeared. Tests: ubuntu@ubuntu:~$ sudo modprobe -v wmi insmod /lib/modules/3.0.0-12-generic/kernel/drivers/platform/x86/wmi.ko ubuntu@ubuntu:~$ sudo modprobe -v -r wmi rmmod /lib/modules/3.0.0-12-generic/kernel/drivers/platform/x86/wmi.ko ubuntu@ubuntu:~$ sudo modprobe -v mxm-wmi insmod /lib/modules/3.0.0-12-generic/kernel/drivers/platform/x86/wmi.ko insmod /lib/modules/3.0.0-12-generic/kernel/drivers/platform/x86/mxm-wmi.ko ubuntu@ubuntu:~$ sudo modprobe -v -r mxm-wmi rmmod /lib/modules/3.0.0-12-generic/kernel/drivers/platform/x86/mxm-wmi.ko rmmod /lib/modules/3.0.0-12-generic/kernel/drivers/platform/x86/wmi.ko ubuntu@ubuntu:~$ sudo modprobe -v nouveau insmod /lib/modules/3.0.0-12-generic/kernel/drivers/platform/x86/wmi.ko insmod /lib/modules/3.0.0-12-generic/kernel/drivers/platform/x86/mxm-wmi.ko insmod /lib/modules/3.0.0-12-generic/kernel/drivers/gpu/drm/ttm/ttm.ko insmod /lib/modules/3.0.0-12-generic/kernel/drivers/gpu/drm/nouveau/nouveau.ko ubuntu@ubuntu:~$ sudo modprobe -v -r nouveau rmmod /lib/modules/3.0.0-12-generic/kernel/drivers/gpu/drm/nouveau/nouveau.ko rmmod /lib/modules/3.0.0-12-generic/kernel/drivers/gpu/drm/ttm/ttm.ko rmmod /lib/modules/3.0.0-12-generic/kernel/drivers/platform/x86/mxm-wmi.ko rmmod /lib/modules/3.0.0-12-generic/kernel/drivers/platform/x86/wmi.ko No Oopses anymore.
(In reply to comment #9) > I've built the module using a custom Makefile and tested it. I can confirm that > the NULL BUG() has disappeared. OK. I'll backport the patch to F16 and get it included. Will ship as an update, as it's a bit too late to get this into the release at this point.
Added to both F15 and F16. Will be in the next kernel builds. Also, this was supposed to head for stable so I pinged GregKH about it as well.