From nobody Tue Dec 16 05:55:04 2025 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 AE30D215F4A; Thu, 8 May 2025 10:33:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746700432; cv=none; b=pNAOIt7plDuRA1leU8k1j84YNULRAKobBldZsHJaTU75WiRbYaEiZgAK1AqP5VmKj7MT6QfHumCrUB0cakBH6wGHwgK+gN13guJPwtCeXZpbaIE8uu9r2kgL2BRy8ldoJcQhWxu8Chf9I7oHPQGo78bV/Wf0SmyOgO25L8xsGBM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746700432; c=relaxed/simple; bh=LuWnDVFtu42nnFxuhRaw8PB/VQyC3D7hTJ8ps8vS/08=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=bRc7AMb5UhBmMNM4mrQQddFQRivGj/3esr4E3unxoO7Nb6zwB/Vgu79GUbtpj4CKFPM9YKi9xrUZK+fGr4337ObZBIycDidtFCyLJaXsPqFd/XEvMo61+KrHHnaGMc9yr1bhF8w1YFhftMx9w2IXASPRHYOv5/3eN7WIKMGxr40= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=XwCCjJOA; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=AbzPkhYN; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="XwCCjJOA"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="AbzPkhYN" Date: Thu, 08 May 2025 10:33:47 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1746700428; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=SdSEWaJ2j8Zw4kT24BB6sJjgkfuKKhlacN/Za6JLR+A=; b=XwCCjJOAYDEIDQ9hPIxBYLpucmhRNBIoALeboPjHhy771fhTTHrGSuP2UgeISjLnTxzrEa seNpVlqNe7WQ1N+civlDbuNZIBFueHwUSNOeOlX9AxLlFxvcmwt5vtSB5G3PWKxT4Iq8Wu D8gWNaebiGaPfQ9WBk3ZLVa8Xv0sDTM1LWCS+i89gDA9EapkFmt8VgJsH4BPRK0WGPeS4z pReBmbzVZhKZaIsihAtEb4YMpLSV9J7CEAcXGi1sstyOcPT75KhzF4u9f8/C5fUYZTLCQ+ qzMBB/nOA73l+GgO75FDuiZMcSgVsXuc8TNUfmmB2PTMsv6Gq21MVEXBFeX35w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1746700428; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=SdSEWaJ2j8Zw4kT24BB6sJjgkfuKKhlacN/Za6JLR+A=; b=AbzPkhYNRV9pT1fpU4nvpH0vXNjdQnlhuCm0RgDYsQAD5nOs/+sTIIB2VES0t1d/4iC9kj PQpg0U4i0d8ftdBA== From: "tip-bot2 for Sebastian Andrzej Siewior" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: locking/futex] tools headers: Synchronize prctl.h ABI header Cc: Sebastian Andrzej Siewior , "Peter Zijlstra (Intel)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20250416162921.513656-19-bigeasy@linutronix.de> References: <20250416162921.513656-19-bigeasy@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <174670042794.406.13398970279862693010.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the locking/futex branch of tip: Commit-ID: f25051dce97cfd7a945add0c9e273e624e060624 Gitweb: https://git.kernel.org/tip/f25051dce97cfd7a945add0c9e273e624= e060624 Author: Sebastian Andrzej Siewior AuthorDate: Wed, 16 Apr 2025 18:29:18 +02:00 Committer: Peter Zijlstra CommitterDate: Sat, 03 May 2025 12:02:09 +02:00 tools headers: Synchronize prctl.h ABI header Synchronize prctl.h with current uapi version after adding PR_FUTEX_HASH. Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Peter Zijlstra (Intel) Link: https://lore.kernel.org/r/20250416162921.513656-19-bigeasy@linutronix= .de --- tools/include/uapi/linux/prctl.h | 44 ++++++++++++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/tools/include/uapi/linux/prctl.h b/tools/include/uapi/linux/pr= ctl.h index 3579179..21f30b3 100644 --- a/tools/include/uapi/linux/prctl.h +++ b/tools/include/uapi/linux/prctl.h @@ -230,7 +230,7 @@ struct prctl_mm_map { # define PR_PAC_APDBKEY (1UL << 3) # define PR_PAC_APGAKEY (1UL << 4) =20 -/* Tagged user address controls for arm64 */ +/* Tagged user address controls for arm64 and RISC-V */ #define PR_SET_TAGGED_ADDR_CTRL 55 #define PR_GET_TAGGED_ADDR_CTRL 56 # define PR_TAGGED_ADDR_ENABLE (1UL << 0) @@ -244,6 +244,9 @@ struct prctl_mm_map { # define PR_MTE_TAG_MASK (0xffffUL << PR_MTE_TAG_SHIFT) /* Unused; kept only for source compatibility */ # define PR_MTE_TCF_SHIFT 1 +/* RISC-V pointer masking tag length */ +# define PR_PMLEN_SHIFT 24 +# define PR_PMLEN_MASK (0x7fUL << PR_PMLEN_SHIFT) =20 /* Control reclaim behavior when allocating memory */ #define PR_SET_IO_FLUSHER 57 @@ -328,4 +331,43 @@ struct prctl_mm_map { # define PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC 0x10 /* Clear the aspect on exec */ # define PR_PPC_DEXCR_CTRL_MASK 0x1f =20 +/* + * Get the current shadow stack configuration for the current thread, + * this will be the value configured via PR_SET_SHADOW_STACK_STATUS. + */ +#define PR_GET_SHADOW_STACK_STATUS 74 + +/* + * Set the current shadow stack configuration. Enabling the shadow + * stack will cause a shadow stack to be allocated for the thread. + */ +#define PR_SET_SHADOW_STACK_STATUS 75 +# define PR_SHADOW_STACK_ENABLE (1UL << 0) +# define PR_SHADOW_STACK_WRITE (1UL << 1) +# define PR_SHADOW_STACK_PUSH (1UL << 2) + +/* + * Prevent further changes to the specified shadow stack + * configuration. All bits may be locked via this call, including + * undefined bits. + */ +#define PR_LOCK_SHADOW_STACK_STATUS 76 + +/* + * Controls the mode of timer_create() for CRIU restore operations. + * Enabling this allows CRIU to restore timers with explicit IDs. + * + * Don't use for normal operations as the result might be undefined. + */ +#define PR_TIMER_CREATE_RESTORE_IDS 77 +# define PR_TIMER_CREATE_RESTORE_IDS_OFF 0 +# define PR_TIMER_CREATE_RESTORE_IDS_ON 1 +# define PR_TIMER_CREATE_RESTORE_IDS_GET 2 + +/* FUTEX hash management */ +#define PR_FUTEX_HASH 78 +# define PR_FUTEX_HASH_SET_SLOTS 1 +# define PR_FUTEX_HASH_GET_SLOTS 2 +# define PR_FUTEX_HASH_GET_IMMUTABLE 3 + #endif /* _LINUX_PRCTL_H */