Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp430970pxb; Fri, 28 Jan 2022 02:18:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJziewlBR1934/OSf0rCiowEWcd2V3KmEVNw9rFEF+KfZeI4BVuJ2oeBbOM5R3FcB0SLNXIn X-Received: by 2002:a17:90a:df0f:: with SMTP id gp15mr9084587pjb.175.1643365117908; Fri, 28 Jan 2022 02:18:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643365117; cv=none; d=google.com; s=arc-20160816; b=ash5HFabqfs8hfdlyyOgIEHRsxALrM2o9o6T+RAFRlScDhkdyCRaMC/PEnig5TMs44 U8bacfrcmqZIowzbCIxMTratSiJOPCXEBOzGQveYbm25EZ9N5KJyCqVhhTp+k9LbLqyl 49MwDxN59dnCpwXPVS5cz1kzYjn1m1YvqeZtu7OviNPLeUVOGXJjjBE6yQLrpAYwTbbV HaSpv8V40R34pjujAdSayacHQU9u128wsFAUH72YDfvhBzeXkCwzkr8dlN5MCwLmQANQ 73aZo+vksJhp8/UMbwTu3zqtDhHtMczj2KYpDE2WyqRPVxBG+tccVYO7AyD/ubyQfglE jz7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=gMvA+LEF6J0Vd7330fPeMtBj4PtlF4ym+zZnuV1hMIY=; b=Wv4AXqUHgdly3WMATMLuw7CnQdZ00vP+mGthxXIl8X1sfFAYKtftfwMaC+NpuqxX1L hX8nUagbZEo8BmkFObckjimdafTL9zazsvxcapVyupqNO0KTGZbTe6xyG0CrpYhAmgF+ mzQQQvS49sFGDJ5wXvGsCZUysmWz2APdui/ncSRkDY24vRIVqOg0ryAp3vVWXkKO6k90 hKe1U5rlMQJ2qnrX/THz2nzPBAxMIhv03nSRhQ8vgi+0jFyXmG/kyhoIO91DO0Yokb+g HVPCqiefZlz7qXcNX9BDZzITARRDIKpFqIwkYb4Ir579D5NlcDk+jXc617V44qTywIuw 605Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=WJyruaqE; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n5si4573239pgt.266.2022.01.28.02.18.26; Fri, 28 Jan 2022 02:18:37 -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=@chromium.org header.s=google header.b=WJyruaqE; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244101AbiA0Qpp (ORCPT + 99 others); Thu, 27 Jan 2022 11:45:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244108AbiA0Qpm (ORCPT ); Thu, 27 Jan 2022 11:45:42 -0500 Received: from mail-pg1-x536.google.com (mail-pg1-x536.google.com [IPv6:2607:f8b0:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 580DAC061714 for ; Thu, 27 Jan 2022 08:45:42 -0800 (PST) Received: by mail-pg1-x536.google.com with SMTP id e9so2745917pgb.3 for ; Thu, 27 Jan 2022 08:45:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=gMvA+LEF6J0Vd7330fPeMtBj4PtlF4ym+zZnuV1hMIY=; b=WJyruaqE04yhV8H9pIUz1qDfxbpzvKPhKrpFoBxx8Xk2EfHoNjh+X9DXblrkRz8r6Y zENczqt4XwD34HLrkEZRFUwNbLF8TW37hbhCLFSi8KhxVlK/2MFZ7D0z+ekJlnN2Lfy/ 30k6GZz29wX54+yDX/ok3geEnRn7VaqkW5VDk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=gMvA+LEF6J0Vd7330fPeMtBj4PtlF4ym+zZnuV1hMIY=; b=NC8oRKiDpz8qDn+bot2MFy39J2jMAimofh9lTHAoz3kq9SzCI+h3qVqZ0p4tHX0ILd Mmt+Pnr4Y/GBe9mCgLZYtXOlkp+2Giv6IkcGGKCwpdVunnHcYMpioitSB/zKnPYhlx7g eBwPHbN2eU3/MOg+IPvW/5XAW/pXZr4o8UiWibfeklpse9CASYJz0oVbvtpOpADYg5hY 5hRvMSrm+J1GU8595gawkHiEOBXHOqq3hdXnaOcCra+uQyU3s3DZKA0vY9V/WyhZdIV6 vTaJGD1i1mehwLBdTI8AUJmbZ1D7SOYWv9D6uOUqpFkGfOza7V565n7MVzuAiFeklvgz mqlw== X-Gm-Message-State: AOAM532RMRYi3Ncf99FmJcP9x6tb065yZJ7Mt1vHennWNN1B0wLquRZS +F3k78RrVmyLTgDJsx7JseJHAg== X-Received: by 2002:a05:6a00:2343:: with SMTP id j3mr3620484pfj.7.1643301941894; Thu, 27 Jan 2022 08:45:41 -0800 (PST) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id f9sm19614558pgf.94.2022.01.27.08.45.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jan 2022 08:45:41 -0800 (PST) Date: Thu, 27 Jan 2022 08:45:40 -0800 From: Kees Cook To: Muhammad Usama Anjum Cc: 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 Message-ID: <202201270844.660E5394C@keescook> References: <20220127163346.653546-1-usama.anjum@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220127163346.653546-1-usama.anjum@collabora.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -Kees > > Fixes: 61016db15b8e ("selftests/exec: Verify execve of non-regular files fail") > Signed-off-by: Muhammad Usama Anjum > --- > tools/testing/selftests/exec/Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/testing/selftests/exec/Makefile b/tools/testing/selftests/exec/Makefile > index dd61118df66ed..12c5e27d32c16 100644 > --- a/tools/testing/selftests/exec/Makefile > +++ b/tools/testing/selftests/exec/Makefile > @@ -5,7 +5,7 @@ CFLAGS += -D_GNU_SOURCE > > TEST_PROGS := binfmt_script non-regular > TEST_GEN_PROGS := execveat load_address_4096 load_address_2097152 load_address_16777216 > -TEST_GEN_FILES := execveat.symlink execveat.denatured script subdir pipe > +TEST_GEN_FILES := execveat.symlink execveat.denatured script subdir > # Makefile is a run-time dependency, since it's accessed by the execveat test > TEST_FILES := Makefile > > -- > 2.30.2 > -- Kees Cook