[LTP] [PATCH v4] thp01: Find largest arguments size

Li Wang liwang@redhat.com
Mon Sep 25 08:18:10 CEST 2017


On Fri, Sep 22, 2017 at 5:28 PM, Richard Palethorpe
<rpalethorpe@suse.com> wrote:
> Because of kernel commit da029c11e6b1 the arguments size for exec has been
> reduced considerably. This causes exec to fail with E2BIG, so we call it
> repeatedly with a decreasing number of arguments until it is successful.
>
> As far as I know, there is no other reliable and easy way to determine the
> maximum argument length.
>
> Signed-off-by: Richard Palethorpe <rpalethorpe@suse.com>
> ---


Looks good!  V4 get pass on my two platforms:

kernel-4.9.13-v7.1.el7  armv7l
kernel-4.13.0+     x86_64



-- 
Li Wang
liwang@redhat.com


More information about the ltp mailing list