Re: [PATCH] mm/slub: support left red zone

2016-02-05 Thread Joonsoo Kim
2016-02-05 18:06 GMT+09:00 Christoph Lameter : > On Thu, 4 Feb 2016, Joonsoo Kim wrote: > >> On Thu, Feb 04, 2016 at 03:15:50PM +0900, Joonsoo Kim wrote: >> > SLUB already has red zone debugging feature. But, it is only positioned >> > at the end of object(aka right red zone) so it cannot catch lef

Re: [PATCH] mm/slub: support left red zone

2016-02-05 Thread Christoph Lameter
On Thu, 4 Feb 2016, Joonsoo Kim wrote: > On Thu, Feb 04, 2016 at 03:15:50PM +0900, Joonsoo Kim wrote: > > SLUB already has red zone debugging feature. But, it is only positioned > > at the end of object(aka right red zone) so it cannot catch left oob. > > Although current object's right red zone a

Re: [PATCH] mm/slub: support left red zone

2016-02-05 Thread Christoph Lameter
On Thu, 4 Feb 2016, Joonsoo Kim wrote: > --- a/include/linux/slub_def.h > +++ b/include/linux/slub_def.h > @@ -77,6 +77,7 @@ struct kmem_cache { > int refcount; /* Refcount for slab cache destroy */ > void (*ctor)(void *); > int inuse; /* Offset to metadata

Re: [PATCH] mm/slub: support left red zone

2016-02-03 Thread Joonsoo Kim
On Thu, Feb 04, 2016 at 03:15:50PM +0900, Joonsoo Kim wrote: > SLUB already has red zone debugging feature. But, it is only positioned > at the end of object(aka right red zone) so it cannot catch left oob. > Although current object's right red zone acts as left red zone of > previous object, first

[PATCH] mm/slub: support left red zone

2016-02-03 Thread Joonsoo Kim
SLUB already has red zone debugging feature. But, it is only positioned at the end of object(aka right red zone) so it cannot catch left oob. Although current object's right red zone acts as left red zone of previous object, first object in a slab cannot take advantage of this effect. This patch ex