From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=40.93.195.59 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795991857; b=rtBhGGkKDqm5pRmMeJqMXugOmgxGCy3+8cdS5Jl3g/2/SlVSzzem/EiBvh3AwOfTPDlJ j0Stjg2hI+pSVl52pBVj3ihLKE/DxPUU8CzgR7Oz9G53LUwrEBxLDqpT5IaOjW/AnPZou 08EW7A4bjra4j6WIsarP21hwn5UDfoaESlReZvhg+2mkpSlEnGk3rYEStk7wcobzfW9et ZzC1skiLTFwKLcjuwCqziNVMX7pJQCe3ZESwRop5cmPDyhF02BWDcHjBszDqHUOoWbqNu kZXK1wsfPlJcUCYvQdI//6Ga4zIKQIm8l52Vg2WtFsMGqOQuJONRZ4w/sbEGSwbnvEg== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795991857; h=DMARC-Filter:DKIM-Signature:Received:Received: X-MS-Exchange-Authentication-Results:Received-SPF:Received:Received: From:To:CC:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding:Content-Type:X-Originating-IP: X-ClientProxiedBy:X-EOPAttributedMessage:X-MS-PublicTrafficType: X-MS-TrafficTypeDiagnostic:X-MS-Office365-Filtering-Correlation-Id: X-MS-Exchange-SenderADCheck:X-MS-Exchange-AntiSpam-Relay: X-Microsoft-Antispam:X-Microsoft-Antispam-Message-Info: X-Forefront-Antispam-Report: X-MS-Exchange-AntiSpam-MessageData-ChunkCount: X-MS-Exchange-AntiSpam-MessageData-0:X-OriginatorOrg: X-MS-Exchange-CrossTenant-OriginalArrivalTime: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-Id: X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: X-MS-Exchange-CrossTenant-AuthSource:X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-FromEntityHeader: X-MS-Exchange-Transport-CrossTenantHeadersStamped; bh=rQjg+d3ZAnv46Vj21X1xbrvb/5HDwh1/4yemUuQVpLo=; b=A7j+YhKBEIHA2dy4/5EwykJMEJLpZ8ZlgbbFr/au+7ekZm/AwOlPD4Z71KHl4eqA1kbR V9SIi2vGgbFtvecg5igJls4YJmtl9wS5mPWHb34cqadJbvEk0lFwK189VJpf/v2ezB07T 1F/n1CgunCKASVFFwrzbOGJZWU3AC8P01Eb1AFvnK+x0RXnD2KobqZieZC6thQjU+afyv RUIBqiaV4MzwPLnOjbNMClvrpuKEjmhzt7caar+4kDV0sOtE3fygE0F0nmu6Upm+W2U13 9nYLcFvzVtE5VNz4zEuzuFvdioGkiTj2keeqd5nfhzGcVFPVmWlAUea7qp8+FrDSKUA== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass header.d=amd.com header.i=@amd.com header.a=rsa-sha256 header.s=selector1 header.b=SbLshmNj; arc=pass header.oldest-pass=0 smtp.remote-ip=40.93.195.59 Received: from SN4PR2101CU001.outbound.protection.outlook.com (mail-southcentralusazon11012059.outbound.protection.outlook.com [40.93.195.59]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (secp384r1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ADA4E606A325 for ; Sun, 29 Nov 2026 22:37:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org ADA4E606A325 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=amd.com header.i=@amd.com header.a=rsa-sha256 header.s=selector1 header.b=SbLshmNj ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=y0hiPdmQMdQZcpnOYg4RtfJNcY4JhBZrDoSpPXOryUN/0vMQhXKNc2ddo1U2ejfAZQrVddAV4LUftOgBQDiV1ht5qeU81aQAtKEQKCLW0Mkx9iXp4f3ax2d+jTVsKbg6reyP2ak3y4u+ATyrscgwfuPvVQRGPGJsQbqnmF0TY/g/g7Qh+uuKz7OOACCeLoixieji0wCkXtW/CkTv71EW3bl/HNVK/4m/3SThfA7t2rcVAX2C5uMOGScmthjMNwTfPtP+pUZVQ7kwtNceM1DTRvj96XlTn2hhIDGCv1Ta6DAhA5QT7Gb1TDCpXpMvNJOXwMmYcAvaBEfoAZfftLoCaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=rQjg+d3ZAnv46Vj21X1xbrvb/5HDwh1/4yemUuQVpLo=; b=PZiO32G4hn4L0DLHC06oXzIjhb6eoqv0AEjr3yBbffq9+raYVW1n6vyrpKyyNBqlsAbISbg+0Tyoz3xhdax7hbCmXrSj0dwDeZT2gLMLHOQacwKb2fjtcTbsTgl6dhZ4DIW+fCI4onMjHJlP/6OKY0x4wZYmT3+25/A1QwNOQmVHKH5k1AA8st4aLY0BYy9hGLwWMRonx4HTG2h1AoJ8Pb3G2nGoAswdW2g2d1R4p9b2uPO2PXMS/d2YiW6ciXTMPqrb27Xi0eK267nIbWNtfgpBhYA/eqf6OuCBQLQLqGgi/U60UxRW0Nuettldi7HHdVJRJrYUZRharuvWDNIKqA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=linux.intel.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rQjg+d3ZAnv46Vj21X1xbrvb/5HDwh1/4yemUuQVpLo=; b=SbLshmNj5hspcqdKsrCRnvYvne+4po+4670Sc3V3so9jldNnpwiWZutbAKG1ye5je7Kl1xASD0FE2m2KVcdeAwSrFdl7BcbDxaQMH/jhiSiQbJ70ihQLS5UkusrStGBxwrQe4lO8Hz+33+hxbSdwIOkZLJVpBZLBYpt2SIjNRbU= Received: from CY8PR02CA0018.namprd02.prod.outlook.com (2603:10b6:930:4d::15) by SA1PR12MB5672.namprd12.prod.outlook.com (2603:10b6:806:23c::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.662.11; Sun, 29 Nov 2026 22:37:32 +0000 Received: from CY7PEPF000000F5.namprd05.prod.outlook.com (2603:10b6:930:4d:cafe::1d) by CY8PR02CA0018.outlook.office365.com (2603:10b6:930:4d::15) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.662.12 via Frontend Transport; Sun, 29 Nov 2026 22:37:31 +0000 X-MS-Exchange-Authentication-Results: mx.microsoft.com 1; spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=satlexmb07.amd.com; pr=C Received: from satlexmb07.amd.com (165.204.84.17) by CY7PEPF000000F5.mail.protection.outlook.com (10.167.247.153) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.688.5 via Frontend Transport; Sun, 29 Nov 2026 22:37:31 +0000 Received: from BLRKPRNAYAK.amd.com (10.180.168.240) by satlexmb07.amd.com (10.181.42.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.57; Sun, 29 Nov 2026 16:37:27 -0600 From: K Prateek Nayak To: Dave Hansen , Thomas Gleixner , Ingo Molnar , Borislav Petkov , the arch/x86 maintainers , CC: Andy Lutomirski , Peter Zijlstra , Rick Edgecombe , Andrew Cooper , Kees Cook , Pawan Gupta , K Prateek Nayak Subject: [RFC PATCH 25/27] x86/entry: Prepare IDT entry for shadow stacks Date: Sun, 29 Nov 2026 22:29:50 +0000 Message-ID: <20261129222953.9124-26-kprateek.nayak@amd.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261129222953.9124-1-kprateek.nayak@amd.com> References: <20261129222953.9124-1-kprateek.nayak@amd.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: satlexmb08.amd.com (10.181.42.217) To satlexmb07.amd.com (10.181.42.216) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY7PEPF000000F5:EE_|SA1PR12MB5672:EE_ X-MS-Office365-Filtering-Correlation-Id: 3f6067ad-736d-4fa6-9529-08df4e695b42 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|36860700016|23010399003|1800799024|82310400026|7416014|376014|10067099003|56012099006|261026121527099003|261102123227099003|261021135927099003|261021123027099003|261021121427099003|261022075727099003|261009223027099003|18002099003|22082099003|11063799006|6133799003; X-Microsoft-Antispam-Message-Info: hqlC5pCnKDLp52WRQnUY6RFNAlfASguaussdbWfLByQa7mnmvOb8nsY/shL8EUYhO9UaEFkC2Q8dyf0TYVMXkMNKNpZwpWo5CgY8ke+rz/Tm5sCxyQapElnQn2/PcwziD61jp/yiuIjz1EF6RlzIuGkPV/B4ubg5kbI7hhezqive8nQjdvVKf+/mC/gcGj5jeLwNbWeoftEWv0TMOe/CtcA7Cm254E9fW1iOeEKgiOWQa2nDTE/aPmcH7TgawERtyMaJKtacXKWxfPjwEgeRmZ6V6Aj3bM9v2I7CPLFknd7bagV9KYnc2BL8t+t8bsmLySN+ul1anXLI14wN4crdxCLJYBnY2uPXH2WrE2rdsPSFzVQz9IOyP1eOSKj48B1cHcme8zrkzvxYWAWj2Qt78jorz7uELpuabpL+8JNLcXOKDYnvtCEcRIW4XqXVgVodmokPxt0fVfkb7z3dB7xidFUZkfrXIRlaBmmsC+mC9eHshB+1h3n3GjGq0TXY6zS0l5QM/7KyXoet9VG5XRCBpbbggMFVuoZuqzSJbNNvc7akB1ZPZEl+SpPt5aHd5GzcoktnzzHGDAas7FfmzaAOtAYprNv93P6nLX8m0g8m+cHKJ7EMwuwJQUDuzq3+4pOG5ow2iaMeBAllFvZ06j2oww/fcCD6qwJhKR5PKSBjaYlizVKznsUnN15olDnb7yHzU3xt4eZcY15RxcPA/rNIDg== X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:satlexmb07.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(36860700016)(23010399003)(1800799024)(82310400026)(7416014)(376014)(10067099003)(56012099006)(261026121527099003)(261102123227099003)(261021135927099003)(261021123027099003)(261021121427099003)(261022075727099003)(261009223027099003)(18002099003)(22082099003)(11063799006)(6133799003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 90wRyEzVhdbtwfyLgKAW/1ezRTtR6R2v9okT5SA/LdEr7yAxAW0GTaRCr2BvEqJc+n/fYzdo8N5b7d6kVyMEKsTDmEYdHy2wkf4dna1Iry2LtQ63o+gkB86z9u2pJTk8wKCNqsC6Zx9fgMQQF9KLIEA7zGQxa3n8cnESy9TWwxVyOui45Kgb4fg8HFoIdG7pr7p8Eb7zbAmM43DXoBXAWBqeVKo/1+oIV7x2D+5ucSmAMX8yOspgoqPcwI3lOAO63x801YPUajMl6TCihWyo0zoFAHMaXMYslUq7v2JPvs1jgeG7WGTP5c/WDfPeJ861OT/8LfS+pliOZe6dcGyEXL00GpJ2XgJesQjW9qmQWifWtJ6bd2nLgU3ONhtiVu9/YTt5TdbOxASN6NwV2t3AjIqEXic5Hg48siW9rSXTda2NE5CzXjSme3J7Ser5fSM4 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Nov 2026 22:37:31.8640 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3f6067ad-736d-4fa6-9529-08df4e695b42 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[satlexmb07.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CY7PEPF000000F5.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB5672 Similar to FRED entry, IDT entry must populate a metadata frame around the pt_regs. Unlike FRED entry point which clearly distinguishes entry form kernel vs entry from user, IDT entry has a common entry point. The POP_KERN_SHSTK_FRAME needs a consistent stack state to locate CS and pop accordingly which makes the handling complicated. Always push two slots - two blank ones for user entry and the correct FRED frame for entry from kernel such that POP_KERN_SHSTK_FRAME can always see a consistent state. Once the CET helpers see a non-NULL shadow stack pointer, it can operate on the shadow stack frames for kernel events. Signed-off-by: K Prateek Nayak --- arch/x86/entry/calling.h | 85 ++++++++++++++++++++++++++++++++++ arch/x86/entry/entry_64.S | 24 ++++++++++ arch/x86/entry/entry_64_fred.S | 73 ----------------------------- 3 files changed, 109 insertions(+), 73 deletions(-) diff --git a/arch/x86/entry/calling.h b/arch/x86/entry/calling.h index 77e2d920a640..402c08bac5b5 100644 --- a/arch/x86/entry/calling.h +++ b/arch/x86/entry/calling.h @@ -381,6 +381,91 @@ For 32-bit we have the following conventions - kernel is built with wrgsbase \scratch_reg .endm +#ifdef CONFIG_X86_KERN_SHADOW_STACK + +/* + * A INT3 breakpoint can emulate a CALL which requires pushing the + * return frame below this FRED event. Allow the handlers to communicate + * if it emulated a CALL by setting a flag on the stack. + * + * FRED event pushes { SSP, LIP, CS } onto the shadow stack and SSP + * points to record three slots for top here and it should stay that + * way. + * + * CALL emulation will consume the SSP, push a return frame below, and + * set a flag on stack. If the flag is set, FRED_EXIT will add an + * shadow stack frame on top by doing an INTRA_FUNCTION_CALL and + * populate the top with a pointer to three slots below, thus recreating + * the correct FRED frame. + */ +.macro PUSH_KERN_SHSTK_FRAME + xor %eax, %eax + rdsspq %rax + pushq %rax + /* + * Frame metadata: + * + * [15:8] Context (FRED_EVENT) + * [ 7:0] fred_exit_work_flags + * + * Context data is used by CET helpers to interpret + * SSP frame. fred_exit_work_flags is used to fixup + * shadow stack for CALL emulation. + */ + pushq $0x100 +.endm + +/* Clobbers RAX, RCX; Both will be restored later. */ +.macro POP_KERN_SHSTK_FRAME + popq %rax /* fred_exit_work_flags */ + + /* Only one action is supported currently. */ + test %al, %al + jz .Lpop_shstk_done\@ + + /* + * CALL Emulation has overwritten the shadow-stack frame and + * SSP is lost. Point it back to 3 slots down where the real + * return has to go. + * + * Doing a CALL here will add a RSB which the next RET will + * mispredict on but all RETs after that are balanced. + */ + ANNOTATE_INTRA_FUNCTION_CALL + call 1f + int3 +1: + /* Synthesize the corrct SSP to fix the FRED Frame. */ + addq $8, %rsp + rdsspq %rax + leaq 24(%rax), %rcx + wrssq %rcx, (%rax) + +.Lpop_shstk_done\@: + popq %rax +.endm + +.macro PUSH_USER_SHSTK_FRAME + subq $16, %rsp +.endm + +.macro POP_USER_SHSTK_FRAME + addq $16, %rsp +.endm + +#else /* !CONFIG_X86_KERN_SHADOW_STACK */ + +.macro PUSH_KERN_SHSTK_FRAME +.endm +.macro POP_KERN_SHSTK_FRAME +.endm +.macro PUSH_USER_SHSTK_FRAME +.endm +.macro POP_USER_SHSTK_FRAME +.endm + +#endif /* CONFIG_X86_KERN_SHADOW_STACK */ + #else /* CONFIG_X86_64 */ # undef UNWIND_HINT_IRET_REGS # define UNWIND_HINT_IRET_REGS diff --git a/arch/x86/entry/entry_64.S b/arch/x86/entry/entry_64.S index c255722cd66d..6ce8c523b2d6 100644 --- a/arch/x86/entry/entry_64.S +++ b/arch/x86/entry/entry_64.S @@ -296,6 +296,26 @@ SYM_CODE_START(xen_error_entry) RET SYM_CODE_END(xen_error_entry) +.macro PUSH_IDT_SHSTK_FRAME + testb $3, CS(%rsp) + jnz .Lpush_from_usermode\@ + PUSH_KERN_SHSTK_FRAME + jmp .Lpush_shstk_done\@ +.Lpush_from_usermode\@: + PUSH_USER_SHSTK_FRAME +.Lpush_shstk_done\@: +.endm + +.macro POP_IDT_SHSTK_FRAME + testb $3, CS+16(%rsp) + jnz .Lpop_from_usermode\@ + POP_KERN_SHSTK_FRAME + jmp .Lpush_shstk_done\@ +.Lpop_from_usermode\@: + POP_USER_SHSTK_FRAME +.Lpush_shstk_done\@: +.endm + /** * idtentry_body - Macro to emit code calling the C function * @cfunc: C function to be called @@ -324,10 +344,14 @@ SYM_CODE_END(xen_error_entry) movq $-1, ORIG_RAX(%rsp) /* no syscall to restart */ .endif + PUSH_IDT_SHSTK_FRAME + /* For some configurations \cfunc ends up being a noreturn. */ ANNOTATE_REACHABLE call \cfunc + POP_IDT_SHSTK_FRAME + jmp error_return .endm diff --git a/arch/x86/entry/entry_64_fred.S b/arch/x86/entry/entry_64_fred.S index 284976114c70..2119d0da50b4 100644 --- a/arch/x86/entry/entry_64_fred.S +++ b/arch/x86/entry/entry_64_fred.S @@ -17,79 +17,6 @@ .code64 .section .noinstr.text, "ax" -#ifdef CONFIG_X86_KERN_SHADOW_STACK - -/* - * A INT3 breakpoint can emulate a CALL which requires pushing the - * return frame below this FRED event. Allow the handlers to communicate - * if it emulated a CALL by setting a flag on the stack. - * - * FRED event pushes { SSP, LIP, CS } onto the shadow stack and SSP - * points to record three slots for top here and it should stay that - * way. - * - * CALL emulation will consume the SSP, push a return frame below, and - * set a flag on stack. If the flag is set, FRED_EXIT will add an - * shadow stack frame on top by doing an INTRA_FUNCTION_CALL and - * populate the top with a pointer to three slots below, thus recreating - * the correct FRED frame. - */ -.macro PUSH_KERN_SHSTK_FRAME - xor %eax, %eax - rdsspq %rax /* NOP if SHSTK is off. */ - pushq %rax - /* - * Frame metadata: - * - * [15:8] Context (FRED_EVENT) - * [ 7:0] fred_exit_work_flags - * - * Context data is used by CET helpers to interpret - * SSP frame. fred_exit_work_flags is used to fixup - * shadow stack for CALL emulation. - */ - pushq $0x100 -.endm - -/* Clobbers RAX, RCX; Both will be restored later. */ -.macro POP_KERN_SHSTK_FRAME - popq %rax /* fred_exit_work_flags */ - - /* Only one action is supported currently. */ - test %al, %al - jz .Lpop_shstk_done\@ - - /* - * CALL Emulation has overwritten the shadow-stack frame and - * SSP is lost. Point it back to 3 slots down where the real - * return has to go. - * - * Doing a CALL here will add a RSB which the next RET will - * mispredict on but all RETs after that are balanced. - */ - ANNOTATE_INTRA_FUNCTION_CALL - call 1f - int3 -1: - /* Synthesize the corrct SSP to fix the FRED Frame. */ - addq $8, %rsp - rdsspq %rax - leaq 24(%rax), %rcx - wrssq %rcx, (%rax) - -.Lpop_shstk_done\@: - popq %rax -.endm - -#else /* !CONFIG_X86_KERN_SHADOW_STACK */ - -.macro PUSH_KERN_SHSTK_FRAME -.endm -.macro POP_KERN_SHSTK_FRAME -.endm - -#endif /* CONFIG_X86_KERN_SHADOW_STACK */ - .macro FRED_ENTER ssp=0 UNWIND_HINT_END_OF_STACK ANNOTATE_NOENDBR -- 2.43.0