Al Viro
9fc658763b
[PATCH] missing helper - task_stack_page()
...
Patchset annotates arch/* uses of ->thread_info. Ones that really are about
access of thread_info of given process are simply switched to
task_thread_info(task); ones that deal with access to objects on stack are
switched to new helper - task_stack_page(). A _lot_ of the latter are
actually open-coded instances of "find where pt_regs are"; those are
consolidated into task_pt_regs(task) (many architectures actually have such
helper already).
Note that these annotations are not mandatory - any code not converted to
these helpers still works. However, they clean up a lot of places and have
actually caught a number of bugs, so converting out of tree ports would be a
good idea...
As an example of breakage caught by that stuff, see i386 pt_regs mess - we
used to have it open-coded in a bunch of places and when back in April Stas
had fixed a bug in copy_thread(), the rest had been left out of sync. That
required two followup patches (the latest - just before 2.6.15) _and_ still
had left /proc/*/stat eip field broken. Try ps -eo eip on i386 and watch the
junk...
This patch:
new helper - task_stack_page(task). Returns pointer to the memory object
containing task stack; usually thread_info of task sits in the beginning
of that object.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-01-12 09:08:50 -08:00
..
2006-01-07 13:52:45 +00:00
2006-01-08 20:14:02 -08:00
2006-01-09 15:25:07 -02:00
2006-01-06 14:58:39 -05:00
2006-01-09 22:51:46 +00:00
2005-12-18 16:28:24 -08:00
2006-01-05 12:20:02 -08:00
2005-10-31 16:36:08 -02:00
2006-01-10 12:54:34 -08:00
2006-01-07 12:57:38 -08:00
2006-01-09 15:59:24 -08:00
2006-01-06 08:34:10 -08:00
2006-01-06 14:58:59 -05:00
2005-11-13 18:14:17 -08:00
2006-01-08 20:14:03 -08:00
2006-01-06 09:01:25 -08:00
2006-01-08 20:14:07 -08:00
2005-11-29 16:16:41 -08:00
2005-10-28 08:16:49 -07:00
2005-12-14 19:03:35 -08:00
2005-10-30 17:37:21 -08:00
2006-01-03 13:11:06 -08:00
2006-01-09 09:26:40 -08:00
2006-01-06 08:33:26 -08:00
2006-01-08 20:13:47 -08:00
2006-01-10 20:35:03 -05:00
2006-01-10 08:01:35 -08:00
2006-01-11 18:42:13 -08:00
2005-11-18 22:00:17 +01:00
2006-01-07 16:15:52 +00:00
2005-11-13 18:14:10 -08:00
2005-12-12 08:57:42 -08:00
2006-01-10 08:01:33 -08:00
2006-01-08 20:14:02 -08:00
2006-01-08 20:14:02 -08:00
2006-01-10 08:32:35 -08:00
2006-01-08 20:14:02 -08:00
2005-11-06 10:22:04 +01:00
2006-01-03 11:45:28 -08:00
2005-11-10 15:33:38 -08:00
2005-11-07 07:53:52 -08:00
2005-11-28 14:42:23 -08:00
2005-12-06 19:35:11 -08:00
2005-10-30 17:37:21 -08:00
2006-01-08 20:13:44 -08:00
2006-01-09 14:15:37 -08:00
2006-01-08 20:14:07 -08:00
2006-01-08 20:13:58 -08:00
2006-01-03 13:11:21 -08:00
2006-01-04 16:18:08 -08:00
2006-01-06 08:34:01 -08:00
2006-01-11 19:04:51 -08:00
2005-11-03 13:53:34 +11:00
2005-11-17 16:23:43 +00:00
2005-11-17 16:23:42 +00:00
2006-01-10 00:09:36 +01:00
2006-01-08 20:13:49 -08:00
2006-01-03 15:25:45 -08:00
2005-11-05 21:00:02 -05:00
2006-01-09 15:59:24 -08:00
2005-12-12 22:31:17 -08:00
2005-11-13 18:14:10 -08:00
2006-01-06 13:08:20 -08:00
2006-01-04 16:18:08 -08:00
2005-11-12 10:14:02 -08:00
2005-11-09 07:55:57 -08:00
2006-01-10 08:01:34 -08:00
2005-11-13 18:14:10 -08:00
2006-01-06 08:33:56 -08:00
2005-10-30 17:37:32 -08:00
2005-11-10 02:26:41 +01:00
2005-11-12 10:55:21 +01:00
2006-01-11 19:04:51 -08:00
2005-11-13 18:14:13 -08:00
2005-11-19 22:17:55 +01:00
2006-01-10 08:01:39 -08:00
2006-01-06 08:33:23 -08:00
2006-01-05 22:16:26 -08:00
2005-10-28 14:02:10 -07:00
2005-10-28 14:02:10 -07:00
2005-10-28 14:02:10 -07:00
2005-10-28 14:02:09 -07:00
2006-01-09 15:25:37 -02:00
2006-01-05 22:16:24 -08:00
2006-01-06 08:33:54 -08:00
2006-01-09 15:59:27 -08:00
2005-11-08 17:14:08 +01:00
2005-11-10 13:03:08 -08:00
2006-01-08 20:14:07 -08:00
2005-11-08 09:40:47 -08:00
2006-01-03 13:11:23 -08:00
2005-11-09 07:55:57 -08:00
2006-01-06 13:24:54 -08:00
2005-11-13 18:14:16 -08:00
2005-12-12 08:57:43 -08:00
2006-01-04 16:18:09 -08:00
2006-01-09 16:03:03 +01:00
2005-11-07 07:54:07 -08:00
2006-01-06 13:24:29 -08:00
2005-11-07 07:53:43 -08:00
2005-12-21 22:56:42 +09:00
2006-01-07 12:57:33 -08:00
2006-01-06 08:33:53 -08:00
2006-01-08 20:14:07 -08:00
2006-01-10 08:02:01 -08:00
2005-11-09 07:55:57 -08:00
2006-01-06 08:33:59 -08:00
2006-01-09 15:59:24 -08:00
2005-11-07 14:18:56 +01:00
2005-11-07 14:18:56 +01:00
2006-01-10 08:01:35 -08:00
2006-01-10 08:01:59 -08:00
2005-11-07 07:53:37 -08:00
2006-01-10 08:01:25 -08:00
2006-01-10 08:01:28 -08:00
2005-10-30 17:37:23 -08:00
2006-01-08 20:13:53 -08:00
2006-01-08 20:13:53 -08:00
2005-10-30 17:37:32 -08:00
2006-01-04 16:18:08 -08:00
2006-01-11 18:42:12 -08:00
2005-10-30 17:37:17 -08:00
2006-01-10 08:01:37 -08:00
2006-01-06 09:01:25 -08:00
2006-01-10 08:01:24 -08:00
2006-01-09 15:59:27 -08:00
2005-10-28 08:16:47 -07:00
2005-10-29 21:40:44 -07:00
2006-01-08 20:12:39 -08:00
2006-01-08 20:13:44 -08:00
2006-01-08 20:12:41 -08:00
2006-01-11 18:42:13 -08:00
2006-01-11 19:01:11 -08:00
2005-10-28 14:02:15 -07:00
2005-10-30 17:37:26 -08:00
2006-01-06 21:17:50 +01:00
2006-01-10 08:01:34 -08:00
2006-01-08 20:13:46 -08:00
2006-01-11 08:14:16 -08:00
2006-01-11 08:14:16 -08:00
2005-12-24 15:37:00 -08:00
2006-01-10 08:01:31 -08:00
2005-11-07 18:18:10 -08:00
2006-01-06 08:33:20 -08:00
2006-01-08 20:14:07 -08:00
2006-01-03 13:11:15 -08:00
2005-12-01 02:20:20 -05:00
2006-01-10 12:54:29 -08:00
2006-01-07 12:57:42 -08:00
2005-11-10 02:26:40 +01:00
2006-01-06 14:58:52 -05:00
2006-01-06 14:58:58 -05:00
2006-01-06 14:58:48 -05:00
2006-01-06 14:58:51 -05:00
2005-10-30 17:37:21 -08:00
2006-01-06 08:33:29 -08:00
2005-11-13 18:14:12 -08:00
2006-01-08 20:13:52 -08:00
2006-01-06 08:33:58 -08:00
2006-01-08 20:14:07 -08:00
2006-01-11 19:05:01 -08:00
2006-01-09 15:03:17 +11:00
2005-11-10 16:09:15 -08:00
2006-01-09 12:13:21 -08:00
2006-01-08 20:13:59 -08:00
2006-01-03 13:10:24 -08:00
2005-11-09 07:55:57 -08:00
2005-11-05 14:40:55 -05:00
2006-01-09 15:59:24 -08:00
2006-01-03 13:11:05 -08:00
2006-01-04 16:18:09 -08:00
2005-11-13 18:14:10 -08:00
2005-11-13 18:14:10 -08:00
2006-01-09 15:47:16 +11:00
2006-01-03 12:31:30 +01:00
2006-01-10 08:01:39 -08:00
2005-11-08 09:40:47 -08:00
2005-12-22 09:17:39 -08:00
2005-11-08 17:57:30 -08:00
2006-01-08 20:14:04 -08:00
2005-11-07 18:18:09 -08:00
2005-11-07 07:53:39 -08:00
2006-01-08 20:13:48 -08:00
2005-11-06 12:32:31 -06:00
2006-01-06 08:33:32 -08:00
2006-01-03 13:10:56 -08:00
2006-01-10 08:42:50 -08:00
2006-01-09 15:59:24 -08:00
2006-01-08 20:13:51 -08:00
2006-01-10 08:01:53 -08:00
2005-11-07 07:53:46 -08:00
2005-11-07 07:53:46 -08:00
2005-11-07 07:53:47 -08:00
2006-01-06 08:33:27 -08:00
2005-11-07 14:25:38 +01:00
2006-01-08 20:13:47 -08:00
2005-12-19 13:54:44 -08:00
2005-10-29 21:40:35 -07:00
2005-10-30 11:14:39 +11:00
2006-01-12 09:08:50 -08:00
2006-01-10 08:01:42 -08:00
2006-01-08 20:14:07 -08:00
2006-01-08 20:14:02 -08:00
2006-01-03 13:10:24 -08:00
2005-11-07 07:53:41 -08:00
2005-11-06 09:07:03 +00:00
2005-11-28 18:09:44 +00:00
2005-10-29 19:31:54 +01:00
2005-10-30 17:37:32 -08:00
2005-11-07 07:53:37 -08:00
2006-01-08 20:13:53 -08:00
2006-01-07 12:57:33 -08:00
2006-01-08 20:13:41 -08:00
2005-11-13 18:14:13 -08:00
2005-11-23 08:44:05 -08:00
2006-01-03 13:11:14 -08:00
2006-01-08 20:14:02 -08:00
2005-12-26 00:33:41 +01:00
2005-11-09 07:55:57 -08:00
2005-11-07 07:53:28 -08:00
2006-01-06 08:33:40 -08:00
2006-01-08 20:12:42 -08:00
2006-01-08 20:13:45 -08:00
2006-01-09 10:03:44 -08:00
2006-01-08 20:12:40 -08:00
2006-01-03 13:10:58 -08:00
2005-10-30 17:37:32 -08:00
2005-11-13 18:14:14 -08:00
2006-01-10 08:01:39 -08:00
2006-01-10 08:01:38 -08:00
2005-10-30 17:37:18 -08:00
2006-01-12 09:08:50 -08:00
2006-01-10 08:01:59 -08:00
2006-01-10 08:01:59 -08:00
2006-01-10 08:01:59 -08:00
2005-10-28 08:16:46 -07:00
2006-01-03 13:19:13 +01:00
2006-01-03 13:19:13 +01:00
2006-01-03 13:19:13 +01:00
2006-01-03 13:11:21 -08:00
2005-11-20 00:51:33 -05:00
2005-10-28 08:16:49 -07:00
2005-10-28 16:47:45 -07:00
2006-01-04 13:51:42 -08:00
2006-01-04 18:44:12 -08:00
2005-10-28 16:47:46 -07:00
2006-01-09 15:32:31 -02:00
2006-01-09 15:32:31 -02:00
2005-11-09 07:56:23 -08:00
2005-10-29 21:40:35 -07:00
2005-11-07 07:53:41 -08:00
2006-01-08 20:14:07 -08:00
2006-01-08 20:12:40 -08:00
2006-01-08 20:13:47 -08:00
2005-10-28 14:02:12 -07:00
2006-01-10 08:01:29 -08:00
2006-01-03 13:10:24 -08:00
2006-01-10 08:01:57 -08:00
2005-10-29 15:04:02 +10:00