Re: [PATCH resend] genalloc: stop crashing the system when destroying a pool

2012-10-23 Thread Thadeu Lima de Souza Cascardo
On Mon, Oct 22, 2012 at 02:18:54PM -0700, Andrew Morton wrote: > On Sun, 21 Oct 2012 09:52:59 -0200 > Thadeu Lima de Souza Cascardo wrote: > > > A gen_pool_chunk uses a bitmap to find what addresses ranges it has > > allocated and bugs when we destroy the pool and a chunk has some bits > > set. >

Re: [PATCH resend] genalloc: stop crashing the system when destroying a pool

2012-10-22 Thread Andrew Morton
On Sun, 21 Oct 2012 09:52:59 -0200 Thadeu Lima de Souza Cascardo wrote: > A gen_pool_chunk uses a bitmap to find what addresses ranges it has > allocated and bugs when we destroy the pool and a chunk has some bits > set. > > There is a problem when it allocates the bitmap. It allocates only the

[PATCH resend] genalloc: stop crashing the system when destroying a pool

2012-10-21 Thread Thadeu Lima de Souza Cascardo
A gen_pool_chunk uses a bitmap to find what addresses ranges it has allocated and bugs when we destroy the pool and a chunk has some bits set. There is a problem when it allocates the bitmap. It allocates only the number of bytes needed for the bits that represent the size it's allocating. That is