Re: Dereferenced null pointer

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

 



oh my gaaawd !!! what the world is coming too...i better run for cover.

"Preetham D Naik" <pdn@sasken.com> writes:

> SO HOW CAN NULL PTR DEREFERENCING HAPPEN IN SUCH AN OS...ARE THE POINTERS
> NOT CHECKED FOR NULL!!!
> "David Gillies" <daggillies@yahoo.com> wrote in message
> 20040106165254.79887.qmail@web41409.mail.yahoo.com">news:20040106165254.79887.qmail@web41409.mail.yahoo.com...
>> The usual result will be instant and spectacular
>> failure (the kernel hanging is unlikely). Your kernel
>> will oops, and you will see something like the
>
>> following:
>>
>> Unable to handle kernel NULL pointer dereference at
>> virtual address 00000000
>> printing eip:
>> c48370c3
>> *pde = 00000000
>> Oops: 0002
>> CPU: 0
>> EIP: 0010:[<c48370c3>]
>> EFLAGS: 00010286
>> eax: ffffffea ebx: c2281a20 ecx: c48370c0 edx:
>> c2281a40
>> esi: 4000c000 edi: 4000c000 ebp: c38adf8c esp:
>> c38adf8c ds: 0018 es: 0018 ss: 0018
>> Process ls (pid: 23171, stackpage=c38ad000)
>> Stack: 0000010e c01356e6 c2281a20 4000c000 0000010e
>> ...
>> ...
>> ...
>> [from Rubini and Corbet]
>>
>> and you will most certainly have to reboot the
>> machine. Whether anything worse happens is
>> indeterminable - if you're writing to a device and the
>> kernel throws its hands up then you run the risk of a
>> corrupt filesystem, for example. Don't develop
>> filesystem drivers on hardware containing data you
>> care about.
>>
>> Best Wishes
>>
>> David Gillies
>> San Jose
>> Costa Rica
>>
>> --- Frank.A.Uepping@t-online.de wrote:
>> > What happens when a null pointer is dereferenced in
>> > the Linux kernel?
>> > How fatal is this to the running kernel/system?
>> > Is there need to reboot the kernel?
>> >
>> > /FAU
>> >
>> >
>> > --
>> > Kernelnewbies: Help each other learn about the Linux
>> > kernel.
>> > Archive:
>> > http://mail.nl.linux.org/kernelnewbies/
>> > FAQ:           http://kernelnewbies.org/faq/
>> >
>>
>>
>> __________________________________
>> Do you Yahoo!?
>> Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
>> http://hotjobs.sweepstakes.yahoo.com/signingbonus
>>
>> --
>> Kernelnewbies: Help each other learn about the Linux kernel.
>> Archive:       http://mail.nl.linux.org/kernelnewbies/
>> FAQ:           http://kernelnewbies.org/faq/
>>
>
> ***********************************************************************
>
> PLEASE VISIT US AT STAND E13B, AT 3GSM WORLD CONGRESS 2004, CANNES.
>
> ********************************************************************
>
> SASKEN BUSINESS DISCLAIMER
>
> This message may contain confidential, proprietary or legally Privileged information. In case you are not the original intended Recipient of the message, you must not, directly or indirectly, use, Disclose, distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. Any views expressed in this message are those of the individual sender unless otherwise stated. Nothing contained in this message shall be construed as an offer or acceptance of any offer by Sasken Communication Technologies Limited ("Sasken") unless sent with that express intent and with due authority of Sasken. Sasken has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email.
>
> ***********************************************************************


--
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