lkml.org 
[lkml]   [1999]   [Jul]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subjectreading from invalid mem...
Date
Hello.

I ran across this while testing my driver. I forgot to check for mmap
failure for one case, and it returned -1.
trying to access this space just hung this process, rest of system is fine.
is this a known problem?

i tried a simple program like

main()
{
int *ptr, i;
printf("reading illegal ptr\n");
ptr = (void *) -1;
i = *ptr;
}

this program never dies or can be killed.? this is 2.2 kernel on 2.0.36 this
one core dumps as expected...

Cheers,
ashokr

Plug-and-Play is really nice, unfortunately it only works 50% of the time.
To be specific the "Plug" almost always works.
--unknown source

----------------------------------------------------------------------------
-------------
Ashok Raj Phone : (503)-677-6928
NGIO Division Fax : (503)-690-4302
Core Software Group email : ashok.raj@intel.com
M/S : CO3-208
----------------------------------------------------------------------------
-------------



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:53    [W:0.497 / U:2.172 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site