Re: [PATCH] mm, mempool: kasan: poison mempool elements

2015-04-06 Thread Andrey Ryabinin
On 04/04/2015 01:07 AM, Andrew Morton wrote: > On Fri, 03 Apr 2015 17:47:47 +0300 Andrey Ryabinin > wrote: > >> Mempools keep allocated objects in reserved for situations >> when ordinary allocation may not be possible to satisfy. >> These objects shouldn't be accessed before they leave >> the p

Re: [PATCH] mm, mempool: kasan: poison mempool elements

2015-04-03 Thread David Rientjes
On Fri, 3 Apr 2015, Andrey Ryabinin wrote: > Mempools keep allocated objects in reserved for situations > when ordinary allocation may not be possible to satisfy. > These objects shouldn't be accessed before they leave > the pool. > This patch poison elements when get into the pool > and unpoison

Re: [PATCH] mm, mempool: kasan: poison mempool elements

2015-04-03 Thread Andrew Morton
On Fri, 03 Apr 2015 17:47:47 +0300 Andrey Ryabinin wrote: > Mempools keep allocated objects in reserved for situations > when ordinary allocation may not be possible to satisfy. > These objects shouldn't be accessed before they leave > the pool. > This patch poison elements when get into the poo

[PATCH] mm, mempool: kasan: poison mempool elements

2015-04-03 Thread Andrey Ryabinin
Mempools keep allocated objects in reserved for situations when ordinary allocation may not be possible to satisfy. These objects shouldn't be accessed before they leave the pool. This patch poison elements when get into the pool and unpoison when they leave it. This will let KASan to detect use-af