From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932499AbdJQOQN (ORCPT ); Tue, 17 Oct 2017 10:16:13 -0400 Received: from mailout.easymail.ca ([64.68.200.34]:57058 "EHLO mailout.easymail.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762775AbdJQOQL (ORCPT ); Tue, 17 Oct 2017 10:16:11 -0400 Reply-To: shuah@kernel.org Subject: Re: [PATCH v2] selftests/exec: include cwd in long path calculation To: Steve Muckle Cc: David Drysdale , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Shuah Khan , Shuah Khan References: <20171013044457.15921-1-smuckle.linux@gmail.com> From: Shuah Khan Message-ID: Date: Tue, 17 Oct 2017 08:15:55 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20171013044457.15921-1-smuckle.linux@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Thanks for the patch. I plan to get this into 4.15-rc1 -- Shuah