Re: [patch V4 06/15] x86/entry: Consolidate check_user_regs()

From: Andy Lutomirski
Date: Mon Jul 27 2020 - 18:40:08 EST


On Tue, Jul 21, 2020 at 4:08 AM Thomas Gleixner <tglx@xxxxxxxxxxxxx> wrote:
>
> From: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
>
> The user register sanity check is sprinkled all over the place. Move it
> into enter_from_user_mode().
>
> Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
> Reviewed-by: Kees Cook <keescook@xxxxxxxxxxxx>

Acked-by: Andy Lutomirski <luto@xxxxxxxxxx>