kdb version of acces_ok

Keith Owens kaos at sgi.com
Tue Oct 11 18:09:40 PDT 2005


On Tue, 11 Oct 2005 15:28:18 +0200, 
Olaf Hering <olh at suse.de> wrote:
>
>What is the kdb equivalent of access_ok()?

kdb_getarea() and kdb_getarea_size(), you would normally use
kdb_getarea().  It uses __copy_to_user_inatomic() to catch invalid
addresses and recover.

>I got this crash this morning
>with our SP3 kernel. It seems there are alot of places where the pointer
>is not checked before dereferencing it.

Sometimes it is not worth checking all the addresses in every kdb
routine.  You can just use the addresses and let kdb recover from the
error.

---------------------------
Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe.


More information about the kdb mailing list