From mboxrd@z Thu Jan 1 00:00:00 1970 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 BF8FE3C2F; Wed, 21 Feb 2024 13:39:30 +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=1708522770; cv=none; b=MweYoNQUGNN04XkucaTwJ6psrqQXPVkqtfTI8p9+wS51U81+eRaYF/0vrgLvq9AlwDfNaUqqcKrOjcHdDC3jbn8OIt8PBedPPh63iIeJgLteXm4EVdYIBMJQgRAkAm8+c8XSfKCFv28BA07/rELfvfldPwI23+BwQRnE5eRR68o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708522770; c=relaxed/simple; bh=GxnaKloaGzF5OfDVUH8K+NTjc3LsaQknFHO7cVju4dc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=GWFSgE1qWTHRfTHPIibtIsLKoHTdVktXJNGBCBXix1DB+sA39f5qmH/tWhUBEJgxaVPsolXEXVHvqL/BEAzPE70fVrvIbMQyl1PhrB6InTdaWRBwck1DvbVV9OLk+CyEWXMOq0MmEEENnBKEqZnpI7qmdD7+QTj6BQaNR+HtFX8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=o7QGJwcr; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="o7QGJwcr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 48BA8C433F1; Wed, 21 Feb 2024 13:39:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1708522770; bh=GxnaKloaGzF5OfDVUH8K+NTjc3LsaQknFHO7cVju4dc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=o7QGJwcrDPbfEhoC/QyB9XnfWS8qSFYtAKQ5KD+HL+40A5Yvo21lsLLdnN2VFrlMV UuoPfbGr/FgwTKSHl8fxo2d7mSvPoL5eGH4HbtN2RvQBQY36uC0EhVG4Qd3NaL5Kkz zaU78qJNdhj82xQC93BYC8REd/IDza6ANbv7mUew= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Jo Van Bulck , Dave Hansen , Jarkko Sakkinen , Sasha Levin Subject: [PATCH 5.15 253/476] selftests/sgx: Fix linker script asserts Date: Wed, 21 Feb 2024 14:05:04 +0100 Message-ID: <20240221130017.194958310@linuxfoundation.org> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240221130007.738356493@linuxfoundation.org> References: <20240221130007.738356493@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ 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