Re: [PATCH RFC 04/10] mm, kfence: insert KFENCE hooks for SLAB

2020-09-11 Thread Dmitry Vyukov
On Fri, Sep 11, 2020 at 2:24 PM Marco Elver wrote: > > > From: Alexander Potapenko > > > > > > Inserts KFENCE hooks into the SLAB allocator. > > > > > > We note the addition of the 'orig_size' argument to slab_alloc*() > > > functions, to be able to pass the originally requested size to KFENCE. >

Re: [PATCH RFC 04/10] mm, kfence: insert KFENCE hooks for SLAB

2020-09-11 Thread Marco Elver
On Fri, 11 Sep 2020 at 09:17, Dmitry Vyukov wrote: > > On Mon, Sep 7, 2020 at 3:41 PM Marco Elver wrote: > > > > From: Alexander Potapenko > > > > Inserts KFENCE hooks into the SLAB allocator. > > > > We note the addition of the 'orig_size' argument to slab_alloc*() > > functions, to be able to

Re: [PATCH RFC 04/10] mm, kfence: insert KFENCE hooks for SLAB

2020-09-11 Thread Dmitry Vyukov
On Mon, Sep 7, 2020 at 3:41 PM Marco Elver wrote: > > From: Alexander Potapenko > > Inserts KFENCE hooks into the SLAB allocator. > > We note the addition of the 'orig_size' argument to slab_alloc*() > functions, to be able to pass the originally requested size to KFENCE. > When KFENCE is disable

[PATCH RFC 04/10] mm, kfence: insert KFENCE hooks for SLAB

2020-09-07 Thread Marco Elver
From: Alexander Potapenko Inserts KFENCE hooks into the SLAB allocator. We note the addition of the 'orig_size' argument to slab_alloc*() functions, to be able to pass the originally requested size to KFENCE. When KFENCE is disabled, there is no additional overhead, since these functions are __a