diff options
Diffstat (limited to 'fs/exec.c')
-rw-r--r-- | fs/exec.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -198,8 +198,12 @@ static struct page *get_arg_page(struct linux_binprm *bprm, unsigned long pos, | |||
198 | return NULL; | 198 | return NULL; |
199 | } | 199 | } |
200 | #endif | 200 | #endif |
201 | ret = get_user_pages(current, bprm->mm, pos, | 201 | /* |
202 | 1, write, 1, &page, NULL); | 202 | * We are doing an exec(). 'current' is the process |
203 | * doing the exec and bprm->mm is the new process's mm. | ||
204 | */ | ||
205 | ret = get_user_pages_remote(current, bprm->mm, pos, 1, write, | ||
206 | 1, &page, NULL); | ||
203 | if (ret <= 0) | 207 | if (ret <= 0) |
204 | return NULL; | 208 | return NULL; |
205 | 209 | ||