KMEM_PTR_VALIDATE

Section: (9)
Updated: 09 October 2005
Index Return to Main Contents

 

NAME

kmem_ptr_validate - check if an untrusted pointer might  

SYNOPSIS

"SYNOPSIS"

int fastcall kmem_ptr_validate (kmem_cache_t * cachep, void * ptr);  

ARGUMENTS

cachep
the cache we're checking against
ptr
pointer to validate
 

DESCRIPTION

be a slab entry.  

THIS VERIFIES THAT THE UNTRUSTED POINTER LOOKS SANE

it is _not_ a guarantee that the pointer is actually part of the slab cache in question, but it at least validates that the pointer can be dereferenced and looks half-way sane.

Currently only used for dentry validation.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION
THIS VERIFIES THAT THE UNTRUSTED POINTER LOOKS SANE

This document was created by man2html, using the manual pages.
Time: 00:02:22 GMT, October 09, 2005