[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <d0da8cd0-e534-5914-ecc5-9483c1bd2407@kernel.org>
Date: Tue, 17 Oct 2017 08:15:55 -0600
From: Shuah Khan <shuah@...nel.org>
To: Steve Muckle <smuckle.linux@...il.com>
Cc: David Drysdale <drysdale@...gle.com>,
linux-kselftest@...r.kernel.org, linux-kernel@...r.kernel.org,
Shuah Khan <shuah@...nel.org>,
Shuah Khan <shuahkh@....samsung.com>
Subject: Re: [PATCH v2] selftests/exec: include cwd in long path calculation
On 10/12/2017 10:44 PM, Steve Muckle wrote:
> When creating a pathname close to PATH_MAX to test execveat, factor in
> the current working directory path otherwise we end up with an absolute
> path that is longer than PATH_MAX. While execveat() may succeed, subsequent
> calls to the kernel from the runtime environment which are required to
> successfully execute the test binary/script may fail because of this.
>
> To keep the semantics of the test the same, rework the relative pathname
> part of the test to be relative to the root directory so it isn't
> decreased by the length of the current working directory path.
>
> Signed-off-by: Steve Muckle <smuckle.linux@...il.com>
Thanks for the patch. I plan to get this into 4.15-rc1
-- Shuah
Powered by blists - more mailing lists