Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp2561343imn; Tue, 2 Aug 2022 07:39:24 -0700 (PDT) X-Google-Smtp-Source: AA6agR7C5xc7nRhVfXb/kZkXMlkEWSyzyYO8q+g0RXDSsqIaYe3f96a5c5TinXvQJUle18QPy0PN X-Received: by 2002:a17:907:2bc4:b0:730:aa9c:bd86 with SMTP id gv4-20020a1709072bc400b00730aa9cbd86mr320253ejc.341.1659451164089; Tue, 02 Aug 2022 07:39:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659451164; cv=none; d=google.com; s=arc-20160816; b=hL7cUiw1QopkSiQ0+CFPYCNvU0FCZFYqFzatr4Ujp7Zy9KLRxRfJ6daYm8f4GhK3jP 8q4k04OTimpsLkNtx2kB/1WRAbvzYD1jDsY62gzEJWPPDvhbEtx/BvxmUJxLo/kmySIQ pAaGvFY6IiqzcaG5IyuQRgYLoE+6TB7XHHJDuByGxHA1doCx/3z8H4IUB7D3Dg8DMYn9 2UQO+6JDxydj28NXkLPyduez1sec/mbk4jrDVHSgEs69Qmz6OyhvYLJpwj+rbyv/83w3 kqCjNAMfc56gBL5gcSdNHb/8+rZ8NmVCCaTP4rc/snghWep+mm+/H+auTCGYtA5jG0BT rnKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=X7Hm0u9qMwzlB0EPKeiGIRJ5T3Cdcf+L/7KSSDvl0hk=; b=vwqYGXBKusWtNdRG53aNjULUfqJCCx267kGNml4k7XS2aJIKV9Npmj8eeOO3gyP9NM lleeAMLc7C8JFuye68dbV6uIa1RdfhQ39PNj1p8uxXLE8320UmnOZ0xlWGXv2Ko7G4Wa plVK3m6hXorPaLl12TrYHOPeGWzFcHETCfvETAjLSEUY6rUCN1Tv85G1FzTjMKf1sC/n fShbL7FanP5MtGrUZShcFZlo9gpRNFTHqHqKwT7NDZf8RhUMWbPoCX3SpQjnZerMYF59 p5Jd5I129hBzQh39nJXgjiktQx9/pjhJAKFb4s5QggvyUi41aBK4VTt2Bxz05+VwzqOo CQ1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=V3CbIjz0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d13-20020a170906344d00b0071203baa0desi958435ejb.260.2022.08.02.07.38.58; Tue, 02 Aug 2022 07:39:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=V3CbIjz0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237294AbiHBO3o (ORCPT + 99 others); Tue, 2 Aug 2022 10:29:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237284AbiHBO3k (ORCPT ); Tue, 2 Aug 2022 10:29:40 -0400 Received: from mail-io1-xd2d.google.com (mail-io1-xd2d.google.com [IPv6:2607:f8b0:4864:20::d2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40EA31A39E for ; Tue, 2 Aug 2022 07:29:38 -0700 (PDT) Received: by mail-io1-xd2d.google.com with SMTP id q14so10772124iod.3 for ; Tue, 02 Aug 2022 07:29:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=X7Hm0u9qMwzlB0EPKeiGIRJ5T3Cdcf+L/7KSSDvl0hk=; b=V3CbIjz0IqwMu9qJT7/0gVE97AFRo6nwNmwyuXcOiFRsIF4gTG63bgySn0IZedd73R rWI8/uffPLy8/IaRwVPUOWUgplTP+nC595Hq63FfIRQW7rQsPFe73x9/K1as9/QtP4fI l8Zqwp+lo0Dhm+cV6MyiAJTpu9vS7StOH/8PU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=X7Hm0u9qMwzlB0EPKeiGIRJ5T3Cdcf+L/7KSSDvl0hk=; b=yHdI5RdUQRaaYCOYxKjltXM6s9hsbCsRo1OrbBIZxxgM+bNRH2TtXYMHioC6RVvhA7 kdR7x+DoyfRj58UG6oH1DDti7ymPC/P9R3txXb0VULIC1HIv+oAkCNa1zsmnGfMB0MX0 8qiR4gl+MtN48t0rSoZpTYCBPEv42uMMx9z8oUadeobysGdvi9ehktB5N0YOUd/lhJbZ Yyu7fo7EL4wwDYoixXwBmO45++GQ0BnkKk6AdSRYze8/0iv42XbNg2LOxiVGaOo37Jx7 11u6t7GJ8LjAxkULQqeddlOTXvyblWhe0zWWj/VCAVjUl7GA1V88G/8/Q0LHpzvbfIbg z0rQ== X-Gm-Message-State: AJIora+6A+KqBqbncyA+/FXmOr9rI8d9ZRmmjvgNxgzG5pdKPeggBNS/ 7fPvTNBlhn0l2uW9usXJ0EukFuXGTcPfEQ== X-Received: by 2002:a05:6638:37aa:b0:33f:8980:5b50 with SMTP id w42-20020a05663837aa00b0033f89805b50mr8482091jal.103.1659450577255; Tue, 02 Aug 2022 07:29:37 -0700 (PDT) Received: from [192.168.1.128] ([38.15.45.1]) by smtp.gmail.com with ESMTPSA id z11-20020a027a4b000000b00339bae1dab9sm6483462jad.40.2022.08.02.07.29.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 02 Aug 2022 07:29:36 -0700 (PDT) Subject: Re: [GIT PULL] Kselftest update for Linux 5.20-rc1 To: =?UTF-8?Q?Micka=c3=abl_Sala=c3=bcn?= , Linus Torvalds , Guillaume Tucker Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Masahiro Yamada , linux-security-module , Shuah Khan References: <430ef132-2ac7-e1be-68ed-3d9c27382143@linuxfoundation.org> <2838c247-0648-3828-efb3-e11d7a0616b2@digikod.net> From: Shuah Khan Message-ID: <84560b65-12ed-da24-3698-45484f80802a@linuxfoundation.org> Date: Tue, 2 Aug 2022 08:29:35 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <2838c247-0648-3828-efb3-e11d7a0616b2@digikod.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/2/22 3:51 AM, Mickaël Salaün wrote: > Hi, > > This change breaks the Landlock test build when performed on the tools/testing/selftests/landlock directory because the (non-system/up-to-date) kernel headers aren't found. Looking at the use of top_srcdir and HDR_PATH, it seems that multiple subsystems are using this feature. I consider this change a regression. > I did a build test from the top level before sending the pull request and didn't catch this breakage as a result. This breaks when build is run from the test directory. We have had several problems related to khdr_dir and target and decided to move away from it with this change. > It also removes the check on up-to-date kernel headers (thanks to the Makefile's target timestamp). > > I wasn't CCed for this change impacting Landlock [1]. Please keep in mind to add at least maintainers and related mailing-lists for changes on related subsystems. > That is the usual practice and if I notice missing maintainers, I add them. We missed this one. > The following patch almost revert commit a917dd94b832 ("selftests/landlock: drop deprecated headers dependency") and partially fixes commit 49de12ba06ef ("selftests: drop KSFT_KHDR_INSTALL make target"): > Guillaume, Will you be able to look at this and send a patch on top? I will send another pull request before merge window closes? > --- a/tools/testing/selftests/landlock/Makefile > +++ b/tools/testing/selftests/landlock/Makefile > @@ -9,10 +9,13 @@ TEST_GEN_PROGS := $(src_test:.c=) >  TEST_GEN_PROGS_EXTENDED := true > >  OVERRIDE_TARGETS := 1 > +top_srcdir = ../../../.. >  include ../lib.mk > > +khdr_dir = $(top_srcdir)/usr/include > + >  $(OUTPUT)/true: true.c >      $(LINK.c) $< $(LDLIBS) -o $@ -static > > -$(OUTPUT)/%_test: %_test.c ../kselftest_harness.h common.h > -    $(LINK.c) $< $(LDLIBS) -o $@ -lcap > +$(OUTPUT)/%_test: %_test.c $(khdr_dir)/linux/landlock.h ../kselftest_harness.h common.h > +    $(LINK.c) $< $(LDLIBS) -o $@ -lcap -I$(khdr_dir) > > > This doesn't fix the header timestamp check though. > thanks, -- Shuah