Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp567362pxb; Tue, 15 Feb 2022 22:19:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJw+a+fOSi3jfXPe7fovznbYSCqMlUStP9CsWejVeMQjcdwi23nDC/obdXpPg56ZhNwAOQM7 X-Received: by 2002:a17:903:288:b0:14d:b0a3:118 with SMTP id j8-20020a170903028800b0014db0a30118mr949115plr.37.1644992359413; Tue, 15 Feb 2022 22:19:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644992359; cv=none; d=google.com; s=arc-20160816; b=eFLa5v+OfYFsi0F+5WSPSyxJiuAiayLuh7qerBpqnPkitgUYenkvEtu0h37fElmZYq R9yurGBWjFK0h0u2UYZwgMsIBmZ+aNALD/oHXG3f/vnQfHm356D5POXVC/IGeQaUL89h 7W4gbv3CEei4eGTdwQKRqmuxFrtctY2hUYe7TJh+D3rNqgZ/CCvy5SLTjVhq+OAtcixH l9dqkUcUxy48E+LzYJu2+sKNyHWDn1P2NR6h0Q3wN520WupgNtpdBjvi1LTobwFzDWbM nwihEmZCYjRipv0VgmJWgMr34CXfs+030b/4el3V5cgE7MB7alXQGynzYN8EjOledL4R LpRA== 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=A0+kP93DPXHvr6brEvM8VXEFzWB0S5lRFdtA9kDJkyE=; b=yp9HDkb/yrXTd29LXjkU+cbjw3+R/q1GuvOSyQKS4P2J4ngm0qcwiQVMBsa0NM+FBT WjkyNQlcgpkn9udHHT1+UIi4ylkDyUI5IuoF6Sxs8iHpRbxgl6Qv2ugLam3gvncINIZh S8eeoDIoYxro6KVCBaNrFQekNAr1XUXzPPUFXVLFzskvMjU+1Jep6nEvuMKPWRFl74CI o5pkYf9uG9xh5hCLQnJNmdHpWIG+3q6S6u3d7uflA+JKAqGMg94xYnEgW5QokM9j3f7I 7Y6Sxjv6EWAsKYYOlaZZmZX+tIfiAkE5GO8gIyvj5nrGkVfGMv3fZ3QT8+052eSOlMo/ ipnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=VbnG0DTF; 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 h190si4638342pgc.874.2022.02.15.22.19.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Feb 2022 22:19:19 -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=VbnG0DTF; 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 BB23C1EECF; Tue, 15 Feb 2022 22:16:54 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241571AbiBOSoB (ORCPT + 99 others); Tue, 15 Feb 2022 13:44:01 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:50244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241980AbiBOSoA (ORCPT ); Tue, 15 Feb 2022 13:44:00 -0500 Received: from mail-il1-x135.google.com (mail-il1-x135.google.com [IPv6:2607:f8b0:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E176B27FF6 for ; Tue, 15 Feb 2022 10:43:49 -0800 (PST) Received: by mail-il1-x135.google.com with SMTP id h11so15523473ilq.9 for ; Tue, 15 Feb 2022 10:43:49 -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=A0+kP93DPXHvr6brEvM8VXEFzWB0S5lRFdtA9kDJkyE=; b=VbnG0DTFoD5oInsLnSpyK8TY1b9yTtEV8jmDclcI0lVoHXaRfQ+1Kei06xf8rXYF7T Wg/jkDG2mswlylVxkUyUwagh7VpOigDobBSIN+ruOXrKdEbqescCjLVZjKa5xcviv9J2 6BHdIVuOY/izVwkXKs6tMZ1SXb1wuGFnkP+R4= 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=A0+kP93DPXHvr6brEvM8VXEFzWB0S5lRFdtA9kDJkyE=; b=QpE2M4zPcDWkK7tRYsMbd/I2REEkYC87riK+uxfAF66mWn4kDUQgaLN7Z1UvfVsQht HjTzqpBxCTNlBjF9SpB6O11FH8ifGNpvL90nhLQYFV9BqeABD7tEvO1nNXpUme/wA7cn +HX28iw/mXDxSo/5WmY/oIAiUopWCBhODa2b3tKhQC6h5opfs40Cdp4ED97Yipyq9E3n OHDE3wHxP4Vt8zFD3vNLHfConQmHOjD67Vl+lhyeOjSLYAG7540VK8PgBCvKJC+Nufob rZqnnjOsEcVX57ZEG71trMiQsBOOnJivqpMnNDVmKdNqYC5G5vyHLqpp958OQ2EMItrD To+w== X-Gm-Message-State: AOAM530v66vDbVaHIsQVYASod3ucRqPQLPAuEjsXz4FzvlWctfLy6wXu f65ovjcJslCoSQWOyP4c+2rmCQ== X-Received: by 2002:a05:6e02:1bc1:: with SMTP id x1mr258711ilv.268.1644950629300; Tue, 15 Feb 2022 10:43:49 -0800 (PST) Received: from [192.168.1.128] ([71.205.29.0]) by smtp.gmail.com with ESMTPSA id s16sm12850411iow.10.2022.02.15.10.43.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 15 Feb 2022 10:43:49 -0800 (PST) Subject: Re: [PATCH v2] selftests/seccomp: Fix seccomp failure by adding missing headers To: Muhammad Usama Anjum , Sherry Yang Cc: "shuah@kernel.org" , Kees Cook , "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" , "linux-kselftest@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" , "bpf@vger.kernel.org" , Shuah Khan References: <20220210203049.67249-1-sherry.yang@oracle.com> <755ec9b2-8781-a75a-4fd0-39fb518fc484@collabora.com> <85DF69B3-3932-4227-978C-C6DAC7CAE64D@oracle.com> <66140ffb-306e-2956-2f6b-c017a38e18f8@collabora.com> <4b739847-0622-c221-33b3-9fe428a52bc0@collabora.com> From: Shuah Khan Message-ID: <2f59f86c-dbd7-7dbf-021d-bc62ebbe2a43@linuxfoundation.org> Date: Tue, 15 Feb 2022 11:43:48 -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: <4b739847-0622-c221-33b3-9fe428a52bc0@collabora.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit 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:17 AM, Muhammad Usama Anjum wrote: > > On 2/14/22 9:12 PM, Muhammad Usama Anjum wrote: >>>> "../../../../usr/include/" directory doesn't have header files if >>>> different output directory is used for kselftests build like "make -C >>>> tools/tests/selftest O=build". Can you try adding recently added >>>> variable, KHDR_INCLUDES here which makes this kind of headers inclusion >>>> easy and correct for other build combinations as well? >>>> >>>> >>> >>> Hi Muhammad, >>> >>> I just pulled linux-next, and tried with KHDR_INCLUDES. It works. Very nice >>> work! I really appreciate you made headers inclusion compatible. However, >>> my case is a little more complicated. It will throw warnings with -I, using >>> -isystem can suppress these warnings, more details please refer to >>> https://lore.kernel.org/all/C340461A-6FD2-440A-8EFC-D7E85BF48DB5@oracle.com/ >>> >>> According to this case, do you think will it be better to export header path >>> (KHDR_INCLUDES) without ā€œ-Iā€? >> Well said. I've thought about it and it seems like -isystem is better >> than -I. I've sent a patch: >> https://lore.kernel.org/linux-kselftest/20220214160756.3543590-1-usama.anjum@collabora.com/ >> I'm looking forward to discussion on it. > The patch has been accepted. It should appear in linux-next soon. You > should be able to use KHDR_INCLUDES easily now. > Sherry, 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