oops reading /dev/psaux without mouse

Andrew Pimlott (andrew@pimlott.ne.mediaone.net)
Sun, 30 May 1999 01:57:44 -0400


I got oops'es from gpm and X when I booted Linux 2.0.37pre12 without my ps2
mouse attached (gpm and X are configured to use /dev/psaux). I narrowed it
down a bit:

<clean boot>
# modprobe psaux
/lib/modules/2.0.37/misc/psaux.o: init_module: Device or resource busy
# cat /dev/psaux
Unable to handle kernel paging request at virtual address cc845077
current->tss.cr3 = 0b210000, %cr3 = 0b210000
*pde = 0009e067
*pte = 00000000
Oops: 0000
CPU: 0
EIP: 0010:[<0c845077>]
EFLAGS: 00010216
eax: 00000001 ebx: 0b211f44 ecx: 00461a30 edx: 00461000
esi: 00000001 edi: 0b211f54 ebp: 0bfde550 esp: 0b211f1c
ds: 0018 es: 0018 fs: 002b gs: 002b ss: 0018
Process cat (pid: 208, process nr: 39, stackpage=0b211000)
Stack: 00000002 80000000 0000000f 0b211f44 00000000 00000000 0bfde550 0b3e7a00
00000004 00124cb2 72616863 6a616d2d 312d726f 00312d30 00197e48 00124fea
0b3e7a00 0bfde550 0bfde550 00000000 0b1f3000 00123233 0b3e7a00 0bfde550
Call Trace: [get_chrfops+30/36] [chrdev_open+62/76] [do_open+199/292] [sys_open+63/120] [system_call+108/124]
Code: <1>Unable to handle kernel paging request at virtual address cc845077
current->tss.cr3 = 0b210000, %cr3 = 0b210000
*pde = 0009e067
*pte = 00000000
Oops: 0000
CPU: 0
EIP: 0010:[die_if_kernel+640/704]
EFLAGS: 00010206
eax: 00000010 ebx: 0000002b ecx: 0c845077 edx: 0bb35810
esi: 00000000 edi: 0b212000 ebp: 0b211ee0 esp: 0b211e84
ds: 0018 es: 0018 fs: 0010 gs: 002b ss: 0018
Process cat (pid: 208, process nr: 39, stackpage=0b211000)
Stack: 0018002b 00000000 00045000 0b211ee0 0bba7c0c 0c800000 0d000000 0c800000
0bba0018 00111c2e 001841e2 0b211ee0 00000000 00111960 00000001 0b211f54
0bfde550 00461a38 0b247f18 00000000 0010aa68 0b211ee0 00000000 0b211f44
Call Trace: [vesa_unblank+15/252] [serial:register_serial+-265600/264] [<0d000000>] [serial:register_serial+-265600/264] [do_page_fault+718/736] [do_page_fault+0/736] [error_code+64/72]
[<0c845077>] [get_chrfops+30/36] [chrdev_open+62/76] [do_open+199/292] [sys_open+63/120] [system_call+108/124]
Code: 64 8a 04 0e 0f a1 88 c2 81 e2 ff 00 00 00 89 54 24 10 52 68
Segmentation fault

In syslog, there is another "psaux.o: init_module: Device or resource busy"
right before the oops. strace shows that cat segfaults in the call to open
/dev/psaux .

Everything works fine (ie, no oops, mouse functions) when with the mouse
attached. I searched the archives and didn't find any other report of this
problem, so I assume this is not expected behavior. I understand that ps2
mice are finicky, but I hope something better than an oops can be achieved.

I first noticed this problem on 2.0.36ac15. I am now running 2.0.37pre12
and the problem persists. I compiled the kernel with gcc 2.7.2.3. If
anyone wants to look at my .config, it's at
http://pimlott.ne.mediaone.net/~andrew/config.oops .

Please let me know if there's anything else I can do to help.

Thanks,
Andrew

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/