lkml.org 
[lkml]   [2013]   [Aug]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 2/3] fs/binfmts: Better handling of binfmt loops
On 08/02/2013 03:12 PM, Zach Levis wrote:

> + if (retval == -ELOOP && bprm->recursion_depth == 0) { /* cur, previous */
> + pr_err("Too much recursion with binfmts (0:%s, -1:%s) in file %s, skipping (base %s).\n",
> + bprm->previous_binfmts[0]->name,
> + bprm->previous_binfmts[1]->name,
> + bprm->filename,
> + fmt->name);
> +
> + /* Put argv back in its place */
> + bprm->p = bprm->p_no_argv;
> +
> + bprm->argc = count(*(bprm->argv_orig), MAX_ARG_STRINGS);
> + retval = copy_strings(bprm->argc, *(bprm->argv_orig), bprm);
> + if (retval < 0)
> + return retval;
> +
> + retval = -ENOEXEC;
> + continue;
> + }
> }
> read_unlock(&binfmt_lock);
>

NEVERMIND, I messed up the order here so this doesn't work! v3 coming up
without the stupid.



\
 
 \ /
  Last update: 2013-08-03 01:01    [W:0.180 / U:1.500 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site