Skip to content
  • Pekka Enberg's avatar
    slab: Generify kernel pointer validation · fc1c1833
    Pekka Enberg authored
    
    
    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: default avatarPekka Enberg <penberg@cs.helsinki.fi>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    fc1c1833