From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by sourceware.org (Postfix) with ESMTP id C1E7E386F830 for ; Fri, 29 Jan 2021 02:48:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org C1E7E386F830 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-554-HrHx6yfeNPipzENvU-VAJg-1; Thu, 28 Jan 2021 21:48:49 -0500 X-MC-Unique: HrHx6yfeNPipzENvU-VAJg-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D543E801FD4; Fri, 29 Jan 2021 02:48:48 +0000 (UTC) Received: from greed.delorie.com (ovpn-114-77.rdu2.redhat.com [10.10.114.77]) by smtp.corp.redhat.com (Postfix) with ESMTPS id AAA8E5D769; Fri, 29 Jan 2021 02:48:48 +0000 (UTC) Received: from greed.delorie.com.redhat.com (localhost [127.0.0.1]) by greed.delorie.com (8.14.7/8.14.7) with ESMTP id 10T2mlUP007568; Thu, 28 Jan 2021 21:48:47 -0500 From: DJ Delorie To: "Madhavan T. Venkataraman" Cc: libffi-discuss@sourceware.org Subject: Re: [RFC PATCH v3 2/5] x86: Support for Static Trampolines In-Reply-To: (madvenka@linux.microsoft.com) Date: Thu, 28 Jan 2021 21:48:47 -0500 Message-ID: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libffi-discuss@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libffi-discuss mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Jan 2021 02:48:52 -0000 Sure, you still need to use the __CET_ENDBR macro in your trampoline. And it might be tricky to compute the number of iterations per page (I understand about the packing ;) I'm just saying you don't need both CET and non-CET trampolines. A CET-enabled trampoline should work in a CET-disabled system.