2005-05-19 10:25:05

by linux

[permalink] [raw]
Subject: 2.4 kernel threads

While attempting to unload the kernel module which has created a kernel
thread whoch runs perfectly i get this oops:
Unable to handle kernel paging request at virtual address d08f364c
printing eip:
c011d6ff
*pde = 01af0067
*pte = 00000000
Oops: 0002
parport_pc lp parport autofs pcnet_cs 8390 crc32 ds yenta_socket pcmcia_core
floppy microcode ext3 jbd
CPU: 0
EIP: 0060:[<c011d6ff>] Not tainted
EFLAGS: 00010092

EIP is at interruptible_sleep_on_timeout [kernel] 0x4f (2.4.21-4.EL)
eax: d08f3648 ebx: 00000286 ecx: 00000286 edx: d08f3648
esi: 000001c3 edi: 00000000 ebp: cc445fdc esp: cc445fb4
ds: 0068 es: 0068 ss: 0068
Process enigma (pid: 1622, stackpage=cc445000)
Stack: 00000000 cc444000 d08f3648 d08f3648 00000000 00000003 00000656
00000656
d08f3060 00000000 cc445fec d08f310d 00000004 cc444000 00000000
c010945d
d08f363c 00000000 00000000
Call Trace: [<c010945d>] kernel_thread_helper [kernel] 0x5 (0xcc445ff0)

Code: 89 50 04 89 02 c7 45 e4 00 00 00 00 c7 45 e0 00 00 00 00 53

Kernel panic: Fatal exception



The module is being unloaded with the following procedure:
lock_kernel();
flag=1; /* This flag does a break in the for(;;) loop of the thread after
the interruptible_sleep_on_timeout , after the break current=NULL;*/
mb();
kill_proc(pid_thread,SIGKILL,1);
unlock_kernel();
kill_proc(2,SIGCHLD,1); /* assuming that keventd is running with PID 2 */


2005-05-19 10:40:22

by Arjan van de Ven

[permalink] [raw]
Subject: Re: 2.4 kernel threads

On Thu, 2005-05-19 at 13:24 +0300, linux wrote:
> While attempting to unload the kernel module which has created a kernel
> thread whoch runs perfectly i get this oops:

you failed to put in an URL to the sourcecode of your module.


2005-05-19 16:20:53

by Jesse Barnes

[permalink] [raw]
Subject: Re: 2.4 kernel threads

On Thursday, May 19, 2005 3:24 am, you wrote:
> While attempting to unload the kernel module which has created a
> kernel thread whoch runs perfectly i get this oops:
> Unable to handle kernel paging request at virtual address d08f364c

Your messages keep showing up as replies to other threads. It looks
like you're just hitting 'reply' to the latest message in your lkml
mailbox in order to post a new message (at least the headers of your
mail contain references to unrelated messages). Please don't do this.
Just create a new message with '[email protected]' in the To
field. People will be more likely to see your message this way since
it won't be buried in a thread they may or may not be interested in.

Thanks,
Jesse