[kernel-hardening] Re: [PATCH 9/9] mm: SLUB hardened usercopy support

Christoph Lameter cl at linux.com
Fri Jul 8 23:45:54 AEST 2016


On Fri, 8 Jul 2016, Michael Ellerman wrote:

> > I wonder if this code should be using size_from_object() instead of s->size?
>
> Hmm, not sure. Who's SLUB maintainer? :)

Me.

s->size is the size of the whole object including debugging info etc.
ksize() gives you the actual usable size of an object.



More information about the Linuxppc-dev mailing list