Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1783857pxp; Mon, 7 Mar 2022 02:13:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJyT2ASHL+PSTMkvzdfrMGJPXkH0+OZ3vdKVCME0K1QFUWNWGxaamExpQaHaYB00zhpDtgYu X-Received: by 2002:a17:906:7311:b0:6da:68ce:3f1a with SMTP id di17-20020a170906731100b006da68ce3f1amr8495299ejc.228.1646648008911; Mon, 07 Mar 2022 02:13:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646648008; cv=none; d=google.com; s=arc-20160816; b=AaQtSFyVAAoubi8VOjfSjiwBQxVc5I6TlnEh0X4owqpPq+OpIlo7qWpxL/EyomEUhY JJCJhfJZ3zWtsTQ2Qe+CeGZQT7lDpQYW3rErrPZAIYTYatesABz7klZKdLA76cfAcuj+ CIRk/vU0Q5GRk3ZT5mBlVbJ8Q2Mq2zqKsrraAA7/CORyHVxynfcgo0JpdVFczzRf0MjE sITW+NVuWGU8QAC9BGd512rXSsR9u15Yv2QF6e32GQYrgzdr2j9bkUaod+7rJO+8KOEP s5MmL7IH470+kbYZEuP/dxBjDFdkaUOCktegUYdcJ378yjixHsShAsFdqY78/q7CYx+H DtOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=nbbzf85TbhatTQBA3wnhpXXmsPgaYsUrCRmOfM7lab0=; b=DSF+tZLuli8JiqwTzU+brSKlU+YA1xn+1ESfBx66lQYqqSjTvX6k7VxJDkjmCcvmVn nJBdU4YiGD3liKm7lm53GOzxE37vEb45DqL8qAbmKfbXTYDwwjED/29Gz+OesTM5Yf4F dfoRcOivpPD7DeCYQNhNxY54bNpFsmAoCxkxf7NoYIqPT1nGSFwwhBJWvC+BqsqMgPQ9 a+bUVx294ZxBMMRgZjUbobLJL3uauF6vh/wxWpfv8eZZsJcf0jm8/yk258FvyLhCApGo TCT6ts7IHQU4MXr30fd+9jHsUVnB/A2nK9Il5Yu7NjtCJioYjAp1CeZ+FtHmsGKBDc2D ovmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=0LXI4BK0; 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 w22-20020a05640234d600b004165de8312bsi449308edc.547.2022.03.07.02.13.06; Mon, 07 Mar 2022 02:13:28 -0800 (PST) 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=korg header.b=0LXI4BK0; 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 S238010AbiCGJoj (ORCPT + 99 others); Mon, 7 Mar 2022 04:44:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237611AbiCGJdE (ORCPT ); Mon, 7 Mar 2022 04:33:04 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06A3C6212A; Mon, 7 Mar 2022 01:29:56 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E36E2611DA; Mon, 7 Mar 2022 09:29:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EDCA9C340F6; Mon, 7 Mar 2022 09:29:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1646645376; bh=124lfYyWE+LaMgjw4Q4I4/7cB+m2kmkCj43VRGmBnI4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0LXI4BK0iILlol2XtVFJAiJ+j3G/hU+i4OUu5SV72T18J2uwvMIbK4UfD6a6+VLGv Gh3zzN1vi4nfv1kh4RpO5105X92aibxJzMK+CtsPL0nv39RWzJRQvMD8cf5NU5yc8K HdWOV8+AVfgG76lx3sSkZDASEfnLoK37XjzgPs8g= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sherry Yang , Kees Cook , Shuah Khan , Sasha Levin Subject: [PATCH 5.10 011/105] selftests/seccomp: Fix seccomp failure by adding missing headers Date: Mon, 7 Mar 2022 10:18:14 +0100 Message-Id: <20220307091644.501985901@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220307091644.179885033@linuxfoundation.org> References: <20220307091644.179885033@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 From: Sherry Yang [ Upstream commit 21bffcb76ee2fbafc7d5946cef10abc9df5cfff7 ] seccomp_bpf failed on tests 47 global.user_notification_filter_empty and 48 global.user_notification_filter_empty_threaded when it's tested on updated kernel but with old kernel headers. Because old kernel headers don't have definition of macro __NR_clone3 which is required for these two tests. Since under selftests/, we can install headers once for all tests (the default INSTALL_HDR_PATH is usr/include), fix it by adding usr/include to the list of directories to be searched. Use "-isystem" to indicate it's a system directory as the real kernel headers directories are. Signed-off-by: Sherry Yang Tested-by: Sherry Yang Reviewed-by: Kees Cook Signed-off-by: Shuah Khan Signed-off-by: Sasha Levin --- tools/testing/selftests/seccomp/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/seccomp/Makefile b/tools/testing/selftests/seccomp/Makefile index 0ebfe8b0e147f..585f7a0c10cbe 100644 --- a/tools/testing/selftests/seccomp/Makefile +++ b/tools/testing/selftests/seccomp/Makefile @@ -1,5 +1,5 @@ # SPDX-License-Identifier: GPL-2.0 -CFLAGS += -Wl,-no-as-needed -Wall +CFLAGS += -Wl,-no-as-needed -Wall -isystem ../../../../usr/include/ LDFLAGS += -lpthread TEST_GEN_PROGS := seccomp_bpf seccomp_benchmark -- 2.34.1