kernel build error

Kumar amit mehta gmate.amit at gmail.com
Sun Mar 17 11:28:19 EDT 2013


I'm facing a kernel build issue with the latest kernel on my machine. It seem
like a configuration issue, and I haven't been able to resolve it for sometime,
hence need your help. The error message is as below:

<error snip>
ERROR: "copy_from_user_overflow" [net/core/pktgen.ko] undefined!
ERROR: "copy_from_user_overflow" [fs/binfmt_misc.ko] undefined!
ERROR: "copy_from_user_overflow" [drivers/staging/cxt1e1/cxt1e1.ko] undefined!
ERROR: "copy_from_user_overflow" [drivers/isdn/icn/icn.ko] undefined!
ERROR: "copy_from_user_overflow" [drivers/isdn/hardware/avm/b1.ko] undefined!
<error snip>

The subroutine "copy_from_user_overflow" is defined in lib/usercopy.c, and the
'Makefile' in the lib directory looks something like this:
<snip from lib/Makefile>
lib-$(CONFIG_ARCH_HAS_DEBUG_STRICT_USER_COPY_CHECKS) += usercopy.o
<snip from lib/Makefile>

I think that this config option should be a built-in ('y') and I see that this 
config option is indeed set to 'y' in the .config file.
<snip from .config>
amit at ubuntu:~/linux-next/linux-next$ grep
CONFIG_ARCH_HAS_DEBUG_STRICT_USER_COPY_CHECKS .config
CONFIG_ARCH_HAS_DEBUG_STRICT_USER_COPY_CHECKS=y
<snip from .config>

So what am I missing here ?

Some information about my git tree:
amit at ubuntu:~/linux-next/linux-next$ git remote show origin
* remote origin
  Fetch URL: git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git

amit at ubuntu:~/linux-next/linux-next$ git tag -l next-*|tail -n 1
next-20130314 <--- latest tag

amit at ubuntu:~/linux-next/linux-next$ git branch
* 15-March <--- --  branch based on the latest tag
  22-Feb-13

-Amit



More information about the Kernelnewbies mailing list