Re: How is NULL pointer dereference handled inside kernel?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Thu, 18 Nov 2004 10:27:49 +0530, Mandeep Sandhu
<mandeep_sandhu@xxxxxxxxxxx> wrote:
> Hi all,
> 
> a basic question. How does the kernel handle NULL pointer
> dereferencing inside kernel space. Supposing I initialise a pointer
> to NULL (i.e 0), and derefernce it then why do I get an oops?
> Is 0 not a valid address? Also I've heard that the value of NULL can
> change from processor to processor (I think on PowerPC 0 is a valid
> address).

Please consult: http://www.eskimo.com/~scs/C-faq/s5.html for a rather
complete discussion of NULL pointers. Google is your friend (sometimes
more than the ML :) )

-Nish

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux