Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp431943pxb; Fri, 28 Jan 2022 02:20:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJxjsXOsHbNoMc+PXJUG5/JwWZtCzSgK5UgNq9uBU802dF8iU+9oRvFEy0dc23wxHPz+01Zy X-Received: by 2002:a17:902:e788:: with SMTP id cp8mr7423926plb.172.1643365212718; Fri, 28 Jan 2022 02:20:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643365212; cv=none; d=google.com; s=arc-20160816; b=Up8M3msIHZ7e+eiUBwD8cpWaE8WYYTLwZB4H3EKiHuTEyefy10a8ubzTc0498kmR5K SvSu1jaD9DNkMaWNGsp6AQDP7VKXoQDXhJ3vxvFxi+FTCOR3NtRnlfoQPySQ7Cbuym7Z CDqr0XD9VZPPR18s771/cfxJ1KC2GKm3wMkVaeV3xvhMlwIA13jkHLGp004yHFljFzS0 zL19I7dIn6R4TxvxVVk2NedUYWOEVUF1i50hmS7+G2c/+In5uUnz9bLTuo1huXscGWmn F0LqWtJKe43j01+nn2JBUl8KKEOPXpFPeJeO7ObS17N6Qf4LgxMK97LsWdqfb+avirCT FhxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:cc:user-agent:mime-version :date:message-id:dkim-signature; bh=qY07tjCuKzFyFdHrNoAe3MHS89OicILaZOyC12uEuDI=; b=MFQVxzy1UApSEat8kY9zFKCldAltmyFleyDdvytSlCax4PVQlEQ7Rlx7cp2HtVUjcD DZgWfFnB1iCwPrpaIX5UqRtUefHWvEvGdNeLYRHT6pE+4FLEnhEYX/NQWKBOdRz3O9Ij jzmLYe1tn+BLtnzMNP4NrZSBatX+xfCHLS5TO29Mx9fN+B9/gvHwlB7kEe5BqlX+PZh1 SuhqrMQOcWeGXZgpkC+zNq/7QoLOP+UAFr0vh1zy0mYOr3GK7tQFVFV/NxL42A+wAhoS xGI4jLnhcPETB3Gu8GCHf8A4tor/S0ywdaEBUh45Yk8MHs6unX53lGr9BE/efZqnhwwU JSpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=odNleAWb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i189si4794621pge.512.2022.01.28.02.20.00; Fri, 28 Jan 2022 02:20:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=odNleAWb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238656AbiA0QzY (ORCPT + 99 others); Thu, 27 Jan 2022 11:55:24 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:55474 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244184AbiA0QzP (ORCPT ); Thu, 27 Jan 2022 11:55:15 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: usama.anjum) with ESMTPSA id F0AA71F45773 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1643302511; bh=IR+hQ8nqc1s+bwqn1CYzGcqjYCZ5s+1Hg5YXxfgNCQU=; h=Date:Cc:Subject:To:References:From:In-Reply-To:From; b=odNleAWbEY6jGmxSQn9iWLi2MUGZyGk724Fafc4iDxJKp+kM6B2kom4xY+VaWrFjK 4qb41sQh+pkg9w9aFlznhFLsG/jJE6CJPHWaHuYuLsRb4bpLRjtcdTbkYzJuo2WNND 8zNX9Nh1xCS+f+hvM9PPjL8VKKyFna4x3iPV16Etfk0w+9ugpOGtsazFYNKIJsli6G aqFohSNsW++R6wPYGtcUrt636TUtOTdeROPbRE0vVNuwUA5QUzRcXAHERYBkXgIyZJ OjZwbEwN87EBmapx5Cx6+kH7rrOBLw/Lh4G50yERR45GDAwfI/Dbwql6cUV1g4oOmb TwXJS6d+XkkJA== Message-ID: <329a935a-1c12-c5f8-1467-e6a6e98c9c24@collabora.com> Date: Thu, 27 Jan 2022 21:55:03 +0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Cc: usama.anjum@collabora.com, Eric Biederman , Shuah Khan , kernel@collabora.com, Shuah Khan , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] selftests/exec: Remove pipe from TEST_GEN_FILES Content-Language: en-US To: Kees Cook References: <20220127163346.653546-1-usama.anjum@collabora.com> <202201270844.660E5394C@keescook> From: Muhammad Usama Anjum In-Reply-To: <202201270844.660E5394C@keescook> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/27/22 9:45 PM, Kees Cook wrote: > On Thu, Jan 27, 2022 at 09:33:45PM +0500, Muhammad Usama Anjum wrote: >> pipe named FIFO special file is being created in execveat.c to perform >> some tests. Makefile doesn't need to do anything with the pipe. When it >> isn't found, Makefile generates the following build error: >> >> make: *** No rule to make target '/linux_mainline/tools/testing/selftests/exec/pipe', needed by 'all'. Stop. > > Ah, good catch. However, I think this should be moved to EXTRA_CLEAN instead of > only removed from TEST_GEN_FILES. (i.e. "pipe" is created by > tools/testing/selftests/exec/execveat.c and should be removed. Hi, Thank you. tools/testing/selftests/exec/execveat.c creates pipe file and removes it after performing the test on it. I've looked at the code path between creation and deletion of this file. It'll always be removed automatically. So we shouldn't add it to EXTRA_CLEAN. Thanks, Usama