Received: by 2002:a05:7412:9c07:b0:fa:6e18:a558 with SMTP id lr7csp779622rdb; Sun, 28 Jan 2024 08:34:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IEq64BznHrPyP0LXotGqFURmoSMxQe0aRsX9QwE1Y6hKi+UBxyaXZbnZ0F+rTe3JW0uzcgK X-Received: by 2002:a17:906:d8f:b0:a2f:1650:a0fb with SMTP id m15-20020a1709060d8f00b00a2f1650a0fbmr2534386eji.66.1706459673966; Sun, 28 Jan 2024 08:34:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706459673; cv=pass; d=google.com; s=arc-20160816; b=pOuF+mPMUp8eb9EWAaVRZ48ktARb9D/I8+En3T5tzaHJyaZXbCbIMIhFa14APvMUOV KwZR31vV+pAziqZAJgpXGZ/qMsaR6rc1LnLZtF5ZJIQPE9XyejG4xjlCWU7Hjhtv6yT6 +FVSnqEIlw7gdIyfEHcuA4tV/x8vPopbiG/8j3T6+1sxopufcJvj/Oq3aTF+xei6AAVQ /H7WN82If32uhdNErRCOlTeCLx6qVdHi1VIhFbJmtKJepi19kjokoh+ru1luKFtCobXr 1bwtZZ1Ji/dW1r5oqUyZlj0yjhRzxOLOcjZSpa1qughERZ31hxrkQ2YNEoOhSN7ZfFVJ NJRA== 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=c+94B9APNINaFZ/aFouWRvwODjfczxocwS5DYPAXY+n//ZIpHucPK5D0L65+BhBDHJ AWdl/jJC09PwMlKGIjck2QuzYiBiwMR4PRR74CY6MRfw+4QqfHdhwpjVfUer+M34OI0e Vn1vofKKoFP7S37vVGok96WNrago2hZUzLv+JOIbvr00x1GLRJ7D8/gbWjIs3Orrngo0 OuXjxT7xIo+cwPaV+Fj8i+tZcCfSZ/bRPDU2LBn3mXzW9eG2jnGxXmDvW8gQpndvFbF4 G99veKi3F69yXvjSJKkXjdNHdBd+KBohe88M7lufp5zUMOqPnXX0gfZzmAkZYQsFqOcB fV3Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WnwGoMhL; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-41762-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41762-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id p15-20020a17090628cf00b00a35756bf44fsi920084ejd.14.2024.01.28.08.34.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Jan 2024 08:34:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-41762-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=@kernel.org header.s=k20201202 header.b=WnwGoMhL; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-41762-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41762-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 am.mirrors.kernel.org (Postfix) with ESMTPS id E1A481F24497 for ; Sun, 28 Jan 2024 16:33:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 17F486BB59; Sun, 28 Jan 2024 16:14:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="WnwGoMhL" 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 3E3A66BB47; Sun, 28 Jan 2024 16:14:39 +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=1706458479; cv=none; b=DkeIa7He4VyKLbT7ac7bzQLYZjCEA5Bs3eIza8vXvcCMjQOf6jMqJj0yFmOcvfVUgV+UFbXvJjmFtliHrV8Wl3xAOnzm1sVS87JBNoQxXKLDqawbGB5f4bMtZUUHSUamLh1S0nH98uNpdAj9r2IF3pGQmRXlwFS8idACQlCH+Kg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706458479; c=relaxed/simple; bh=VBn9Yltm5cfWYKt+VTGYGKZwWroFJx7UMerJX8Wpfqg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=UD+K05HzHFoxO/ZcpFfXu7XqjfPle+CSjeZH2O2n7EPP2A1f4xdGS/5FIfDsfavHoQwmgfKeOTr45Hd2+oc31YozJMWXdkPgcaLwQhwVn/I9X/SGx1JcODhmLdVEyeOhV5BAH+H+uGiCu1vs2eL6du97z02YiklOEFirfnvatyg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=WnwGoMhL; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 17B72C43399; Sun, 28 Jan 2024 16:14:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706458479; bh=VBn9Yltm5cfWYKt+VTGYGKZwWroFJx7UMerJX8Wpfqg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WnwGoMhLoFXgUuDZh8JZt/h45uFEy26cmt4qw6NbrWfAoemi3LnqzwCbfWVSXMelr vgF+QGa+4ENMSts1Btz47IFqJSo/IKO800ENkQMcgOcvwAUJAkyOMoVoLOpQqv8TmG IhSOUJgj/VXD1/5vPtXMtV5thcy78b1RTZW4SrG1kL2oqDLieKeuNGMP7BkOozZn1Q jK+2Ps7evVMrZ8FW0TB5WZQ8BUgbPX2AYWh8H/unt9jKX6ODdVEEu+dhJst5ncVpuv BUiA12eYP6EALeXyQcLx9L///uBfqD0EWFXHsPBIu/h5T+gUQA7GvlI+gaOISO/adQ yifqN0MwuL2Rw== 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.1 07/27] selftests/sgx: Fix linker script asserts Date: Sun, 28 Jan 2024 11:13:52 -0500 Message-ID: <20240128161424.203600-7-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240128161424.203600-1-sashal@kernel.org> References: <20240128161424.203600-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.1.75 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