Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Sarvani_C_
Beginner
168 Views

Undefined symbol error "check_object_size" for loadable Kernel driver on WindRiver 4.3.

Hi,

We are cross-building a loadable kernel driver for a PowerPC (e500v2 P2020 CPU) platform on WindRiver 4.3.0.0 Standard Version ( Kernel Version 2.6.34.10-WR4-3.0.0_Std ). The Kernel source version is WR4.3.0.0_standard ( Kernel version 2.6.34.13-grsec-WR4.3.0.0_standard).

When we build a loadable kernel module under WRL 4.3, the resulting .ko file has a reference to a function
called check_object_size  Our .config file shows grsecurity and pax as disabled, and we removed localversion-grsec from linux build directory, so we don't know how this symbol is being pulled in. This problem is preventing us from loading the module (with modprobe
or insmod) on our PowerPC target board, which has WRL 2.6.34.10 and no grsecurity patch -- we get an undefined symbol error.

The root question is which function is calling check_object_size function() ?
 

-- 
Thanks!

Regards,
Sarvani Chadalapaka
HPC Systems Engineer
Signalogic Inc.
0 Kudos
2 Replies
Yang_W_Intel
Employee
168 Views

You may check the kernel file linux-VERSION/arch/powerpc/include/asm/uaccess.h, the copy*user function is patched with check_object_size function. In your kernel module file, you may have copy*user functions which may be the root function. See details from: http://pax.grsecurity.net/pax-linux-2.6.32.59-201210022100.patch, search check_object_size

thanks.

-Yang

 

Yang_W_Intel
Employee
168 Views

By the way, I would suggest you to contact your Wind River supporting team in order to get the prompt response. It is a Wind River linux kernel specific question for PPC. You may get fast response from Wind River supporting team.

thanks.

-Yang

Reply