Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Fri, 8 Jul 2016 08:45:54 -0500 (CDT)
From: Christoph Lameter <cl@...ux.com>
To: Michael Ellerman <mpe@...erman.id.au>
cc: Kees Cook <keescook@...omium.org>, 
    "kernel-hardening@...ts.openwall.com" <kernel-hardening@...ts.openwall.com>, 
    Jan Kara <jack@...e.cz>, Catalin Marinas <catalin.marinas@....com>, 
    Will Deacon <will.deacon@....com>, Linux-MM <linux-mm@...ck.org>, 
    sparclinux <sparclinux@...r.kernel.org>, linux-ia64@...r.kernel.org, 
    Andrea Arcangeli <aarcange@...hat.com>, 
    linux-arch <linux-arch@...r.kernel.org>, "x86@...nel.org" <x86@...nel.org>, 
    Russell King <linux@...linux.org.uk>, PaX Team <pageexec@...email.hu>, 
    Borislav Petkov <bp@...e.de>, lin <ux-arm-kernel@...ts.infradead.org>, 
    Mathias Krause <minipli@...glemail.com>, Fenghua Yu <fenghua.yu@...el.com>, 
    Rik van Riel <riel@...hat.com>, David Rientjes <rientjes@...gle.com>, 
    Tony Luck <tony.luck@...el.com>, Andy Lutomirski <luto@...nel.org>, 
    Joonsoo Kim <iamjoonsoo.kim@....com>, Dmitry Vyukov <dvyukov@...gle.com>, 
    Laura Abbott <labbott@...oraproject.org>, 
    Brad Spengler <spender@...ecurity.net>, 
    Ard Biesheuvel <ard.biesheuvel@...aro.org>, 
    LKML <linux-kernel@...r.kernel.org>, Pekka Enberg <penberg@...nel.org>, 
    Case y Schauf ler <casey@...aufler-ca.com>, 
    Andrew Morton <akpm@...ux-foundation.org>, 
    "linuxppc-dev@...ts.ozlabs.org" <linuxppc-dev@...ts.ozlabs.org>, 
    "David S. Miller" <davem@...emloft.net>
Subject: Re: Re: [PATCH 9/9] mm: SLUB hardened usercopy
 support

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.

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.