• P
    slab: Generify kernel pointer validation · fc1c1833
    Pekka Enberg 提交于
    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: NPekka Enberg <penberg@cs.helsinki.fi>
    Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
    fc1c1833
util.c 7.0 KB