Re: [PATCH -next] Hibernate: Do not oops on resume if image dataare incorrect

From: Pavel Machek
Date: Sat Nov 08 2008 - 08:08:23 EST


On Sat 2008-11-08 13:57:42, Rafael J. Wysocki wrote:
> Hi Len,
>
> Please add this patch to the suspend branch.
>
> Thanks,
> Rafael
>
>
> ---
> From: Rafael J. Wysocki <rjw@xxxxxxx>
> Subject: Hibernate: Do not oops on resume if image data are incorrect
>
> During resume from hibernation using the userland interface image
> data are being passed from the used space process to the kernel.
> These data need not be valid, but currently the kernel sometimes
> oopses if it gets invalid image data, which is wrong. Make the
> kernel return error codes to the user space in such cases.

(Note that userspace will still be able to make it crash / execute
arbitrary code later in the game, by supplying carefully damaged
image. But that's okay and that will always be the case.)

> Signed-off-by: Rafael J. Wysocki <rjw@xxxxxxx>
> Cc: Pavel Machek <pavel@xxxxxxx>

Looks okay to me.

Acked-by: Pavel Machek <pavel@xxxxxxx>

...and thanks :-).
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
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/