linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 2.6.8.1: kernel panic rmmod'ing apm
@ 2004-08-19  0:52 Brannon Klopfer
  0 siblings, 0 replies; 2+ messages in thread
From: Brannon Klopfer @ 2004-08-19  0:52 UTC (permalink / raw)
  To: linux-kernel

Linux littleblue 2.6.8.1 #81 Wed Aug 18 17:13:39 PDT 2004 i686 unknown 
unknown GNU/Linux

Gnu C                  3.3.4
Gnu make               3.80
binutils               2.15.90.0.3
util-linux             2.12a
mount                  2.12a
module-init-tools      3.0
e2fsprogs              1.35
jfsutils               1.1.6
xfsprogs               2.6.13
pcmcia-cs              3.2.7
quota-tools            3.12.
PPP                    2.4.2
nfs-utils              1.0.6
Linux C Library        2.3.2
Dynamic linker (ldd)   2.3.2
Linux C++ Library      5.0.6
Procps                 3.2.1
Net-tools              1.60
Kbd                    1.12
Sh-utils               5.2.1
Modules Loaded         snd_cs4236 snd_opl3_lib snd_hwdep snd_cs4236_lib 
snd_mpu401_uart snd_rawmidi snd_cs4231_lib nfsd exportfs intel_agp 
uhci_hcd serial_cs 3c574_cs ds yenta_socket pcmcia_core agpgart

-----------------------------

Hello,
    When rmmod'ing apm, I get a kernel panic. However, the machine 
continues to function properly, AFAIK. Here's the dmesg:

[snip]
Unable to handle kernel paging request at virtual address d2d9f211
 printing eip:
