Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp938942lqm; Wed, 1 May 2024 23:33:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWSTSIvKptsrhgnTzCSxBlCisJtzZabwKcpBWs7G+MQwiw/Q23MK3F4lkoPXai1Y+KGTQE43d1miEipZ25eYFfDNUekUi3AfNLCbl1Nog== X-Google-Smtp-Source: AGHT+IHpfzfxCrcUdce3+RV5p9hZO0TOOzfOhzYp+BzXpSR4PJBDDhF+mHWNYEwp4+AvYwvaDVMA X-Received: by 2002:a50:a6cf:0:b0:570:1de6:8a2d with SMTP id f15-20020a50a6cf000000b005701de68a2dmr2671367edc.10.1714631589127; Wed, 01 May 2024 23:33:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714631589; cv=pass; d=google.com; s=arc-20160816; b=oiWhk/m2xqjuKFW6qAqBJQKWW/UKLJEdtzx6JuFw/31+g5FnFv5ZE3/9Hkf3i9CIiL ZaeeJdefdmzlN45iQ8+NKmzVKDSzpI+HsI5+GIXgs9vuo6iCuWgat5mUU56NT9moK6SO HOdG37BTBx2aptBx9Ec+eYZW/27LpEPpGE2+CE/zp9XwjgL+cRw9T9n3AXzuaE6NmFex 9FU8/wPcXV4cmOGPJrbEKQ/fCer3rMCkaDRKIKxLDlqGC1O1f/aHU1m8wEOxzSuY+Lui E3zJUBVoHp+biLB/vZhepOzN0uDD5SQhxI5qAbPefEwfxLkwU8LBQP/nH8Rz5PF6wxzy 9g5A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:cc:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=zcNl+9PGpo67EHEGYQ/IsCSW2xpyo/eJWMYTf4MrEqo=; fh=yyPyJvBC1JKB8PDyOL958uiw5w6n8XA9BmVlpTwAdkI=; b=xs6ZCbxdaT++7cdCAul2GbYSbBP/sFqTomxtecuW/30QCU4OJCub8vEkbZUygRNct8 t/z3fxamOow9H47MRLg+ZjBSIU49zGLVqVkooatdzuQ1MAuAm6tHeTZc4U6lqJXAHDE6 +gxLPgJTiOXf78wII9EPR5dHnV9SscaOqR/EUtUZCRR2j48cjM+P2yqFYa0C3Up/F14U n4Uly5JTcdcPd5iB/DuCHMafqOqhRGgQ3YT7CITEbEKJNC13NDSyZwfmsco5AGsZrp3+ 3bkdJuTVZlUQnqBdxGnSPuhXz6S1IPNurmOWrL18uDSnobLKVmojXIfKw0uyqTaJvYKU OLvg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=qOk0oevP; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-166007-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166007-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id cf27-20020a0564020b9b00b005727e5444a2si171171edb.587.2024.05.01.23.33.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 23:33:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-166007-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=qOk0oevP; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-166007-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166007-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id AD1C21F21F54 for ; Thu, 2 May 2024 06:33:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 882148F5C; Thu, 2 May 2024 06:33:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="qOk0oevP" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 44326A48; Thu, 2 May 2024 06:33:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714631581; cv=none; b=XDQE7Lacmi0NSfx59TjgRa825dcbdRddh/VSMkfD8eAnj/JGiaNRxoOfWRpokgsYg4ry8DwHdkwxj1NOC8CRjmJR6A0mUj7cDsUoNljUvyZxPK1XTKRIAiB0nCV5easM7+tnlXS7R/EYjrHmMICSMtKSAc6RPD0guUzcKOE8LQ8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714631581; c=relaxed/simple; bh=pjIqOJEiOt9KucXTf7b55UJINUUUZE6EEFDyk2OaR6s=; h=Message-ID:Date:MIME-Version:Cc:Subject:To:References:From: In-Reply-To:Content-Type; b=J3K3pvYPn4nhvDY8+tM9bEk1v2d4YaW7PtGezo3necVBMUeAIZdagyKqgdVL2+9Bg7ofXeDME9QFsw5ebW0oguwSdnVLZFbi1dxG4ajNiMwWoT4gA83cpnsepyRrqGUNt2DPSnLaejTfy4bvahP5o2tm5NqprpHwv76CBi+9UIs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=qOk0oevP; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1714631572; bh=pjIqOJEiOt9KucXTf7b55UJINUUUZE6EEFDyk2OaR6s=; h=Date:Cc:Subject:To:References:From:In-Reply-To:From; b=qOk0oevPJe0LgsiOcWVDLXXHzCvIYoiw1Wsitp25al+Np2Df1aAOdnCuCTASWptDo nan8oK3KXH1jABC8mPxSjHiIBLj9dMW9qebrP1PX7Pk+XXJBNQxaJ1DE6v2xCL6Rda FuaY7MhnChhcEoZt2qjErybB/Ezp+OFMbtGDzaWo5SJuCPr60IKfSoFa2VTm5KLElk t24Fx2hliDxtO8PDOk7tf9P0MtzNAHVZyW+vHO8L9+wSK8AD5CVEvWQ5m94Gg9BooL w5f3uU5JP2RAe+Ac39q5iEiLzQkQrLyP+mfTqXqS2Ow9FzdIKl4EJJbGr7lLUm1dGg UAjj6nWFVe0mg== Received: from [10.193.1.1] (broslavsky.collaboradmins.com [68.183.210.73]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: usama.anjum) by madrid.collaboradmins.com (Postfix) with ESMTPSA id BE6D3378001E; Thu, 2 May 2024 06:32:47 +0000 (UTC) Message-ID: Date: Thu, 2 May 2024 11:33:17 +0500 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Cc: Muhammad Usama Anjum , Edward Liaw , oe-lkp@lists.linux.dev, lkp@intel.com, linux-kernel@vger.kernel.org, Andrew Morton , Andy Lutomirski , Axel Rasmussen , Bill Wendling , David Hildenbrand , Justin Stitt , "Mike Rapoport (IBM)" , Nathan Chancellor , Nick Desaulniers , Peter Xu , Shuah Khan , Will Drewry , linux-kselftest@vger.kernel.org, linux-mm@kvack.org Subject: Re: [linus:master] [selftests/harness] 8092162335: kernel-selftests.sgx.make.fail To: Kees Cook , kernel test robot References: <202404301040.3bea5782-oliver.sang@intel.com> <202405011330.85D66871E@keescook> Content-Language: en-US From: Muhammad Usama Anjum In-Reply-To: <202405011330.85D66871E@keescook> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 5/2/24 1:32 AM, Kees Cook wrote: > On Tue, Apr 30, 2024 at 11:02:36AM +0800, kernel test robot wrote: >> version: kernel-selftests-x86_64-c7864053-1_20240419 >> [...] >> compiler: gcc-13 >> 2024-04-29 15:02:59 make -j16 -C sgx >> [...] >> gcc -Wall -Werror -static-pie -nostdlib -ffreestanding -fPIE -fno-stack-protector -mrdrnd -I/usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-8092162335554c8ef5e7f50eff68aa9cfbdbf865/tools/testing/selftests/../../../tools/include test_encl.c test_encl_bootstrap.S -o /usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-8092162335554c8ef5e7f50eff68aa9cfbdbf865/tools/testing/selftests/sgx/test_encl.elf -Wl,-T,test_encl.lds,--build-id=none >> /usr/bin/ld: warning: /tmp/lkp/cct4g3SV.o: missing .note.GNU-stack section implies executable stack >> /usr/bin/ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker >> In file included from main.c:21: >> ../kselftest_harness.h: In function ‘__run_test’: >> ../kselftest_harness.h:1166:13: error: implicit declaration of function ‘asprintf’; did you mean ‘vsprintf’? [-Werror=implicit-function-declaration] >> 1166 | if (asprintf(&test_name, "%s%s%s.%s", f->name, >> | ^~~~~~~~ >> | vsprintf >> cc1: all warnings being treated as errors > > What environment is this being built in? "asprintf" should be available > via stdio.h, and "kselftest_harness.h" includes that (and _GNU_SOURCE). Sometimes the order of include is as following: #inlucde #define _GNU_SOURCE #inlucde The _GNU_SOURCE wasn't defined the first time stdio.h was included hence the definition of asprintf isn't present. The second inclusion of stdio.h when _GNU_SOURCE is defined is ignored as it was already included. This is being fixed in following series: https://lore.kernel.org/all/20240430235057.1351993-1-edliaw@google.com -- BR, Muhammad Usama Anjum