From nobody Tue Dec 16 21:25:29 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 96C7BCDB474 for ; Sun, 22 Oct 2023 22:24:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232861AbjJVWYb (ORCPT ); Sun, 22 Oct 2023 18:24:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229452AbjJVWYa (ORCPT ); Sun, 22 Oct 2023 18:24:30 -0400 X-Greylist: delayed 171 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sun, 22 Oct 2023 15:24:27 PDT Received: from vmicros1.altlinux.org (vmicros1.altlinux.org [194.107.17.57]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 986A999; Sun, 22 Oct 2023 15:24:27 -0700 (PDT) Received: from mua.local.altlinux.org (mua.local.altlinux.org [192.168.1.14]) by vmicros1.altlinux.org (Postfix) with ESMTP id E641A72C8D3; Mon, 23 Oct 2023 01:21:34 +0300 (MSK) Received: by mua.local.altlinux.org (Postfix, from userid 508) id BB1367CFF64; Mon, 23 Oct 2023 01:21:34 +0300 (IDT) Date: Mon, 23 Oct 2023 01:21:34 +0300 From: "Dmitry V. Levin" To: Rick Edgecombe , Dave Hansen , Borislav Petkov Cc: x86@kernel.org, linux-api@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] x86/uapi: fix SHADOW_STACK_SET_TOKEN type Message-ID: <20231022222134.GA5334@altlinux.org> MIME-Version: 1.0 Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Fix the type of SHADOW_STACK_SET_TOKEN to match the type of the corresponding "flags" argument of map_shadow_stack syscall which is of type "unsigned int". Fixes: c35559f94ebc3 ("x86/shstk: Introduce map_shadow_stack syscall") Signed-off-by: Dmitry V. Levin --- arch/x86/include/uapi/asm/mman.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/include/uapi/asm/mman.h b/arch/x86/include/uapi/asm/m= man.h index 46cdc941f958..8419e25bb617 100644 --- a/arch/x86/include/uapi/asm/mman.h +++ b/arch/x86/include/uapi/asm/mman.h @@ -6,7 +6,7 @@ #define MAP_ABOVE4G 0x80 /* only map above 4GB */ =20 /* Flags for map_shadow_stack(2) */ -#define SHADOW_STACK_SET_TOKEN (1ULL << 0) /* Set up a restore token in th= e shadow stack */ +#define SHADOW_STACK_SET_TOKEN (1U << 0) /* Set up a restore token in the = shadow stack */ =20 #include =20 --=20 ldv