Files
ubports_kernel_google_msm/include/linux
Oleg Nesterov 114279be21 exec: copy-and-paste the fixes into compat_do_execve() paths
Note: this patch targets 2.6.37 and tries to be as simple as possible.
That is why it adds more copy-and-paste horror into fs/compat.c and
uglifies fs/exec.c, this will be cleanuped later.

compat_copy_strings() plays with bprm->vma/mm directly and thus has
two problems: it lacks the RLIMIT_STACK check and argv/envp memory
is not visible to oom killer.

Export acct_arg_size() and get_arg_page(), change compat_copy_strings()
to use get_arg_page(), change compat_do_execve() to do acct_arg_size(0)
as do_execve() does.

Add the fatal_signal_pending/cond_resched checks into compat_count() and
compat_copy_strings(), this matches the code in fs/exec.c and certainly
makes sense.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: stable@kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-11-30 17:56:38 -08:00
..
2010-11-15 20:44:26 -05:00
2010-10-30 08:31:35 -07:00
2010-10-26 14:51:00 -04:00
2010-10-30 08:45:43 -04:00
2010-11-10 14:54:09 +01:00
2010-11-10 14:54:09 +01:00
2010-11-10 14:54:09 +01:00
2010-10-28 17:22:16 -04:00
2010-11-17 14:55:45 +09:00
2010-11-25 06:50:38 +09:00
2010-11-15 22:40:38 +01:00
2010-11-15 22:40:38 +01:00
2010-10-26 16:52:08 -07:00
2010-10-28 17:22:13 -04:00
2010-11-12 07:55:32 -08:00
2010-11-16 13:33:23 -08:00
2010-10-28 09:08:47 -05:00
2010-10-26 16:52:05 -07:00
2010-11-12 07:55:32 -08:00
2010-10-29 04:16:31 -04:00
2010-10-27 18:03:16 -07:00
2010-10-30 12:12:50 +02:00
2010-10-27 17:28:36 +01:00
2010-10-26 16:52:03 -07:00
2010-11-08 12:28:32 -08:00
2010-10-26 16:52:14 -07:00