Re: [PATCH] zsmalloc: fix fatal corruption due to wrong size class selection

2015-03-25 Thread Minchan Kim
Hello Heesub, On Wed, Mar 25, 2015 at 07:58:12PM +0900, Heesub Shin wrote: > There is no point in overriding the size class below. It causes fatal > corruption on the next chunk on the 3264-bytes size class, which is the > last size class that is not huge. > > For example, if the requested size w

[PATCH] zsmalloc: fix fatal corruption due to wrong size class selection

2015-03-25 Thread Heesub Shin
There is no point in overriding the size class below. It causes fatal corruption on the next chunk on the 3264-bytes size class, which is the last size class that is not huge. For example, if the requested size was exactly 3264 bytes, current zsmalloc allocates and returns a chunk from the size cl