Re: [LTP] [PATCH v4] make pid_list dynamically sized with memory

Caspar Zhang
2011-01-16T11:06:33Z

On 01/07/2011 02:40 AM, czhang@redhat.com wrote:
> We get segfaults during testing mtest01 on a 5TB memory machine, the
> problem was traced to the array pid_list[] went to overflow and
> corrupted memory. This fix makes pid_list dynamically sized with
> correct memory size to avoid overflow.
>
> v2: not split into different bits when allocating pid_list.
> v3: 1) fix optargs: -b and -p should not be used at the same time.
> 2) pre_mem maybe not initialized before using if -p option not used.
> fix it by moving it outside ``if(maxpercent)'' block.
> v4: fix code format.
>
> Signed-off-by: Caspar Zhang <czhang@redhat.com>

Hi Garrett, would you please review this patch? Thanks!

Caspar

--
Quality Assurance Associate (Kernel) in