Colin Percival
33812c066d
If sufficiently bad things happen during a call to kern_execve(), it is
...
possible for do_execve() to call exit1() rather than returning. As a
result, the sequence "allocate memory; call kern_execve; free memory"
can end up leaking memory.
This commit documents this astonishing behaviour and adds a call to
exec_free_args() before the exit1() call in do_execve(). Since all
the users of kern_execve() in the tree use exec_free_args() to free
the command-line arguments after kern_execve() returns, this should
be safe, and it fixes the memory leak which can otherwise occur.
Submitted by: Peter Holm
MFC after: 3 days
Security: Local denial of service
2005-10-03 12:49:54 +00:00
..
2005-09-28 07:03:03 +00:00
2005-09-19 13:59:57 +00:00
2005-09-27 14:36:59 +00:00
2005-09-21 15:28:07 +00:00
2005-09-17 22:01:14 +00:00
2005-10-01 19:21:03 +00:00
2005-10-03 06:57:29 +00:00
2005-08-26 11:16:39 +00:00
2005-09-26 14:14:55 +00:00
2005-09-15 21:10:12 +00:00
2005-10-03 12:49:54 +00:00
2005-09-02 20:20:01 +00:00
2005-09-15 20:08:21 +00:00
2005-09-28 00:30:56 +00:00
2005-09-30 06:09:41 +00:00
2005-10-02 10:03:51 +00:00
2005-08-02 20:03:23 +00:00
2005-09-27 20:28:43 +00:00
2005-08-21 18:03:31 +00:00
2005-09-02 20:21:49 +00:00
2005-07-30 09:02:42 +00:00
2005-10-01 18:56:19 +00:00
2005-10-02 23:27:56 +00:00
2005-09-27 18:09:42 +00:00
2005-09-27 18:07:05 +00:00
2005-09-22 15:34:15 +00:00
2005-08-03 01:23:45 +00:00
2005-08-08 21:06:42 +00:00
2005-09-19 22:16:31 +00:00
2005-09-30 06:09:41 +00:00
2005-09-15 20:20:36 +00:00
2005-09-18 21:40:15 +00:00
2005-08-28 05:38:40 +00:00
2005-08-28 04:50:11 +00:00
2005-09-22 01:19:37 +00:00
2005-09-17 22:01:14 +00:00
2005-09-24 19:31:10 +00:00
2005-07-31 10:46:55 +00:00
2005-09-27 21:12:05 +00:00
2005-08-07 02:20:35 +00:00
2005-07-29 13:22:37 +00:00
2005-09-26 16:55:11 +00:00
2005-09-26 08:02:24 +00:00
2005-09-28 18:06:25 +00:00
2005-09-15 19:05:37 +00:00
2005-08-29 11:34:08 +00:00
2005-09-29 19:13:52 +00:00
2005-09-26 18:30:12 +00:00
2005-08-19 13:35:34 +00:00
2005-09-27 14:36:59 +00:00
2005-09-27 14:32:04 +00:00
2005-08-06 07:20:18 +00:00
2005-08-08 19:55:32 +00:00
2005-08-08 19:55:32 +00:00
2005-08-30 21:31:42 +00:00
2005-09-18 10:30:10 +00:00
2005-09-18 10:30:10 +00:00
2005-09-18 21:08:03 +00:00
2005-09-23 12:41:06 +00:00
2005-09-17 22:01:14 +00:00
2005-09-30 18:07:41 +00:00
2005-08-13 20:21:33 +00:00
2005-08-17 06:59:23 +00:00
2005-09-27 18:09:42 +00:00
2005-09-24 23:47:04 +00:00
2005-09-12 01:48:57 +00:00
2005-09-21 19:49:42 +00:00
2005-09-02 13:37:54 +00:00
2005-09-30 01:30:01 +00:00
2005-09-24 23:47:04 +00:00
2005-08-03 04:48:22 +00:00