]> git.baikalelectronics.ru Git - kernel.git/commit
slab: Generify kernel pointer validation
authorPekka Enberg <penberg@cs.helsinki.fi>
Wed, 7 Apr 2010 16:23:40 +0000 (19:23 +0300)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 9 Apr 2010 17:09:50 +0000 (10:09 -0700)
commitb7ff7a070af1cf7964007e2cd04b3c0bb0303f05
tree25fc50112c80402ab43bd86a3d6b6a99a0c3c128
parent54e5f17607ef153ac158febc810ed3da9b403d8e
slab: Generify kernel pointer validation

As suggested by Linus, introduce a kern_ptr_validate() helper that does some
sanity checks to make sure a pointer is a valid kernel pointer.  This is a
preparational step for fixing SLUB kmem_ptr_validate().

Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Christoph Lameter <cl@linux-foundation.org>
Cc: David Rientjes <rientjes@google.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Matt Mackall <mpm@selenic.com>
Cc: Nick Piggin <npiggin@suse.de>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/slab.h
mm/slab.c
mm/util.c