Re: [PATCH 0/4] x86: FPU detection in C

From: Ingo Molnar
Date: Wed Apr 10 2013 - 08:25:35 EST



* Borislav Petkov <bp@xxxxxxxxx> wrote:

> On Wed, Apr 10, 2013 at 01:08:40PM +0200, Ingo Molnar wrote:
> > Config attached.
>
> How do you even build this? I tried tip:x86/cpu but it fails here:
>
> drivers/misc/lkdtm.c: In function ???recursive_loop.constprop.3???:
> drivers/misc/lkdtm.c:276:1: warning: the frame size of 1028 bytes is larger than 1024 bytes [-Wframe-larger-than=]
> In file included from /w/kernel/linux-2.6/arch/x86/include/asm/uaccess.h:537:0,
> from include/linux/uaccess.h:5,
> from include/linux/highmem.h:8,
> from include/linux/pagemap.h:10,
> from fs/binfmt_misc.c:27:
> /w/kernel/linux-2.6/arch/x86/include/asm/uaccess_32.h: In function ???parse_command.part.2???:
> /w/kernel/linux-2.6/arch/x86/include/asm/uaccess_32.h:211:26: error: call to ???copy_from_user_overflow??? declared with attribute error: copy_from_user() buffer size is not provably correct
> make[1]: *** [fs/binfmt_misc.o] Error 1
> make[1]: *** Waiting for unfinished jobs....
> make: *** [fs] Error 2
> make: *** Waiting for unfinished jobs....
>
> because of CONFIG_DEBUG_STRICT_USER_COPY_CHECKS=y.

In my builds I disable that. So I'd suggest to disable that bit in the .config and
retry.

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/