Eric W. Biederman
0e25498f8c
exit: Add and use make_task_dead.
...
There are two big uses of do_exit. The first is it's design use to be
the guts of the exit(2) system call. The second use is to terminate
a task after something catastrophic has happened like a NULL pointer
in kernel code.
Add a function make_task_dead that is initialy exactly the same as
do_exit to cover the cases where do_exit is called to handle
catastrophic failure. In time this can probably be reduced to just a
light wrapper around do_task_dead. For now keep it exactly the same so
that there will be no behavioral differences introducing this new
concept.
Replace all of the uses of do_exit that use it for catastraphic
task cleanup with make_task_dead to make it clear what the code
is doing.
As part of this rename rewind_stack_do_exit
rewind_stack_and_make_dead.
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com >
2021-12-13 12:04:45 -06:00
..
2021-08-26 21:21:07 +10:00
2021-09-08 15:32:35 -07:00
2021-06-17 00:09:00 +10:00
2021-04-30 12:22:28 -07:00
2021-07-29 23:13:12 +10:00
2021-10-22 15:22:05 +11:00
2021-09-30 16:13:11 +02:00
2021-10-27 22:30:32 +11:00
2020-10-25 14:51:49 -07:00
2021-08-04 10:53:39 +10:00
2021-10-27 22:30:32 +11:00
2020-06-02 20:59:11 +10:00
2020-12-05 21:49:18 +11:00
2020-12-04 01:01:29 +11:00
2021-01-29 10:05:51 +05:30
2021-06-17 00:09:00 +10:00
2021-08-13 22:04:26 +10:00
2021-02-09 00:10:49 +11:00
2021-09-30 17:10:17 +10:00
2021-11-06 13:30:41 -07:00
2021-08-13 22:04:26 +10:00
2021-10-18 09:20:15 -05:00
2020-10-07 22:34:47 +11:00
2020-07-26 23:34:20 +10:00
2021-11-06 14:36:12 -07:00
2021-08-25 13:35:47 +10:00
2021-08-15 13:49:24 +10:00
2021-06-17 00:09:00 +10:00
2021-08-26 21:21:07 +10:00
2021-10-07 19:54:55 +11:00
2021-08-13 22:04:26 +10:00
2021-10-09 00:15:59 +11:00
2021-08-18 23:49:55 +10:00
2021-08-25 13:35:47 +10:00
2021-11-01 21:39:03 +11:00
2021-06-25 00:07:10 +10:00
2021-06-17 00:09:10 +10:00
2021-08-25 13:35:47 +10:00
2021-07-26 20:38:51 +10:00
2021-08-07 08:53:59 +10:00
2021-10-29 23:12:37 +11:00
2021-09-03 11:22:50 -07:00
2021-10-22 15:22:06 +11:00
2021-08-13 22:04:26 +10:00
2021-03-29 13:22:10 +11:00
2021-10-20 21:37:58 +11:00
2021-03-29 13:22:10 +11:00
2020-11-24 16:47:35 +01:00
2021-09-13 22:34:11 +10:00
2021-10-27 22:33:47 +11:00
2021-05-28 22:54:27 +10:00
2020-12-04 01:01:09 +11:00
2021-09-03 11:22:50 -07:00
2021-10-07 19:54:55 +11:00
2021-04-30 11:20:40 -07:00
2021-06-17 00:09:00 +10:00
2021-08-13 22:04:26 +10:00
2021-06-25 00:06:55 +10:00
2021-10-27 11:21:49 -04:00
2021-09-30 21:24:06 -04:00
2021-10-18 16:33:03 +02:00
2020-10-08 21:17:13 +11:00
2021-05-12 11:07:39 +10:00
2021-10-27 22:30:32 +11:00
2021-06-21 21:13:19 +10:00
2021-09-13 22:34:12 +10:00
2021-08-25 13:35:47 +10:00
2021-08-25 13:35:47 +10:00
2021-08-25 13:35:47 +10:00
2021-06-16 00:16:48 +10:00
2021-06-16 00:16:48 +10:00
2021-06-21 21:13:20 +10:00
2021-03-08 11:43:27 +01:00
2020-07-26 23:34:19 +10:00
2021-04-21 22:52:32 +10:00
2021-09-30 21:24:06 -04:00
2021-11-06 13:30:41 -07:00
2021-04-30 11:20:40 -07:00
2021-02-09 00:01:05 +11:00
2021-09-21 15:26:09 -05:00
2021-10-15 11:25:14 +02:00
2021-09-03 15:33:47 -07:00
2021-09-03 15:33:47 -07:00
2021-08-25 13:35:47 +10:00
2020-06-09 09:39:13 -07:00
2021-04-14 23:04:16 +10:00
2021-06-25 14:47:20 +10:00
2021-08-19 09:02:55 +09:00
2021-08-10 23:14:56 +10:00
2020-07-16 14:49:53 +10:00
2021-10-07 19:52:58 +11:00
2021-06-17 00:09:00 +10:00
2021-11-06 13:30:42 -07:00
2021-11-06 14:08:17 -07:00
2021-02-09 00:10:50 +11:00
2021-11-19 09:15:58 -06:00
2021-11-19 09:15:58 -06:00
2021-09-22 10:24:01 -04:00
2021-05-12 11:07:39 +10:00
2021-11-02 22:22:13 -07:00
2021-09-30 21:24:06 -04:00
2021-10-22 15:22:05 +11:00
2020-06-02 20:59:11 +10:00
2021-10-22 15:22:05 +11:00
2021-10-22 15:22:05 +11:00
2021-02-11 23:35:07 +11:00
2021-08-25 13:35:48 +10:00
2021-10-09 00:16:00 +11:00
2021-04-14 23:04:16 +10:00
2021-08-20 17:00:53 +10:00
2021-10-22 15:22:05 +11:00
2020-10-06 23:22:25 +11:00
2021-12-13 12:04:45 -06:00
2021-06-21 21:16:31 +10:00
2021-08-19 09:02:55 +09:00
2021-06-25 00:06:55 +10:00
2021-01-30 22:23:42 +11:00
2021-01-30 22:23:42 +11:00
2021-04-14 23:04:44 +10:00
2021-08-18 23:49:55 +10:00
2021-10-14 21:47:34 +11:00
2021-08-30 16:36:10 +02:00