Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp2448507imn; Tue, 2 Aug 2022 03:17:32 -0700 (PDT) X-Google-Smtp-Source: AGRyM1snaetD79gzwTxvYtAJckWbwYZqB+x2UGH06ly+k744ySIA2sT/t+FfYHJp4HovNf4ZYfR9 X-Received: by 2002:a05:6a00:1a49:b0:528:6ea0:14e2 with SMTP id h9-20020a056a001a4900b005286ea014e2mr19846315pfv.22.1659435452313; Tue, 02 Aug 2022 03:17:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659435452; cv=none; d=google.com; s=arc-20160816; b=fhcAYSq48wK7S8muxla9AMF+h5ZKdBKapqGGviRO15/tPsYno3qBUAAK4Q5wDDV034 628wqeMxntZKszdqfP/3tiLqfalnhuCZPDRUMjyEnaJWSAT3Cci4gC+rXCUUYkUHNl3F ldSAW6ocqH6+0ruWCbuYGrmECSexZ8MJ2cQiB6LPvOao5bzGun0ckXpX0W2J6KbtFr0z UUrzFr4sK+QEnry/RmVpiV1+Opm3tEXfOWN8ETTLwbp4dCRSsot7FTPvPQjtgyOw+zz9 +NkAO4+ibWx1kM1qRMd/9AJSmK048jsrMovJKCewEXR4Jpg7QR2n3zLxxQf2LXavqf2e K+Fw== 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:subject :from:references:cc:to:content-language:user-agent:mime-version:date :message-id:dkim-signature; bh=H2TOUPlyeHeYHRcYk+jtYemhzCdmc7kFvnRJAr1Kggk=; b=QBexDuucgSEBjdeYEocjIjUwr8t39MIzzFjRXHW0fg+rCmsFsl508ZFeATCX7j/BJR 86CIBfnSYNoi5vl5lLHkK9tPdXXDzOqHXZvd3hDuQyB7g29MV0X6p+4okAdf77VHD8KO zvgZPYDjN8hTI1WQLrbLA0tAtiOoGX1NR1ndtY+ODSIuSTvAI7gVooOXHX0C4csikGmb SgFmmQKtD0b+thbX48/Fp+MWJ8D7lHOMNs+xXH2vqAMMbfQbbaxMr5wBsj45S2ZHtJNT 4SV5DcHWdn6ftFkxUQj4ipl21vXGRppbNqPwWSsi4Lt0PaWqx60h0Z01CCu+UOJymAMl fT4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@digikod.net header.s=20191114 header.b=yubBe6Oo; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s3-20020a170902ea0300b0016c009d3ca2si8943551plg.7.2022.08.02.03.17.18; Tue, 02 Aug 2022 03:17:32 -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=@digikod.net header.s=20191114 header.b=yubBe6Oo; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236278AbiHBJ5N (ORCPT + 99 others); Tue, 2 Aug 2022 05:57:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231958AbiHBJ5K (ORCPT ); Tue, 2 Aug 2022 05:57:10 -0400 X-Greylist: delayed 350 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 02 Aug 2022 02:57:07 PDT Received: from smtp-42ad.mail.infomaniak.ch (smtp-42ad.mail.infomaniak.ch [IPv6:2001:1600:3:17::42ad]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2951C3E for ; Tue, 2 Aug 2022 02:57:07 -0700 (PDT) Received: from smtp-2-0000.mail.infomaniak.ch (unknown [10.5.36.107]) by smtp-2-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4Lxqxs33g8zMptYk; Tue, 2 Aug 2022 11:51:13 +0200 (CEST) Received: from ns3096276.ip-94-23-54.eu (unknown [23.97.221.149]) by smtp-2-0000.mail.infomaniak.ch (Postfix) with ESMTPA id 4Lxqxr590Qzlqwsl; Tue, 2 Aug 2022 11:51:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=digikod.net; s=20191114; t=1659433873; bh=1zHRiAqo3P/dojkNK+hYHzjUFBL4CkZLzF7FK2fml6I=; h=Date:To:Cc:References:From:Subject:In-Reply-To:From; b=yubBe6Oo6HwAr99wsPmEZJALzIaciq9i8qNhdXbQ62s5yam2Z21lr4NT1c76h4xVp EZndDrz2aLGgYqsCnIkP3v6gXa79Prd3jd3wRVYwWxZK9FxtMha8El+S/oYz018ZQv h+Go38FAOlZssRp0+iylAHifHtozQjL+VPDlDORk= Message-ID: <2838c247-0648-3828-efb3-e11d7a0616b2@digikod.net> Date: Tue, 2 Aug 2022 11:51:12 +0200 MIME-Version: 1.0 User-Agent: Content-Language: en-US To: Shuah Khan , Linus Torvalds , Guillaume Tucker Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Masahiro Yamada , linux-security-module References: <430ef132-2ac7-e1be-68ed-3d9c27382143@linuxfoundation.org> From: =?UTF-8?Q?Micka=c3=abl_Sala=c3=bcn?= Subject: Re: [GIT PULL] Kselftest update for Linux 5.20-rc1 In-Reply-To: <430ef132-2ac7-e1be-68ed-3d9c27382143@linuxfoundation.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 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. 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. 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"): --- 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. Regards, Mickaƫl [1] https://lore.kernel.org/all/b79c51ed97219b1c10e2e3f2bcd3269305f0f035.1657694067.git.guillaume.tucker@collabora.com/ On 02/08/2022 00:03, Shuah Khan wrote: > Hi Linus, > > Please pull the following Kselftest update for Linux 5.20-rc1. > > This Kselftest update for Linux 5.20-rc1 consists of: > > - timers test build fixes and cleanups for new tool chains > - removing khdr from kselftest framework and main Makefile > - changes to test output messages to improve reports > > Please not that this update also included main Makefile change > to kselftest build logic in it. > > diff is attached. > > thanks, > -- Shuah > > ---------------------------------------------------------------- > The following changes since commit 03c765b0e3b4cb5063276b086c76f7a612856a9a: > > Linux 5.19-rc4 (2022-06-26 14:22:10 -0700) > > are available in the Git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest tags/linux-kselftest-next-5.20-rc1 > > for you to fetch changes up to 4062eba9f3d072e72645860fbc5d160428a75c50: > > Makefile: replace headers_install with headers for kselftest (2022-07-26 18:06:33 -0600) > > ---------------------------------------------------------------- > linux-kselftest-next-5.20-rc1 > > This Kselftest update for Linux 5.20-rc1 consists of: > > - timers test build fixes and cleanups for new tool chains > - removing khdr from kselftest framework and main Makefile > - changes to test output messages to improve reports > > ---------------------------------------------------------------- > Gautam (2): > kselftests: Enable the echo command to print newlines in Makefile > kselftests/damon: add support for cases where debugfs cannot be read > > Gautam Menghani (3): > selftests: Make the usage formatting consistent in kselftest_deps.sh > selftests/drivers/gpu: Add error messages to drm_mm.sh > selftests/kcmp: Make the test output consistent and clear > > Guillaume Tucker (6): > selftests: drop khdr make target > selftests: stop using KSFT_KHDR_INSTALL > selftests: drop KSFT_KHDR_INSTALL make target > Makefile: add headers_install to kselftest targets > selftests/landlock: drop deprecated headers dependency > Makefile: replace headers_install with headers for kselftest > > Johannes Holland (1): > selftests/tpm2: increase timeout for kselftests > > Soumya Negi (1): > selftests: drivers/dma-buf: Improve message in selftest summary > > Wolfram Sang (9): > selftests: timers: valid-adjtimex: build fix for newer toolchains > selftests: timers: fix declarations of main() > selftests: timers: nanosleep: adapt to kselftest framework > selftests: timers: inconsistency-check: adapt to kselftest framework > selftests: timers: clocksource-switch: fix passing errors from child > selftests: timers: clocksource-switch: sort includes > selftests: timers: clocksource-switch: add command line switch to skip sanity check > selftests: timers: clocksource-switch: add 'runtime' command line parameter > selftests: timers: clocksource-switch: adapt to kselftest framework > > Xiang wangx (1): > userfaultfd/selftests: Fix typo in comment > > Zan Aziz (1): > selftests:timers: globals don't need initialization to 0 > > Makefile | 4 +- > tools/testing/selftests/Makefile | 30 +-------- > tools/testing/selftests/arm64/mte/Makefile | 1 - > tools/testing/selftests/arm64/signal/Makefile | 1 - > .../testing/selftests/arm64/signal/test_signals.h | 4 +- > tools/testing/selftests/damon/_chk_dependency.sh | 10 +++ > tools/testing/selftests/drivers/dma-buf/udmabuf.c | 3 +- > tools/testing/selftests/drivers/gpu/drm_mm.sh | 4 +- > .../selftests/drivers/s390x/uvdevice/Makefile | 1 - > tools/testing/selftests/futex/functional/Makefile | 1 - > tools/testing/selftests/kcmp/kcmp_test.c | 6 +- > tools/testing/selftests/kselftest_deps.sh | 2 +- > tools/testing/selftests/kvm/Makefile | 1 - > tools/testing/selftests/landlock/Makefile | 10 +-- > tools/testing/selftests/lib.mk | 38 ------------ > tools/testing/selftests/net/Makefile | 1 - > tools/testing/selftests/net/mptcp/Makefile | 1 - > tools/testing/selftests/tc-testing/Makefile | 1 - > tools/testing/selftests/timers/adjtick.c | 2 +- > .../testing/selftests/timers/alarmtimer-suspend.c | 2 +- > tools/testing/selftests/timers/change_skew.c | 2 +- > .../testing/selftests/timers/clocksource-switch.c | 71 ++++++++++++++-------- > .../testing/selftests/timers/inconsistency-check.c | 32 +++++----- > tools/testing/selftests/timers/nanosleep.c | 18 +++--- > tools/testing/selftests/timers/raw_skew.c | 2 +- > tools/testing/selftests/timers/skew_consistency.c | 2 +- > tools/testing/selftests/timers/valid-adjtimex.c | 2 +- > tools/testing/selftests/tpm2/settings | 1 + > tools/testing/selftests/vm/Makefile | 1 - > tools/testing/selftests/vm/userfaultfd.c | 2 +- > 30 files changed, 111 insertions(+), 145 deletions(-) > create mode 100644 tools/testing/selftests/tpm2/settings > ----------------------------------------------------------------