X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=fs%2Fexec.c;h=c4010b8207a144303ba498269427e42de1c72336;hb=b5d99ff9578318d47b08da3ebef6eb5228c634df;hp=9bdf0edf570dcc189edb608ccf2f2fba49634e1c;hpb=dae0b74eb7abd7d5c7572414b0c8f91c2dab63c0;p=linux-2.6-microblaze.git diff --git a/fs/exec.c b/fs/exec.c index 9bdf0edf570d..c4010b8207a1 100644 --- a/fs/exec.c +++ b/fs/exec.c @@ -199,8 +199,12 @@ static struct page *get_arg_page(struct linux_binprm *bprm, unsigned long pos, return NULL; } #endif - ret = get_user_pages(current, bprm->mm, pos, - 1, write, 1, &page, NULL); + /* + * We are doing an exec(). 'current' is the process + * doing the exec and bprm->mm is the new process's mm. + */ + ret = get_user_pages_remote(current, bprm->mm, pos, 1, write, + 1, &page, NULL); if (ret <= 0) return NULL;