I'm having problem loading my audio driver module ( size 10MB ) on RHEL5 default kernel. It prompt error "Unable to allocate memory".......
Thus, I tried compiling my own vanilla kernel (ver 126.96.36.199) to debug this issue. Surprisingly, I'm able to load my module ! Problem now is I can't debug RH5 kernel cos it doesn't come with the source (module.c) which i need to trace into......
Using kernel 188.8.131.52 (module.c) , I believe the problem could be here :
static struct module *load_module(.....)
/* Suck in entire file: we'll want most of it. */
/* vmalloc barfs on "unusual" numbers. Check here */
if (len > 64 * 1024 * 1024 || (hdr = vmalloc(len)) == NULL)
return ERR_PTR(-ENOMEM); // RHEL5 COULD BE FAILING HERE....
Is there any way to find ! out what's the max size RHEL5 kernel module.c used for checking ?
Get your free suite of Windows Live services! Windows Live