Andrew Morton wrote: >OGAWA Hirofumi wrote: > > >>Andrew Morton writes: >> >> > + slab_bufctl(slabp)[objnr] = (unsigned long)caller; >> >> Umm... this patch looks strange.. >> >> slab_bufctl() returns "kmem_bufctl_t *", but kmem_bufctl_t is >> "unsigned short". >> >> > >Good point. This seems to work. > > > Two updates are needed for the leak detection in recent kernels: - set kmem_bufctl_t back to unsigned long - relax the check in check_slabuse, something like the attached patch. Note that the patch is not tested. -- Manfred