d2d9f211
*pde = 01357067
*pte = 00000000
Oops: 0000 [#1]
PREEMPT
Modules linked in: snd_cs4236 snd_opl3_lib snd_hwdep snd_cs4236_lib 
snd_mpu401_uart snd_rawmidi snd_cs4231_lib nfsd exportfs intel_agp 
uhci_hcd serial_cs 3c574_cs ds yenta_socket pcmcia_core agpgart
CPU:    0
EIP:    0060:[<d2d9f211>]    Not tainted
EFLAGS: 00010246   (2.6.8.1)
EIP is at 0xd2d9f211
eax: 00000000   ebx: 00000000   ecx: ffffffff   edx: c03c0000
esi: 00011ff9   edi: 00000202   ebp: 00000001   esp: c03c0f84
ds: 007b   es: 007b   ss: 0068
Process swapper (pid: 0, threadinfo=c03c0000 task=c033fa40)
Stack: 00005305 00000000 00000000 00090000 c03e0000 c03c0000 00011ff9 
0000000a
       00000001 d2d9f373 00005305 00000000 00000000 c03c0fbc 00005305 
d2d9f4ab
       c03c0000 00099100 c03e0120 00423007 c0102164 c03c0000 c03c1723 
c033fa40
Call Trace:
 [<c0102164>] cpu_idle+0x34/0x40
 [<c03c1723>] start_kernel+0x163/0x180
 [<c03c1340>] unknown_bootoption+0x0/0x160
Code:  Bad EIP value.
 <0>Kernel panic: Attempted to kill the idle task!
In idle task - not syncing
 
[END]

After that, the module is gone, and everything works fine. I just tried 
inserting and removeing it subsequent times, and it works with no errors 
(so far). I only rmmod when apm is used by nothing.

The only reason I'm messing around with the apm module is that Loki's UT 
seems to (sometimes) run much too fast with APM support in kernel, and 
rmmod'ing it out seems to do the trick. This is probably indicitive of 
another problem, though my system seems pretty stable (other than that 
kernel panic...).

All said, this doesn't bother me, as my system stays up.

-Brannon Klopfer

^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: 2.6.8.1: kernel panic rmmod'ing apm
@ 2004-08-19  7:23 Li, Shaohua
  0 siblings, 0 replies; 2+ messages in thread
From: Li, Shaohua @ 2004-08-19  7:23 UTC (permalink / raw)
  To: Brannon Klopfer; +Cc: Linux Kernel Mailing List

[-- Attachment #1: Type: text/plain, Size: 3612 bytes --]

Hi,
It possibly is a similar problem when we remmod processor module (idle
routine need be synchronized). Does the attached patch help?

Thanks,
Shaohua

>-----Original Message-----
>From: linux-kernel-owner@vger.kernel.org [mailto:linux-kernel-
>owner@vger.kernel.org] On Behalf Of Brannon Klopfer
>Sent: Thursday, August 19, 2004 8:52 AM
>To: linux-kernel@vger.kernel.org
>Subject: 2.6.8.1: kernel panic rmmod'ing apm
>
>Linux littleblue 2.6.8.1 #81 Wed Aug 18 17:13:39 PDT 2004 i686 unknown
>unknown GNU/Linux
>
>Gnu C                  3.3.4
>Gnu make               3.80
>binutils               2.15.90.0.3
>util-linux             2.12a
>mount                  2.12a
>module-init-tools      3.0
>e2fsprogs              1.35
>jfsutils               1.1.6
>xfsprogs               2.6.13
>pcmcia-cs              3.2.7
>quota-tools            3.12.
>PPP                    2.4.2
>nfs-utils              1.0.6
>Linux C Library        2.3.2
>Dynamic linker (ldd)   2.3.2
>Linux C++ Library      5.0.6
>Procps                 3.2.1
>Net-tools              1.60
>Kbd                    1.12
>Sh-utils               5.2.1
>Modules Loaded         snd_cs4236 snd_opl3_lib snd_hwdep snd_cs4236_lib
>snd_mpu401_uart snd_rawmidi snd_cs4231_lib nfsd exportfs intel_agp
>uhci_hcd serial_cs 3c574_cs ds yenta_socket pcmcia_core agpgart
>
>-----------------------------
>
>Hello,
>    When rmmod'ing apm, I get a kernel panic. However, the machine
>continues to function properly, AFAIK. Here's the dmesg:
>
>[snip]
>Unable to handle kernel paging request at virtual address d2d9f211
> printing eip:
>d2d9f211
>*pde = 01357067
>*pte = 00000000
>Oops: 0000 [#1]
>PREEMPT
>Modules linked in: snd_cs4236 snd_opl3_lib snd_hwdep snd_cs4236_lib
>snd_mpu401_uart snd_rawmidi snd_cs4231_lib nfsd exportfs intel_agp
>uhci_hcd serial_cs 3c574_cs ds yenta_socket pcmcia_core agpgart
>CPU:    0
>EIP:    0060:[<d2d9f211>]    Not tainted
>EFLAGS: 00010246   (2.6.8.1)
>EIP is at 0xd2d9f211
>eax: 00000000   ebx: 00000000   ecx: ffffffff   edx: c03c0000
>esi: 00011ff9   edi: 00000202   ebp: 00000001   esp: c03c0f84
>ds: 007b   es: 007b   ss: 0068
>Process swapper (pid: 0, threadinfo=c03c0000 task=c033fa40)
>Stack: 00005305 00000000 00000000 00090000 c03e0000 c03c0000 00011ff9
>0000000a
>       00000001 d2d9f373 00005305 00000000 00000000 c03c0fbc 00005305
>d2d9f4ab
>       c03c0000 00099100 c03e0120 00423007 c0102164 c03c0000 c03c1723
>c033fa40
>Call Trace:
> [<c0102164>] cpu_idle+0x34/0x40
> [<c03c1723>] start_kernel+0x163/0x180
> [<c03c1340>] unknown_bootoption+0x0/0x160
>Code:  Bad EIP value.
> <0>Kernel panic: Attempted to kill the idle task!
>In idle task - not syncing
>
>[END]
>
>After that, the module is gone, and everything works fine. I just tried
>inserting and removeing it subsequent times, and it works with no
errors
>(so far). I only rmmod when apm is used by nothing.
>
>The only reason I'm messing around with the apm module is that Loki's
UT
>seems to (sometimes) run much too fast with APM support in kernel, and
>rmmod'ing it out seems to do the trick. This is probably indicitive of
>another problem, though my system seems pretty stable (other than that
>kernel panic...).
>
>All said, this doesn't bother me, as my system stays up.
>
>-Brannon Klopfer
>-
>To unsubscribe from this list: send the line "unsubscribe linux-kernel"
in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at  http://vger.kernel.org/majordomo-info.html
>Please read the FAQ at  http://www.tux.org/lkml/

[-- Attachment #2: apm.patch --]
[-- Type: application/octet-stream, Size: 512 bytes --]

===== arch/i386/kernel/apm.c 1.65 vs edited =====
--- 1.65/arch/i386/kernel/apm.c	2004-07-03 14:17:30 +08:00
+++ edited/arch/i386/kernel/apm.c	2004-08-19 15:10:03 +08:00
@@ -2360,8 +2360,10 @@ static void __exit apm_exit(void)
 {
 	int	error;
 
-	if (set_pm_idle)
+	if (set_pm_idle) {
 		pm_idle = original_pm_idle;
+		synchronize_kernel();
+	}
 	if (((apm_info.bios.flags & APM_BIOS_DISENGAGED) == 0)
 	    && (apm_info.connection_version > 0x0100)) {
 		error = apm_engage_power_management(APM_DEVICE_ALL, 0);

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-08-19  7:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-19  0:52 2.6.8.1: kernel panic rmmod'ing apm Brannon Klopfer
  -- strict thread matches above, loose matches on Subject: below --
2004-08-19  7:23 Li, Shaohua

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).