From nobody Fri Jun 12 14:18:39 2026 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 BE968389DE8; Thu, 14 May 2026 10:42:43 +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=1778755365; cv=none; b=UJDzxKSbwfV9yaYPjI1iaERl80Ql3nUN+OpjL1Inc/Zxd0T4gy0wlh6O2qM4zE2xHwB37PpmgnXwojKw1/hpwBnuiqeFzCCDC3RNTlAhUc73XX3BbN6UB7x8uU4B+bx2dInjN5T/fNU3Wy2doXUXujcpdgGZFViE6DT4vO+XUB4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778755365; c=relaxed/simple; bh=NyxwDHnlp95EWwoKkoaeGBPm6s8DrEVjnRp45WZs0+Y=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=gUZcdahjiBAWBHdKS4bMf75j2e6Vzg07rVF7CDsQYJCZ4KukDU0pshh2DQm4fHacT8noRc5wCVrEf2llWO2xrTksYIkoqUZSmIKQBRO+eLiQ2lRsnAMRh/fWMPjHPmcw3fDFarZgSXucShMEBXKYI693YdGi9p+aV/aicm/dCLg= 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=ddWzSbck; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=gVhI0P+H; 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="ddWzSbck"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="gVhI0P+H" Date: Thu, 14 May 2026 10:42:40 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1778755362; 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=cbY1tEOWGy8ZeMYbjJoW5RamY/I1yaGkS/Ky26vmxjg=; b=ddWzSbckHGpA26M/kVeDLHvgeINul69ML80X6wAsU6L0p5DVsTJIRim1ZzEhFq4Ozh8mkS Py3Bg457shoSYUkXDsnr0W0uDtTq0qJ0n8lesx/CiLC7w/eI99m0FXQTzSAMWjT9iLCt1E LVnXf7mtzMNwk4xVNcMjBdPVmBP+duzGVkPxt1y8SdkGpYTlAQ1hIrMXsewmaf7a+WJTLa dmFpOX9S9UCkuKSM3N+ZlwVI1IGBKFBm0v5fP/UdpahWe8t2Xd2iX6Hjdz7/pIFnh28MP9 Hux3n4yxei6Vqx7a1KJpxz5Y2jLtluDhQ5D5JxoFf5a0lJZMpLhKE68ZW2tfuw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1778755362; 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=cbY1tEOWGy8ZeMYbjJoW5RamY/I1yaGkS/Ky26vmxjg=; b=gVhI0P+HeasbD3z2k4C9q4jzvUsokHpcltYtaEjL/x5WSAXw/v8cMV4O3D078Kl/R5+Upb 1CfeSbU9qgQHenDA== From: tip-bot2 for Thomas =?utf-8?q?Wei=C3=9Fschuh?= Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/vdso] vdso/datastore: Mark vdso_k_*_data pointers as __ro_after_init Cc: thomas.weissschuh@linutronix.de, Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260513-vdso-ro-after-init-v1-1-4b51f74015a4@linutronix.de> References: <20260513-vdso-ro-after-init-v1-1-4b51f74015a4@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <177875536043.188840.13908324379376641879.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 timers/vdso branch of tip: Commit-ID: 034779fb06aba5bc45faf366922bd77e4d36543a Gitweb: https://git.kernel.org/tip/034779fb06aba5bc45faf366922bd77e4= d36543a Author: Thomas Wei=C3=9Fschuh AuthorDate: Wed, 13 May 2026 08:32:46 +02:00 Committer: Thomas Gleixner CommitterDate: Thu, 14 May 2026 12:33:19 +02:00 vdso/datastore: Mark vdso_k_*_data pointers as __ro_after_init These pointers are only modified once in vdso_setup_data_pages(), during the init phase. Make them read-only after that. Drop __refdata as that would conflict with __ro_after_init. Modpost does accept the reference from a __ro_after_init symbol to an __init one. Signed-off-by: Thomas Wei=C3=9Fschuh Signed-off-by: Thomas Gleixner Link: https://patch.msgid.link/20260513-vdso-ro-after-init-v1-1-4b51f74015a= 4@linutronix.de --- lib/vdso/datastore.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/vdso/datastore.c b/lib/vdso/datastore.c index cf5d784..17d37b8 100644 --- a/lib/vdso/datastore.c +++ b/lib/vdso/datastore.c @@ -11,21 +11,21 @@ static u8 vdso_initdata[VDSO_NR_PAGES * PAGE_SIZE] __aligned(PAGE_SIZE) __= initdata =3D {}; =20 #ifdef CONFIG_GENERIC_GETTIMEOFDAY -struct vdso_time_data *vdso_k_time_data __refdata =3D +struct vdso_time_data *vdso_k_time_data __ro_after_init =3D (void *)&vdso_initdata[VDSO_TIME_PAGE_OFFSET * PAGE_SIZE]; =20 static_assert(sizeof(struct vdso_time_data) <=3D PAGE_SIZE); #endif /* CONFIG_GENERIC_GETTIMEOFDAY */ =20 #ifdef CONFIG_VDSO_GETRANDOM -struct vdso_rng_data *vdso_k_rng_data __refdata =3D +struct vdso_rng_data *vdso_k_rng_data __ro_after_init =3D (void *)&vdso_initdata[VDSO_RNG_PAGE_OFFSET * PAGE_SIZE]; =20 static_assert(sizeof(struct vdso_rng_data) <=3D PAGE_SIZE); #endif /* CONFIG_VDSO_GETRANDOM */ =20 #ifdef CONFIG_ARCH_HAS_VDSO_ARCH_DATA -struct vdso_arch_data *vdso_k_arch_data __refdata =3D +struct vdso_arch_data *vdso_k_arch_data __ro_after_init =3D (void *)&vdso_initdata[VDSO_ARCH_PAGES_START * PAGE_SIZE]; #endif /* CONFIG_ARCH_HAS_VDSO_ARCH_DATA */ =20