--- zzzz-none-000/linux-2.6.19.2/fs/binfmt_misc.c 2007-01-10 19:10:37.000000000 +0000 +++ davinci-8020-5505/linux-2.6.19.2/fs/binfmt_misc.c 2007-01-19 14:42:56.000000000 +0000 @@ -113,9 +113,11 @@ struct files_struct *files = NULL; retval = -ENOEXEC; - if (!enabled) + if (!enabled || bprm->misc) goto _ret; + bprm->misc++; + /* to keep locking time low, we copy the interpreter string */ read_lock(&entries_lock); fmt = check_file(bprm);