Skip to contentSkip to conversation

Kernel Module

DISCUSSION Femitha Majeed 2 participants 2 messages Nov 10, 2001 – Nov 11, 2001 SELinux security module

lore
Share & tools
lore
#0 lore raw

Hi,

I am trying to write a kernel module, but I get the follwing error when I do "insmod filename.o"

Unable to handle kernel NULL pointer dereference at virtual address ...

I am using kmalloc to allocate memory. I have also used filp_open to open a directory and sys_getdents to read directory. Does any of these calls cause the above problem?

I am very new to writing kernel modules. I would be grateful if you would reply to this.

Thanks,
Femitha.

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#1 lore raw
Quoted 8 lines · --On Saturday, 10 November, 2001 17:22 +0000 Femitha Majeed…

Hi,

I am trying to write a kernel module, but I get the follwing error when I do "insmod filename.o"

Unable to handle kernel NULL pointer dereference at virtual address ...

you don't mention anything about a particular version of selinux, so this may not be relevant, but stephen smalley posted a patch to the selinux security module which was noticed when people noticed this particular problem when attempting to install or run mozilla. the message was dated 22 oct. 2001 and would apply to the 2.4.12-lsm based distribution.

if you don't have the message in question, i (or others) could forward it, or it is presumably available in an archive.

-paul

--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.