Killing a kernel thread from user space ?



Hi,

Is it possible to kill a kernel thread from user space. Don't ask me
why do I need to do this. This is purely an experimental exercise, I
am not doing it because I am working on a practical problem. Thing is
that I wrote a kernel module and now it is hung in a kernel thread
somewhere doing udelay(), fortunately since I am on preemptible kernel
my machine is not frozen,
but still I saw that doing a kill -9 on this process has no effect.
How about if I insert another kernel module and kill this busywait
thread from inside the kernel space. In effect how do you execute
"kill -9" from one kernel thread to misbehaving kernel thread.

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



Relevant Pages

  • Gracefully killing kswapd, or any kernel thread
    ... I'm trying to kill a kernel thread gracefully, in particular kswapd, ... The goal is to start another kernel thread that contains updated kswapd ... I've also tried the same with kflushd, kupdate, and keventd in 2.2.19. ...
    (Linux-Kernel)
  • Re: Gracefully killing kswapd, or any kernel thread
    ... On Wed, 7 Sep 2005, Kristis Makris wrote: ... > I'm trying to kill a kernel thread gracefully, in particular kswapd, ... > The goal is to start another kernel thread that contains updated kswapd ...
    (Linux-Kernel)
  • Re: Killing a kernel thread from user space ?
    ... Is it possible to kill a kernel thread from user space. ... How about if I insert another kernel module and kill this busywait ...
    (Linux-Kernel)
  • Problems in Device Driver Development
    ... The pointer in the user space is passed to ... kernel thread, to an user space process. ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • kernel thread and cahche memeory at 2.4
    ... I am trying to understand whether there is any context ... I have a kernel module that runs a kernel thread. ... That thread generates an ICMP packet every 50 milisec. ...
    (Linux-Kernel)