* + exec-do-not-retry-load_binary-method-if-config_modules=n.patch added to -mm tree
@ 2011-07-11 20:14 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2011-07-11 20:14 UTC (permalink / raw)
To: mm-commits; +Cc: penguin-kernel
The patch titled
exec: do not retry load_binary method if CONFIG_MODULES=n
has been added to the -mm tree. Its filename is
exec-do-not-retry-load_binary-method-if-config_modules=n.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find
out what to do about this
The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/
------------------------------------------------------
Subject: exec: do not retry load_binary method if CONFIG_MODULES=n
From: Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>
If CONFIG_MODULES=n, it makes no sense to retry the list of binary formats
handler because the list will not be modified by request_module().
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: Richard Weinberger <richard@nod.at>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
fs/exec.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff -puN fs/exec.c~exec-do-not-retry-load_binary-method-if-config_modules=n fs/exec.c
--- a/fs/exec.c~exec-do-not-retry-load_binary-method-if-config_modules=n
+++ a/fs/exec.c
@@ -1422,9 +1422,9 @@ int search_binary_handler(struct linux_b
}
}
read_unlock(&binfmt_lock);
+#ifdef CONFIG_MODULES
if (retval != -ENOEXEC || bprm->mm == NULL) {
break;
-#ifdef CONFIG_MODULES
} else {
#define printable(c) (((c)=='\t') || ((c)=='\n') || (0x20<=(c) && (c)<=0x7e))
if (printable(bprm->buf[0]) &&
@@ -1435,8 +1435,10 @@ int search_binary_handler(struct linux_b
if (try)
break; /* -ENOEXEC */
request_module("binfmt-%04x", *(unsigned short *)(&bprm->buf[2]));
-#endif
}
+#else
+ break;
+#endif
}
return retval;
}
_
Patches currently in -mm which might be from penguin-kernel@i-love.sakura.ne.jp are
exec-do-not-retry-load_binary-method-if-config_modules=n.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-07-11 20:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-11 20:14 + exec-do-not-retry-load_binary-method-if-config_modules=n.patch added to -mm tree akpm
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.