2003-08-10 14:15:25

by Jose Luis Domingo Lopez

[permalink] [raw]
Subject: PROBLEM: 2.6.0-test2-mm2: "rmmod floppy" hangs the box

Hi:

(I filled a bug report to http://bugme.osdl.org a couple of days ago, and
it seems the automated email to linux-kernel on each new bug filed
doesn't work anymore, so here it is the problem explained.)

[1.] One line summary of the problem:
"rmmod floppy" hangs the box if done shortly after "modprobe floppy" and
no floppy in the drive

[2.] Full description of the problem/report:
Doing some tests to see why ide-cd doesn't autoload while floppy does, I
came across this problem. I was basically doing the following:
mount /dev/fd0 /floppy ; sleep 1 ; rmmod floppy
And most of the times, shortly after (a couple of seconds) the last command
I get a kernel panic on the console: no networking, no disk access, just
SysRq to reboot the box, but nothing else. The following panic message
was copied by hand from the screen maybe there is something missing,
becasue resolutino was 80x25 and nVIDIA framebuffer still doesn't work
completely ok.

Badness in device_release at drivers/base/core.c:84
Call Trace:
[<c01a973d>] kobject_cleanup+0x7d/0x80

esi: c02e1080 edi: c02e0780 ebp: c0349ef8 esp: c0349ee4
ds: 007b es:007b ss: 0068

Process: swapper (pid: 0, threadinfo=c034800 task=c02dd980)
Stack: 00000001 00000000 00000000 c03711c8 c0349f0c c0349f24 c0120681 c02e0780
c02e0f88 0000001f c0349f0c c0349f0c c02ff5fc 00000001 c03711c8 0000000a
c0349f40 c011c899 c03711c8 00000046 00000000 c0345a00 00000000 c0349f64

Call Trace:
[<c0120681>] run_timer_softirq+0x101/0x180
[<c011c899>] do_softirq+0x99/0xa0
[<c010ad68>] do_IRQ+0xe8/0x120
[<c01092dc>] common_interrupt+0x18/0x20
[<c01dfcfa>] acpi_processor_idle+0x15a/0x1ef
[<c01dfba0>] acpi_processor_idle+0x0/0x1ef
[<c0107000>] default_idle+0x0/0x30
[<c01070a1>] cpu_idle+0x31/0x40
[<c0105000>] rest_init0x0/0x30
[<c034a6ec>] start_kernel+0x15c/0x190
[<c034a460>] unknown_bootoption+0x0/0x100

Code: 94 00 b5 38 2a c0 eb bf 8d 76 00 55 89 e5 57 56 53 83 ec 08 8b 75 10 8b 7d
08 c1 e6 03 03 75 0c 8b 1e 39 f3 74 1e 90 8d 74 26 00 <39> 7b 18 89 d8 75 22 8b
1b 89 3c 24 89 44 24 04 e8 1b fd ff ff
<0> kernel panic: Fatal exception in interrupt
In interrupt handler - not syncing

I tried the same sequence of commands with ACPI disabled in the BIOS,
with the same results (but slightly different stack trace, of course).

[3.] Keywords:
2.6.0-test2-mm2 floppy module rmmod panic kernel panic

[4.] Kernel version:
Linux version 2.6.0-test2-mm2 (jdomingo@dardhal) (gcc version 3.2.3 20030415 (Debian prerelease)) #2 jue jul 31 20:45:59 CEST 2003

[5.] Output of Oops.. message
See above [2.]

[6.] A small shell script or example program which triggers the problem
See above [2.]

[7.] Environment
Debian Linux Sid, kernel version 2.6.0-test2-mm2 compiled with gcc 3.2.3,
libc 2.3.1, module-init-tools 0.9.13-pre-1. Kernel compiled with ACPI
support, but not modular. Box booted in "minimal mode" (linux
init=/bin/bash) to avoid messing things up.


Hope it helps.

--
Jose Luis Domingo Lopez
Linux Registered User #189436 Debian Linux Sid (Linux 2.6.0-test2-mm2)


2003-08-10 15:49:53

by Jose Luis Domingo Lopez

[permalink] [raw]
Subject: Re: PROBLEM: 2.6.0-test2-mm2: "rmmod floppy" hangs the box

On Sunday, 10 August 2003, at 16:15:12 +0200,
Jose Luis Domingo Lopez wrote:

> (I filled a bug report to http://bugme.osdl.org a couple of days ago, and
> it seems the automated email to linux-kernel on each new bug filed
> doesn't work anymore, so here it is the problem explained.)
>
Maybe I forgot one piece of important information: the bug number
assigned at http://bugme.osdl.org for this report: 1061

Sorry for the inconvenience.

--
Jose Luis Domingo Lopez
Linux Registered User #189436 Debian Linux Sid (Linux 2.6.0-test2-mm2)

2003-08-23 22:02:45

by Jose Luis Domingo Lopez

[permalink] [raw]
Subject: PROBLEM: 2.6.0-test4: "rmmod floppy" _still_ hangs the box

On Sunday, 10 August 2003, at 16:15:12 +0200,
Jose Luis Domingo Lopez wrote:

> [1.] One line summary of the problem:
> "rmmod floppy" hangs the box if done shortly after "modprobe floppy" and
> no floppy in the drive
>
Exactly the same test case previously reported, with the same nasty
results, but now for kernel version 2.6.0-test4.

Hope this helps.

--
Jose Luis Domingo Lopez
Linux Registered User #189436 Debian Linux Sid (Linux 2.6.0-test4)