Re: [patch 3/3] [PATCH] prctl: Add PR_SET_MM codes to set upmm_struct entires v3
From: Kees Cook
Date: Mon Dec 12 2011 - 15:39:03 EST
On Mon, Dec 12, 2011 at 12:06 PM, Cyrill Gorcunov <gorcunov@xxxxxxxxxx> wrote:
> When we restore a task we need to set up text, data and data
> heap sizes from userspace to the values a task had at
> checkpoint time. This patch adds auxilary prctl codes for that.
> ...
> Signed-off-by: Cyrill Gorcunov <gorcunov@xxxxxxxxxx>
Looks good; I like having this wrapped in CONFIG_CHECKPOINT_RESTORE.
> +#ifdef CONFIG_CHECKPOINT_RESTORE
> +static int prctl_set_mm(int opt, unsigned long addr,
> + unsigned long arg4, unsigned long arg5)
> ...
> +#else /* CONFIG_CHECKPOINT_RESTORE */
> +static int prctl_set_mm(int opt, unsigned long addr)
These need to have matching argument lists.
Reviewed-by: Kees Cook <keescook@xxxxxxxxxxxx>
-Kees
--
Kees Cook
ChromeOS Security
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/