Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp606396pxb; Tue, 15 Feb 2022 23:34:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJzVpTWLEOziH7DTfd5OByYF9i5bsoHb9PsaOKW0sRsH9guQhQ0Qmr1NqjXq/36aWuGGV7Oi X-Received: by 2002:aa7:8a42:0:b0:4e1:5898:4faf with SMTP id n2-20020aa78a42000000b004e158984fafmr1925788pfa.17.1644996865063; Tue, 15 Feb 2022 23:34:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644996865; cv=none; d=google.com; s=arc-20160816; b=OVtnNdLJj1t5ZtjGtrxU1qqOSkktcrr/8bGcKtQ+jamxeDJPXWxxPRyQQ3Us04/kEJ KrvxxZV1nlUgbp3CbpHwZ9Lmj3vzZ+gdIxWIUXlxUXZIsA1UhG53UyEV3/LlrmD6QHtf QcgJpoHxHTwk7bmkl9J8l3OXfcZaXCa99TuBp76FM0O9dIY/Wu0bLq8TWu8LrIqZEkqi JsFwhkExz8tb+QX+JxrDcxp1JHqlufzAW77L2FORf841JeVDY5im3YEgc03TAo4tpklD n3+wDzEICSGR8mgJJR4FSE+g7O4/axKKQ0OrxWBHwMV1ySDgmE+FC0x7Gs7QJ8zK4jsg xFTQ== 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=n3AOo60tfBaJy0Iklwh+IzdN0WzcJlMEZNrEs/WOwvw=; b=pj8lyBjWKRsp/ITyQJ0cLDQeK8B+3a5pYTaxRHpnNDsfXbwiELd8HAvNqkNOxss80d oFyKU+scG9h/w3GUIXauyhyg7EaC4x00Fw7sGOYneBdvOKsmUxzt7YdB7lzXca8Y2c29 Qnnlds7+3p3o+AHXnHSpZLVGNaJ+UDnOxGyX3ta3PG0Hu/JkXxtCALf3oEz5cDi5RpQN cufyzWbbJy+NaC3U1oweizgALhwd61Oa2UX0mfXEVpIO1E6LqD+ciUYHCq9pAhanfFlu VPzJ/WSduYako4x8VKQeW6ISkatWWf48Ys7KE7gSpQ7OR4HIXX4uJnFbcmPoIL62QkN9 Gy3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=LrwQguX7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id bj6si4775668pgb.190.2022.02.15.23.34.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Feb 2022 23:34:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=LrwQguX7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7847C2A97CD; Tue, 15 Feb 2022 23:00:46 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243181AbiBOSpz (ORCPT + 99 others); Tue, 15 Feb 2022 13:45:55 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:54604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237418AbiBOSpy (ORCPT ); Tue, 15 Feb 2022 13:45:54 -0500 Received: from mail-il1-x12c.google.com (mail-il1-x12c.google.com [IPv6:2607:f8b0:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45EB3DB493 for ; Tue, 15 Feb 2022 10:45:44 -0800 (PST) Received: by mail-il1-x12c.google.com with SMTP id d3so15539420ilr.10 for ; Tue, 15 Feb 2022 10:45:44 -0800 (PST) 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=n3AOo60tfBaJy0Iklwh+IzdN0WzcJlMEZNrEs/WOwvw=; b=LrwQguX72d7dQoMRVwv17UfZHO/gfxy7H+qTm1mQL7cG385yS/SywqjBNPcGMad0Au ex+cSrtSKEzSpSHI/BABqhNvi2VO/qwGn6c+BOo4r1Ixiv2iLXEgQrB0Dwh0LW4Cdhz1 JjYJXGtTXuY0TMIUrdSNceDkXBYN8LyO6KYaY= 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=n3AOo60tfBaJy0Iklwh+IzdN0WzcJlMEZNrEs/WOwvw=; b=TnD2piVhsolxX8NSSIlFDbBuZdwiOQcgdPIL0Gk7rt8Kvw5cd0zJlnlLtuIEAs/xgs B8Hney7jIoMv4Da5xIB7I24r2vyp5FYf3PmvSVu35/MvbfPhWyJ3iSK/2hKjCJFHG/4D lHE3yKSVAztLoWkshc4Qg9OpdrhVQIo5CSAzmQmR5urJsqIJai5MZoQLajaYrqhxkRdy ki+rMGTb+9To2CXHoIKyg9obOroBpY/0OKVg6tNuCGxN5v7vH71L/3y1fhr5Tp7BCHMX x+IgHfaGzZE7KAvu6Y+OXCQ88IU85+EOTIpiyu3O3J66zXQ+x5XI3GAG94J+L6i59ary b9Xg== X-Gm-Message-State: AOAM532EMIyA7iyrMUP35dBYTmhIL6+n/VzndGHJKSNtsyn/TGLjW6d6 8DNxSKnUIGigSGHk1Zz4lpbU0g== X-Received: by 2002:a05:6e02:1a21:: with SMTP id g1mr280061ile.154.1644950743677; Tue, 15 Feb 2022 10:45:43 -0800 (PST) Received: from [192.168.1.128] ([71.205.29.0]) by smtp.gmail.com with ESMTPSA id n12sm22596509ili.69.2022.02.15.10.45.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 15 Feb 2022 10:45:43 -0800 (PST) Subject: Re: [PATCH v3] selftests/seccomp: Fix seccomp failure by adding missing headers To: Sherry Yang , shuah@kernel.org, keescook@chromium.org, luto@amacapital.net, wad@chromium.org, christian@brauner.io, ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, kafai@fb.com, songliubraving@fb.com, yhs@fb.com, john.fastabend@gmail.com, kpsingh@kernel.org Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, usama.anjum@collabora.com, Shuah Khan References: <20220215184215.40093-1-sherry.yang@oracle.com> From: Shuah Khan Message-ID: <022c8d4f-25aa-76e4-3e7c-eae1d1431a01@linuxfoundation.org> Date: Tue, 15 Feb 2022 11:45:42 -0700 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: <20220215184215.40093-1-sherry.yang@oracle.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=no 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 2/15/22 11:42 AM, Sherry Yang wrote: > 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. Use KHDR_INCLUDES to correctly reach > the installed headers. > > Signed-off-by: Sherry Yang > Tested-by: Sherry Yang > --- > 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 0ebfe8b0e147..7eaed95ba4b3 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 $(KHDR_INCLUDES) > LDFLAGS += -lpthread > > TEST_GEN_PROGS := seccomp_bpf seccomp_benchmark > Sherry, Please see comments on v2. Your v2 is in next for rc5. I pulled in your patch as a fix as is for 5.17-rc5. Using KHDR_INCLUDES can be separate patch for next release. This way the fix is going to be pulled for this release without dependencies on other patches. thanks, -- Shuah