diff --git a/fs/exec.c b/fs/exec.c index 01829a1cb766966d521f55746fced1fe8fd50fae..e6770a526f349aaad7ad55c0081a867be0c6ac0c 100644 --- a/fs/exec.c +++ b/fs/exec.c @@ -1440,6 +1440,8 @@ int search_binary_handler(struct linux_binprm *bprm,struct pt_regs *regs) printable(bprm->buf[2]) && printable(bprm->buf[3])) break; /* -ENOEXEC */ + if (try) + break; /* -ENOEXEC */ request_module("binfmt-%04x", *(unsigned short *)(&bprm->buf[2])); #endif }