Received: by 2002:a05:7412:9c07:b0:fa:6e18:a558 with SMTP id lr7csp771345rdb; Sun, 28 Jan 2024 08:13:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IG8+7X77d4v/3Kn8ql2WMEOSOejQN4TudSqPkp7UkxkNWWyBktpi9kkg8meNTkVrzFAZvW3 X-Received: by 2002:a17:902:d2d2:b0:1d4:79b6:101a with SMTP id n18-20020a170902d2d200b001d479b6101amr4423798plc.41.1706458418697; Sun, 28 Jan 2024 08:13:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706458418; cv=pass; d=google.com; s=arc-20160816; b=lWt6WorZCApIVXWz8GZWS2PYEZRckD/CB4s7+VJiYAhn+Lw3Yes3/Bl6KO6buA42HO NUoLcGkBZjkbyqK2xSkM4frr12CgCvlbHEXzysycUiI6gjgnr0+lRcsYQhIe0lWP7tnI 7GhHW19gt9BmMzgVkSulJQ0pWw9/55LIw0VKhtat7Cv8dW++j6Abt469k99CG560486P UCz7ArLID+s4egrJKsHUB6F/FaYmEZCSwsAiC9n/JRJMQy1ieV2Fj1MlPKE5ryhKw3yv UqlpjJ47xtzQrpf5mvmIzOlOEWWqR0phAYspsBsIpa5yquzKAAz+dNDx3UY8MW+T+qEB i24A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=zYYkYFtiCSKsvL39D8C9xPEnJTngHbub/Z6qCrCV/U8=; fh=NS6oj45LvSS/W40ViAcsjpX9nFUnsi6Q+Ot0tUPsd88=; b=Dc4LoGtwiuqy5s3LoXWK3FwYa3dDmo6VjfgCBn2Ha0HzGo+Ua2l+XxggxvnF2u7x0I Ohf74i5DkREwGi+Jge/q+r8ofDKMnv0z4mleQRF4rw9+YVJDcvC8KeOPhx4sufloXJtK UyvxVCTT5ZhyEQz5Jq9KTyQT34y6+LIIOqQNsoEzBYcQLTgZY+O4yYmstCmZdeldjMlu nb7aTXPON/DunIjTmkPLyTHEmrKmb0gCvfnA7i6Betes9YjEkugwVHGZP3nyUMHPA7EX CrBLGAuPI87TKgvwVT4utYjjPhnu3Vh+GeXT93YfvHkOhCuldpSl6T17bEU5FoQvKkDc 7IaA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=h+eXwc6Q; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-41690-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41690-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id t10-20020a170902dcca00b001d7303cf1f1si4137178pll.443.2024.01.28.08.13.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Jan 2024 08:13:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-41690-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=h+eXwc6Q; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-41690-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41690-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 5AC33281F5C for ; Sun, 28 Jan 2024 16:13:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9DE2241C93; Sun, 28 Jan 2024 16:11:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="h+eXwc6Q" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 B3D803CF67; Sun, 28 Jan 2024 16:11:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706458306; cv=none; b=G/ZKcs2IPdsrtjgunRTBrIhRkYcH3psYWf2BkPnW3wiABRJ/T+JDNH7WnFIkBQpTFw00nUPdr8/+93cN03WWRsLP7hZGVBDh34LMtIcmAmBAAJxwSfjDWcMB5ZoH4/MDF+oOZe5sEJ9hFrIYlDUjLR3hAilO+SZcxiPr371y1N4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706458306; c=relaxed/simple; bh=VBn9Yltm5cfWYKt+VTGYGKZwWroFJx7UMerJX8Wpfqg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=pW2RLVS0fYcdqzcLlFSeYu6ylv9++7safOH9Yk4dhycyaiOa9RsG52JsoTXJ9LTGCPcf1OeWxm2r1utN6lPx22e0H7r814zuCrgfbgyKgBlDjWuklrANl8mX604/kQz6b2FMWTJFVq2BZuGCmrQe6A4ftNeQBUWILlfZ6fB8kDw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=h+eXwc6Q; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4737CC43394; Sun, 28 Jan 2024 16:11:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706458306; bh=VBn9Yltm5cfWYKt+VTGYGKZwWroFJx7UMerJX8Wpfqg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=h+eXwc6QRUmXuDyPRCdjuB3dBN+Nz9UWDMHm0vO+VRD4+B5pQD8zZlVDjiBVUsPlX BP/RdedcPXkgR+ZGthvyGbyPm5rHUEHHyPCtaOZAOF3bWc2YCm0//VW21HmeETaK/g lyiQBwQx1DGCy73+t4muds1KfiqnA+WxFCICKAzJGc66njPiMlzfywys70sbdOELzh uvsb0D4HKF+gj6LMNwNFOWwCf4ORuRUWjLOOVXafPa9MwQcS9N+Mq/Nd+ErJ6eZ6WR g8Hjo1aV1svJo1tdFCP+xWTCl1zbC5UqmBS7+dKyBAY0ojUfHFrMZ/Rvm1HEkezS1u DyUd0nhsK/Unw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Jo Van Bulck , Dave Hansen , Jarkko Sakkinen , Sasha Levin , shuah@kernel.org, linux-sgx@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH AUTOSEL 6.7 08/39] selftests/sgx: Fix linker script asserts Date: Sun, 28 Jan 2024 11:10:28 -0500 Message-ID: <20240128161130.200783-8-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240128161130.200783-1-sashal@kernel.org> References: <20240128161130.200783-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.7.2 Content-Transfer-Encoding: 8bit From: Jo Van Bulck [ Upstream commit 9fd552ee32c6c1e27c125016b87d295bea6faea7 ] DEFINED only considers symbols, not section names. Hence, replace the check for .got.plt with the _GLOBAL_OFFSET_TABLE_ symbol and remove other (non-essential) asserts. Signed-off-by: Jo Van Bulck Signed-off-by: Dave Hansen Reviewed-by: Jarkko Sakkinen Link: https://lore.kernel.org/all/20231005153854.25566-10-jo.vanbulck%40cs.kuleuven.be Signed-off-by: Sasha Levin --- tools/testing/selftests/sgx/test_encl.lds | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tools/testing/selftests/sgx/test_encl.lds b/tools/testing/selftests/sgx/test_encl.lds index a1ec64f7d91f..108bc11d1d8c 100644 --- a/tools/testing/selftests/sgx/test_encl.lds +++ b/tools/testing/selftests/sgx/test_encl.lds @@ -34,8 +34,4 @@ SECTIONS } } -ASSERT(!DEFINED(.altinstructions), "ALTERNATIVES are not supported in enclaves") -ASSERT(!DEFINED(.altinstr_replacement), "ALTERNATIVES are not supported in enclaves") -ASSERT(!DEFINED(.discard.retpoline_safe), "RETPOLINE ALTERNATIVES are not supported in enclaves") -ASSERT(!DEFINED(.discard.nospec), "RETPOLINE ALTERNATIVES are not supported in enclaves") -ASSERT(!DEFINED(.got.plt), "Libcalls are not supported in enclaves") +ASSERT(!DEFINED(_GLOBAL_OFFSET_TABLE_), "Libcalls through GOT are not supported in enclaves") -- 2.43.0