Page 1 of 1

Compile error on Debian sid

PostPosted: Sun Jun 24, 2012 2:23 am
by fmarier
This the last bit of output when compiling using the default options in Debian unstable (using the make-kpkg tool):

Code: Select all
gcc -Wp,-MD,arch/x86/kernel/.stacktrace.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.7/include -I/usr/src/linux-3/arch/x86/include -Iarch/x86/include/generated -Iinclude  -include /usr/src/linux-3/include/linux/kconfig.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m64 -march=core2 -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -fstack-protector -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -Wframe-larger-than=2048 -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -pg -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO    -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(stacktrace)"  -D"KBUILD_MODNAME=KBUILD_STR(stacktrace)" -c -o arch/x86/kernel/.tmp_stacktrace.o arch/x86/kernel/stacktrace.c
In file included from /usr/src/linux-3/arch/x86/include/asm/uaccess.h:638:0,
                 from include/linux/uaccess.h:5,
                 from include/linux/regset.h:19,
                 from arch/x86/kernel/tls.c:5:
In function ‘__copy_from_user’,
    inlined from ‘regset_tls_set’ at arch/x86/kernel/tls.c:212:27:
/usr/src/linux-3/arch/x86/include/asm/uaccess_64.h:110:26: error: call to ‘copy_from_user_overflow’ declared with attribute error: copy_from_user() buffer size is not provably correct

Re: Compile error on Debian sid

PostPosted: Sun Jun 24, 2012 3:43 am
by PaX Team
you can't enable CONFIG_DEBUG_STRICT_USER_COPY_CHECKS until all affected copy*user calls are properly fixed.