Re: [PATCH 8/9] x86: Implement strict user copy checks for x86_64

From: Ingo Molnar
Date: Fri May 13 2011 - 06:16:12 EST



* Stephen Boyd <sboyd@xxxxxxxxxxxxxx> wrote:

> Strict user copy checks are only really supported on x86_32 even
> though the config option is selectable on x86_64. Add the
> necessary support to the 64 bit code to trigger copy_from_user()
> warnings at compile time.
>
> Cc: x86@xxxxxxxxxx
> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx>
> ---
> arch/x86/include/asm/uaccess_64.h | 12 +++++++++---
> arch/x86/lib/usercopy_64.c | 6 ++++++
> 2 files changed, 15 insertions(+), 3 deletions(-)

Very nice!

Acked-by: Ingo Molnar <mingo@xxxxxxx>

Thanks,

Ingo
--
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/