Oleg Nesterov
7b34e4283c
introduce PF_KTHREAD flag
...
Introduce the new PF_KTHREAD flag to mark the kernel threads. It is set
by INIT_TASK() and copied to the forked childs (we could set it in
kthreadd() along with PF_NOFREEZE instead).
daemonize() was changed as well. In that case testing of PF_KTHREAD is
racy, but daemonize() is hopeless anyway.
This flag is cleared in do_execve(), before search_binary_handler().
Probably not the best place, we can do this in exec_mmap() or in
start_thread(), or clear it along with PF_FORKNOEXEC. But I think this
doesn't matter in practice, and if do_execve() fails kthread should die
soon.
Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru >
Cc: Roland McGrath <roland@redhat.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2008-07-25 10:53:39 -07:00
..
2008-07-25 09:28:09 -07:00
2008-07-25 10:53:30 -07:00
2008-07-23 18:24:08 -07:00
2008-07-23 08:12:26 -07:00
2008-07-21 21:55:03 -07:00
2008-07-21 10:11:00 -07:00
2008-07-25 10:53:34 -07:00
2008-07-21 17:05:25 +10:00
2008-07-25 10:53:30 -07:00
2008-07-20 21:21:46 -07:00
2008-07-25 10:53:29 -07:00
2008-07-24 10:47:24 -07:00
2008-07-24 10:47:27 -07:00
2008-07-24 10:47:41 -07:00
2008-07-24 10:47:24 -07:00
2008-07-24 10:47:33 -07:00
2008-07-22 09:59:40 -07:00
2008-07-24 10:47:33 -07:00
2008-07-24 10:47:22 -07:00
2008-07-24 10:47:20 -07:00
2008-07-25 10:53:37 -07:00
2008-07-25 10:53:33 -07:00
2008-07-23 19:36:53 -07:00
2008-07-20 17:12:38 -07:00
2008-07-22 17:30:57 -07:00
2008-07-21 21:54:59 -07:00
2008-07-21 12:00:37 +01:00
2008-07-21 21:54:53 -07:00
2008-07-25 10:53:34 -07:00
2008-07-21 12:00:37 +01:00
2008-07-22 10:39:36 +10:00
2008-07-21 21:54:53 -07:00
2008-07-24 10:47:29 -07:00
2008-07-24 10:47:29 -07:00
2008-07-25 10:53:31 -07:00
2008-07-25 10:53:32 -07:00
2008-07-24 10:47:41 -07:00
2008-07-22 19:09:51 -07:00
2008-07-24 10:47:29 -07:00
2008-07-20 17:12:36 -07:00
2008-07-24 10:47:20 -07:00
2008-07-25 10:53:30 -07:00
2008-07-20 17:12:36 -07:00
2008-07-23 15:25:21 +02:00
2008-07-24 10:47:19 -07:00
2008-07-20 07:18:38 -03:00
2008-07-24 22:53:33 +02:00
2008-07-25 10:53:39 -07:00
2008-07-25 10:53:28 -07:00
2008-07-24 10:47:29 -07:00
2008-07-21 00:55:14 -04:00
2008-07-21 13:41:16 -07:00
2008-07-25 10:53:26 -07:00
2008-07-20 17:12:37 -07:00
2008-07-25 10:53:29 -07:00
2008-07-25 10:53:34 -07:00
2008-07-25 10:53:29 -07:00
2008-07-25 10:53:28 -07:00
2008-07-24 10:47:17 -07:00
2008-07-25 10:53:30 -07:00
2008-07-24 19:11:15 -07:00
2008-07-24 10:47:40 -07:00
2008-07-23 09:49:56 +01:00
2008-07-23 09:49:56 +01:00
2008-07-25 10:53:27 -07:00
2008-07-24 10:47:41 -07:00
2008-07-25 10:53:37 -07:00
2008-07-24 10:47:21 -07:00
2008-07-24 10:47:21 -07:00
2008-07-24 10:47:21 -07:00
2008-07-24 10:47:21 -07:00
2008-07-24 10:47:24 -07:00
2008-07-25 10:53:34 -07:00
2008-07-25 10:53:29 -07:00
2008-07-22 14:09:06 -07:00
2008-07-25 10:53:37 -07:00
2008-07-22 10:39:30 +10:00
2008-07-24 10:47:15 -07:00
2008-07-24 10:47:15 -07:00
2008-07-24 11:50:15 -07:00
2008-07-23 12:03:18 -07:00
2008-07-22 14:25:38 -07:00
2008-07-24 10:47:23 -07:00
2008-07-22 14:19:19 -07:00
2008-07-25 10:53:27 -07:00
2008-07-25 10:53:35 -07:00
2008-07-25 10:53:35 -07:00
2008-07-25 10:53:29 -07:00
2008-07-25 10:53:29 -07:00
2008-07-25 10:53:33 -07:00
2008-07-25 10:53:26 -07:00
2008-07-25 10:53:37 -07:00
2008-07-24 10:47:33 -07:00
2008-07-23 14:42:09 +02:00
2008-07-25 10:53:39 -07:00
2008-07-24 10:47:22 -07:00
2008-07-24 08:31:21 -04:00
2008-07-24 10:47:24 -07:00
2008-07-24 10:47:29 -07:00
2008-07-24 10:47:21 -07:00
2008-07-25 10:53:30 -07:00
2008-07-25 10:53:26 -07:00
2008-07-25 10:53:26 -07:00
2008-07-20 17:12:37 -07:00
2008-07-24 10:47:13 -07:00
2008-07-22 13:03:29 -07:00
2008-07-24 10:47:29 -07:00
2008-07-21 21:55:02 -07:00
2008-07-21 21:55:01 -07:00
2008-07-24 10:47:29 -07:00
2008-07-22 13:03:28 -07:00
2008-07-20 17:12:34 -07:00
2008-07-22 13:03:27 -07:00
2008-07-25 10:53:26 -07:00
2008-07-21 21:54:55 -07:00
2008-07-21 15:16:40 -07:00
2008-07-21 15:15:55 -07:00
2008-07-20 07:17:02 -03:00
2008-07-25 12:06:04 +10:00
2008-07-25 12:06:04 +10:00
2008-07-25 12:06:05 +10:00
2008-07-25 12:06:12 +10:00
2008-07-25 12:06:04 +10:00
2008-07-25 12:06:04 +10:00
2008-07-25 12:06:04 +10:00
2008-07-25 12:06:14 +10:00
2008-07-25 12:06:04 +10:00
2008-07-24 10:47:14 -07:00
2008-07-24 10:47:23 -07:00