From nobody Mon Jun 8 05:26:06 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 483D51DF73C; Tue, 2 Jun 2026 19:41:23 +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=1780429284; cv=none; b=tF/QDw2i3O5/Nlz+NJJluLnEex1JtkFNCqRCZJluLmTrAVAEGrj8DvWtTC/2eGmlreCZg5ImGhp+sYOL9eqs8gGbhoUzvs1hPIbrDjw34Wgjb2YCjKMZ9a8sQRqyf0Bb8z1AZAngEQX8SLW4bv3zvdX2XEcHT4wM/6j6dzxJBTw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780429284; c=relaxed/simple; bh=3rSPZn7hteJ9eyHvmEo3s/MTpojdYoVBc8tIf/vxQ38=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=tv8Ss/C70xiJfH18g3Cu7RuOSwIsfhgrtTHc42uje2tDCqWtpL4DftGlVCB5HppPWfM6RME7zG4+SRg0uV/FmSM3ZjwjQe+xLZxZO2gYbzzVAX+Xhnfzff7SDDCgiptapD9/xair3uqvEUuY1dWMlN+gLlPO+7wxCl8vDevXdYM= 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=jOHJ5b/u; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=YOoUdN9r; 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="jOHJ5b/u"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="YOoUdN9r" Date: Tue, 02 Jun 2026 19:41:20 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1780429281; 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=t0oo2tL9cqjCVQKVV6D8t1qq58pbeCkXkD7/RJy9b8U=; b=jOHJ5b/uWWudxsYyiic8wlhDzjN1LafeBIRfyOyBoqTnl7h8SOS2A5LbJFNpNP4LJPKB2l FqfAlqZ0jDGT44yN3F/QYSZc6PWFYLZQV/4umZG4bJTBUTreIhJHowkEOea4Ig0LkuW/gO G6UTB8kcsC79aE5bwPZNj8LZogs7+LR5FN0Yt+EgwSuMgGsugCY551NkhmmODYvNOnc7TV qm5eBkFlrcyf/dIkWcD+sj/hBbMu05yceISxQrbDvc9NK5qZ8K40dIaKRv+HBbXZrvM9Zb AZmu6K7yJMo+wzGEs7kM4ekalJBbz91pwmhCFZlZq6CS86QZuzoJaftUroXavQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1780429281; 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=t0oo2tL9cqjCVQKVV6D8t1qq58pbeCkXkD7/RJy9b8U=; b=YOoUdN9regpIKdTJOlL61KHO8e2dlUCnQv/m88ExQLdeEeccZIJy/XASaKz7yqtsimRP5c cZ1p+SmsHoVRlJCA== 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/urgent] 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: <178042928027.710.12203398445041561432.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/urgent branch of tip: Commit-ID: 3f7fbde4cdd4a25c199a60849897459a63907ca5 Gitweb: https://git.kernel.org/tip/3f7fbde4cdd4a25c199a60849897459a6= 3907ca5 Author: Thomas Wei=C3=9Fschuh AuthorDate: Wed, 13 May 2026 08:32:46 +02:00 Committer: Thomas Gleixner CommitterDate: Tue, 02 Jun 2026 21:39:29 +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. Fixes: 05988dba1179 ("vdso/datastore: Allocate data pages dynamically") 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