Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4298599pxk; Tue, 8 Sep 2020 16:33:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJ1cQ8wcGlSDqm8ayLpovCLnMU/My58NM4qr0LMrEB2uvoVRBPnHKuVBVPUNfFimXsJF9k X-Received: by 2002:a17:906:1691:: with SMTP id s17mr931379ejd.458.1599608007722; Tue, 08 Sep 2020 16:33:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599608007; cv=none; d=google.com; s=arc-20160816; b=aoNoAulVf1ArNAc/RRW/9AJdcFoocoAMj6xTPrpcLktkcdgJkuRBUulmHPrZFmRLmZ PEmwsgegyE0TyizB2NhcVBjCdA3O0Jcu0ayPI9icxKMq3bgcNTEXRJMI2ATyLjcxvM2s pYAJg7RaCCkrthgBbEPBFmpEcIj/Wbbbtndky9YFpSHpw48Bw/HACFGOMNKeQjjwvmI9 rP0d+NykxGojzcWq7z90C6TYEbh9zdxPBY6AKiyBgA6eG1/lgL89kFukN/0MaXXoQziw xQOmPH6Xwk2nJrmvBrL/q6vP9ApYW2gH6/+XM3+hu0F93ViVAsooQIXiljcC2+NvC6vQ yfBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=fpQH/xPexxyTS1Nk2wAyu0L+S9B78VfQtAtHXc1iQHU=; b=bS37RByqSzzbVrOeOiOpMxqo+jZ+DjTl81a9QSVOrXMGPZCTvqm0gpbl2Q7tLZsnvV Wl2+JXsmTmCtfmQqfnbRmvsKlzVUHvPMxXuKBisodbXj3G5SZkG+PlUzRCRFWoMCYnEN g8BP52pGIBI+5BuphhD/W6K0ZqmhyGCy/2llVKHTvHPyJHejBsm0r+shTtztLfBXjRXH JauqWoLZ6W+/FVYLHp0mk5Y8zAqIBFZ/S4A7KH5gqV6sfaOHRcL5Mm3IGXsYlKYfk9C1 NLWt+q1/QaUEpwMckM4AhFbK3CNuOPbrCxhmtljQIpeAaLTKlAkAmhR9yIlwJGL4Zjsd aYeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=QgRU3QLm; 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 cc19si448144edb.488.2020.09.08.16.32.50; Tue, 08 Sep 2020 16:33:27 -0700 (PDT) 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=QgRU3QLm; 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 S1728631AbgIHXbR (ORCPT + 99 others); Tue, 8 Sep 2020 19:31:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726340AbgIHXbQ (ORCPT ); Tue, 8 Sep 2020 19:31:16 -0400 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BAAAC061573 for ; Tue, 8 Sep 2020 16:31:15 -0700 (PDT) Received: by mail-pf1-x444.google.com with SMTP id o20so465768pfp.11 for ; Tue, 08 Sep 2020 16:31:15 -0700 (PDT) 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=fpQH/xPexxyTS1Nk2wAyu0L+S9B78VfQtAtHXc1iQHU=; b=QgRU3QLmEG8rJaIf9I7wydr8fbjEPJ2rN2WWI1phbuI3euh/n64HmPR5QWarkP8CcJ heToUVxBAMMlf0frKJs86rwZNPfIu7396CEXUnQ2kkvodaz7PPKnq6plhr72k7nT4b5c jkHh0mZmu1zY2Kx+dDO8TaVIylNWZLakQYb6M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=fpQH/xPexxyTS1Nk2wAyu0L+S9B78VfQtAtHXc1iQHU=; b=uoJYLXFU83+jmqM/KKmvfRlhCBmKEvPhP383AJU3kAuM8Ski9dKtWg+mjc8eK+9sZC /Tuev+H5tXNu5FmuAYn3zDVgRLypecGHPla7JjRa8EnmFiSKtlxdKnoWQX+jD+uD2sNG jRg4nJYndRTMqJ6LE0FCpn0CcOpzL7ql54x6XvU+G/noRjS4Jg6kJXvGrydN/r+aYIdt P4RKHsiS7wdSiW9/2eG5CT1i1y9+QSuZTIxrRDglHCi0B7c1TBiRhuqNWlbfPJkR5gJ+ p3zEIFHViObQwgrpe52tvwDGrJYOFyUllhAlDyPpK919ntgmBYBNvhrfm4eVY+lz+WMX UK0w== X-Gm-Message-State: AOAM5336wXpCqEdNu1qPLqRGs/ChGJuRkEIaQLLNFuo4aVdJyriAl7He nQS8PgTAC7JOkZXVfYyLaQ9gxA== X-Received: by 2002:a17:902:c3d3:: with SMTP id j19mr1010227plj.59.1599607874840; Tue, 08 Sep 2020 16:31:14 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id e14sm326516pgu.47.2020.09.08.16.31.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 16:31:13 -0700 (PDT) Date: Tue, 8 Sep 2020 16:31:12 -0700 From: Kees Cook To: "Dmitry V. Levin" Cc: kernel test robot , Shuah Khan , Elvira Khabirova , Linus Torvalds , Oleg Nesterov , Andy Lutomirski , Eugene Syromyatnikov , Andrew Morton , kbuild test robot , lkp@01.org, LKML Subject: Re: [ptrace] 201766a20e: kernel_selftests.seccomp.make_fail Message-ID: <202009081629.4A31845@keescook> References: <20190729093530.GL22106@shao2-debian> <20190805094719.GA1693@altlinux.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190805094719.GA1693@altlinux.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 05, 2019 at 12:47:19PM +0300, Dmitry V. Levin wrote: > On Mon, Jul 29, 2019 at 05:35:30PM +0800, kernel test robot wrote: > > FYI, we noticed the following commit (built with gcc-7): > > > > commit: 201766a20e30f982ccfe36bebfad9602c3ff574a ("ptrace: add PTRACE_GET_SYSCALL_INFO request") > > https://kernel.googlesource.com/pub/scm/linux/kernel/git/torvalds/linux.git master > > > > in testcase: kernel_selftests > > with following parameters: > > > > group: kselftests-02 > > > > test-description: The kernel contains a set of "self tests" under the tools/testing/selftests/ directory. These are intended to be small unit tests to exercise individual code paths in the kernel. > > test-url: https://www.kernel.org/doc/Documentation/kselftest.txt > > The URL above also says: "Tests are intended to be run after building, > installing and booting a kernel". > > Please build selftests with installed kernel headers corresponding to the > installed kernel. > > Alternatively, tools/testing/selftests/lib.mk could be extended > to include uapi headers from the kernel tree into CPPFLAGS, e.g. > > diff --git a/tools/testing/selftests/lib.mk b/tools/testing/selftests/lib.mk > index 1c8a1963d03f..b5f4f0fb8eeb 100644 > --- a/tools/testing/selftests/lib.mk > +++ b/tools/testing/selftests/lib.mk > @@ -10,6 +10,9 @@ ifeq (0,$(MAKELEVEL)) > endif > selfdir = $(realpath $(dir $(filter %/lib.mk,$(MAKEFILE_LIST)))) > > +uapi_dir = $(realpath $(selfdir)/../../../include/uapi) > +CPPFLAGS += -I$(uapi_dir) > + > # The following are built by lib.mk common compile rules. > # TEST_CUSTOM_PROGS should be used by tests that require > # custom build rule and prevent common build rule use. *thread necromancy* I think this is fixed in the selftest tree itself now (though differently), in that it depends on having build the headers first. Anyway, please let me know if this is still a problem, and I'll take another look (and hopefully I also won't lose the thread for a year...) Thanks! -- Kees Cook