From nobody Fri Sep 25 19:20:30 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 7EA533B3C18; Wed, 9 Sep 2026 08:51:28 +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=1788943895; cv=none; b=iDjF6GIgICDsxL1fnYvWEaAZyivs5YzkfisaLmah4PmDAuqlNOZc1ZVPfl++RAaGiyA63waNdxDobLOrThD8PLFeEWo6pTC1M9NCMNu7zAeUQ9SSWGuRHJD2DHOh+Oj8JwTIQOhNOmvdQ9XkzDFVVpMlNeo2iY8HoFcZ/pxUiGQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788943895; c=relaxed/simple; bh=ndsrVtodOF2PT/OV0JmJocFYtm0oQ/AhLbzcTA5NPJU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=N+kvcUBhk1IZ+xSZ7T1DaTPVB0fKrO7a/ckW1eeUr41xX8Swd5asElkm+hfZ65q68ajPNGoPAIdJmA8TJKzA2UZnfOSfbfwur2Ad99ag/otfLa2oGxOCLDZAmbBH1509o7mC0Qst3yQ6J6hbzUavuRswMEfWgqsmrTZ+hBztx6w= 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=0kGifJU3; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=/tT31v/M; 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="0kGifJU3"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="/tT31v/M" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1788943881; h=from:from: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=xA+RTkJw0c+YR5D/QOgVdwP7zOXPBjoexPBxZtSIN04=; b=0kGifJU3jsfalQ0vMhT6JP3VlLln+gnd6PviOfid9vcMQ9ZfVjh3S6K46Y6RtuwYgfkQp7 U4VEARgjQz2y9zWVKUibcuXAcE4/PVf+skeugVCZcIXp33PQ8GX5qYE7ku4QLgIfpJBaji sLjL1tWFCu3bZuuADFD0AYDYIBKL+YSk5Sd24lEO1Nytg0HcECLj3N5LEdCgUAxJDjDadI shB1V9Vpyv5V5KUelf38XITDATgyYew3seTijVNyKcdWbgfUgXsa+82TRsDxxr0nyLUmvP r6AikYXfmAecxzddK5q6ximEIZie8JHXo3dmv5t+53uTJxmbJPD0s9zaa2sZWQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1788943881; h=from:from: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=xA+RTkJw0c+YR5D/QOgVdwP7zOXPBjoexPBxZtSIN04=; b=/tT31v/MG34PF8rBM384dyABDZOrzGB9ykwPSqEtaNtwaktWD7oMFoQcgvhlIia89klS87 FLxDjTW4EyLOtgDQ== Date: Wed, 09 Sep 2026 10:51:14 +0200 Subject: [PATCH 01/15] vdso: Move the kernel-side time update helpers to a new header Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260909-vdso-asm-generic-vsyscall-h-v1-1-63ae856cc659@linutronix.de> References: <20260909-vdso-asm-generic-vsyscall-h-v1-0-63ae856cc659@linutronix.de> In-Reply-To: <20260909-vdso-asm-generic-vsyscall-h-v1-0-63ae856cc659@linutronix.de> To: Andy Lutomirski , Thomas Gleixner , Vincenzo Frascino Cc: linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, loongarch@lists.linux.dev, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, sparclinux@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1788943875; l=4673; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=ndsrVtodOF2PT/OV0JmJocFYtm0oQ/AhLbzcTA5NPJU=; b=QFJMpel8Oem89wFMEyNNwMRhARMWVEaTGpbIuOv/+f6g6Odsm+x6tVkjIXNr1SYGYi7XBz3Ut icWBswwhaH5CKn3oECTYcx8kCso8VGVsVWamVOR7it7ieJAfv7qrCB4 X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= The vdso/ header namespace is meant for symbols which are usable from vDSO userspace code. However vdso_update_begin() and vdso_update_end() are only usable from the kernel. Move them into a new header in the linux/ namespace. Also rename them to make clear that they are only for time-related data. Signed-off-by: Thomas Wei=C3=9Fschuh --- MAINTAINERS | 1 + arch/s390/kernel/time.c | 5 +++-- include/linux/vdso_time.h | 8 ++++++++ include/vdso/vsyscall.h | 3 --- kernel/time/vsyscall.c | 13 +++++++------ 5 files changed, 19 insertions(+), 11 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 3a19da74d00c..562ace172594 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -11066,6 +11066,7 @@ S: Maintained T: git git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git timers/vd= so F: include/asm-generic/vdso/vsyscall.h F: include/linux/vdso_datastore.h +F: include/linux/vdso_time.h F: include/vdso/ F: kernel/time/namespace_vdso.c F: kernel/time/vsyscall.c diff --git a/arch/s390/kernel/time.c b/arch/s390/kernel/time.c index 2b989bebd220..161628f6906f 100644 --- a/arch/s390/kernel/time.c +++ b/arch/s390/kernel/time.c @@ -39,6 +39,7 @@ #include #include #include +#include #include #include #include @@ -527,7 +528,7 @@ static int stp_sync_clock(void *data) cpu_relax(); rc =3D 0; if (stp_info.todoff || stp_info.tmd !=3D 2) { - flags =3D vdso_update_begin(); + flags =3D vdso_time_update_begin(); rc =3D chsc_sstpc(stp_page, STP_OP_SYNC, 0, &clock_delta); if (rc =3D=3D 0) { @@ -537,7 +538,7 @@ static int stp_sync_clock(void *data) if (rc =3D=3D 0 && stp_info.tmd !=3D 2) rc =3D -EAGAIN; } - vdso_update_end(flags); + vdso_time_update_end(flags); } sync->in_sync =3D rc ? -EAGAIN : 1; xchg(&first, 0); diff --git a/include/linux/vdso_time.h b/include/linux/vdso_time.h new file mode 100644 index 000000000000..6d81ee3a3c9c --- /dev/null +++ b/include/linux/vdso_time.h @@ -0,0 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef _LINUX_VDSO_TIME_H +#define _LINUX_VDSO_TIME_H + +unsigned long vdso_time_update_begin(void); +void vdso_time_update_end(unsigned long flags); + +#endif /* _LINUX_VDSO_TIME_H */ diff --git a/include/vdso/vsyscall.h b/include/vdso/vsyscall.h index c5c2a2c07857..29dd4e097220 100644 --- a/include/vdso/vsyscall.h +++ b/include/vdso/vsyscall.h @@ -6,9 +6,6 @@ =20 #include =20 -unsigned long vdso_update_begin(void); -void vdso_update_end(unsigned long flags); - #endif /* !__ASSEMBLER__ */ =20 #endif /* __VDSO_VSYSCALL_H */ diff --git a/kernel/time/vsyscall.c b/kernel/time/vsyscall.c index aa59919b8f2c..12e205d86e7f 100644 --- a/kernel/time/vsyscall.c +++ b/kernel/time/vsyscall.c @@ -9,6 +9,7 @@ =20 #include #include +#include #include #include #include @@ -177,7 +178,7 @@ void vdso_time_update_aux(struct timekeeper *tk) #endif =20 /** - * vdso_update_begin - Start of a VDSO update section + * vdso_time_update_begin - Start of a VDSO update section * * Allows architecture code to safely update the architecture specific VDSO * data. Disables interrupts, acquires timekeeper lock to serialize against @@ -188,7 +189,7 @@ void vdso_time_update_aux(struct timekeeper *tk) * Returns: Saved interrupt flags which need to be handed in to * vdso_update_end(). */ -unsigned long vdso_update_begin(void) +unsigned long vdso_time_update_begin(void) { struct vdso_time_data *vdata =3D vdso_k_time_data; unsigned long flags =3D timekeeper_lock_irqsave(); @@ -198,14 +199,14 @@ unsigned long vdso_update_begin(void) } =20 /** - * vdso_update_end - End of a VDSO update section - * @flags: Interrupt flags as returned from vdso_update_begin() + * vdso_time_update_end - End of a VDSO update section + * @flags: Interrupt flags as returned from vdso_time_update_begin() * - * Pairs with vdso_update_begin(). Marks vdso data consistent, invokes data + * Pairs with vdso_time_update_begin(). Marks vdso data consistent, invoke= s data * synchronization if the architecture requires it, drops timekeeper lock * and restores interrupt flags. */ -void vdso_update_end(unsigned long flags) +void vdso_time_update_end(unsigned long flags) { struct vdso_time_data *vdata =3D vdso_k_time_data; =20 --=20 2.55.0 From nobody Fri Sep 25 19:20:30 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 946E13B47EB; Wed, 9 Sep 2026 08:51:30 +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=1788943895; cv=none; b=XPCXIbgFPfxdlYts50EArnSU2rY7mcBTgRRPPajdBjrN6xV/UJC03Pkq4EwmZDjvocxcWVLiIwgamwGY9bIuSL17kkvqXgR0LUfXz35tCnF1Aj4wUNrAN8CUz0rLWul52gUhd/v+cQIehnZYvRkSnclsPoXLl3Pk3tnZw+x4Ufw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788943895; c=relaxed/simple; bh=5Ojd0VZyBuWlT1Vlm9OCcvjNe/c3y4B8B7OiZI04IfU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=EaCdzRXcIuAbQUrB+UYn90wxziC9kpU6GCX4PopV6IjFJf1gTKcMTeOo9dQHS1nKJXJrK3QGl0Ia21NwxcXvCCYPVViXKT7+AEvv47ssUWYRSb6HwomKsidxp9+84ei+nWbVH1bjmT4VAZVPcO+i/8S05wF7AV+KncNtC/CJVq0= 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=X09Yejo/; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=cYA/s1bW; 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="X09Yejo/"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="cYA/s1bW" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1788943882; h=from:from: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=XzQOMxzxshTh4wmqEu29Gu2VPX+xEoLqk1yFbDrb8uM=; b=X09Yejo/JqqKtXCBERrNnRAYA35ImQKVCAF+aSCtG2F6PKrzCaElWrLHCAxGtzr7vC7OOu w0HUGAq/x4Pq3gNZtO6+iPsEvOwxvPbU1eDFXpf/ovbFERZB00bGkzZGvYmYJW9ldJ+TqS QLNVMEHKXIz5pnTCub3fdLep8HnNx+Lwy8VwNv++2kJBMAasTB9ZIDMciuBfKiHjHkPOx5 tC3004wXfoTPdEjwfIlJE/qyREnrsnkGz8wj1Jtp35FtBZ281kpRX+N5IgSTM4LnIdUKJV xZiars5kzubb+8wkquYE/jKHmF25JTco2ilJeYOEa4VaT6+D19ljJZA18zrpnQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1788943882; h=from:from: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=XzQOMxzxshTh4wmqEu29Gu2VPX+xEoLqk1yFbDrb8uM=; b=cYA/s1bWs/UKgyEP7Ti0e2vw1WhICfuqGpLaEZeMxwrx7+M/smOGJv8avR0BVCzMnxs/GQ tXZzBptfzYAlvhDA== Date: Wed, 09 Sep 2026 10:51:15 +0200 Subject: [PATCH 02/15] vdso/gettimeofday: Define fallback __arch_get_vdso_u_time_data() in gettimeofday.c Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260909-vdso-asm-generic-vsyscall-h-v1-2-63ae856cc659@linutronix.de> References: <20260909-vdso-asm-generic-vsyscall-h-v1-0-63ae856cc659@linutronix.de> In-Reply-To: <20260909-vdso-asm-generic-vsyscall-h-v1-0-63ae856cc659@linutronix.de> To: Andy Lutomirski , Thomas Gleixner , Vincenzo Frascino Cc: linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, loongarch@lists.linux.dev, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, sparclinux@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1788943875; l=1583; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=5Ojd0VZyBuWlT1Vlm9OCcvjNe/c3y4B8B7OiZI04IfU=; b=VGAO2rm1dloGKPPn6fG5mfwo6sz2glPNKl5GoEyuD+WCr61o80au+loFA+6grZFSc94CCx300 8Gh0V0u0lq7CxoWtxOpnah08gZTdMGr+JgfY05geFzjXERrVbBldpxr X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= __arch_get_vdso_u_time_data() is only used in gettimeofday.c. vsyscall.h has become a dumping ground for different kinds of fallbacks. Move the fallback function definition into gettimeofday.c, similar to other fallbacks. Signed-off-by: Thomas Wei=C3=9Fschuh --- include/asm-generic/vdso/vsyscall.h | 7 ------- lib/vdso/gettimeofday.c | 7 +++++++ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/asm-generic/vdso/vsyscall.h b/include/asm-generic/vdso= /vsyscall.h index a6b03cfba0e2..fe12fb1fb442 100644 --- a/include/asm-generic/vdso/vsyscall.h +++ b/include/asm-generic/vdso/vsyscall.h @@ -4,13 +4,6 @@ =20 #ifndef __ASSEMBLER__ =20 -#ifndef __arch_get_vdso_u_time_data -static __always_inline const struct vdso_time_data *__arch_get_vdso_u_time= _data(void) -{ - return &vdso_u_time_data; -} -#endif - #ifndef __arch_get_vdso_u_rng_data static __always_inline const struct vdso_rng_data *__arch_get_vdso_u_rng_d= ata(void) { diff --git a/lib/vdso/gettimeofday.c b/lib/vdso/gettimeofday.c index f7a591aba59f..b867c2301d5c 100644 --- a/lib/vdso/gettimeofday.c +++ b/lib/vdso/gettimeofday.c @@ -93,6 +93,13 @@ static inline bool vdso_cycles_ok(u64 cycles) } #endif =20 +#ifndef __arch_get_vdso_u_time_data +static __always_inline const struct vdso_time_data *__arch_get_vdso_u_time= _data(void) +{ + return &vdso_u_time_data; +} +#endif + static __always_inline bool vdso_clockid_valid(clockid_t clock) { /* Check for negative values or invalid clocks */ --=20 2.55.0 From nobody Fri Sep 25 19:20:30 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 8A15447124E; Wed, 9 Sep 2026 08:51:31 +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=1788943898; cv=none; b=HEn1yZYKd9vxmFbajQsAT88a5S3NviEUXFe4B4izL/0E7DH7KtDeFzZOsuTvCd/1y4KBeHYuzR4giXMOAikj6OOqU5jZz2OOak3tuNUIJFTIgl798o5oJawHhnxlCUg0t+c1A43A6fGdPXoraKYcuoCRRDPAoD3H6BlikWhigco= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788943898; c=relaxed/simple; bh=Inx1GMMAL9hTofIIG5CeNr2zKHZu0vdSWjUErNB5P+Q=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=hbiUNSjzcthuLhF/B02d+997jzR9H3z8p+BWRRdN5Q1WejV/mhcbTvoIJq8wLO397nthhquU1T2Bmn8eb590j1QN5isTRFGTAaAj86MdN4aC5t282+B1lG9AAnNB8g+LP1EPt76hX2ztYvXVhP79zb7RCUsZijd04iMFZRb2sOs= 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=zLyb9Fwu; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=N/A0UM8L; 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="zLyb9Fwu"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="N/A0UM8L" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1788943882; h=from:from: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=csWZa+FXPkZtKlamZnzOe5wDFOkHxV9+VSViUYlt1Zs=; b=zLyb9Fwu7jbI0CwCPLxrGbMAjONAtXhsvd2aOXrsZeTIM+Vd6cAkXeT/9cSCtBgc6rUvND gGL505R+4si2jE3aeqnbSbLIG8k98l5iRxrDYXFAKQOWMVSkZxKFlP21c6TSMA2i/iy116 /ylwRK8HcPiR9PgT8J7h2y8C76UQ6h/hhfKtVfvGj6xJZzmOon5VHgnFpIj7kux2X934+R 88gvKVckykd4QMY7I4EvAl22PfX5GKMA8NcVnV99WfoKqT9h3DM3L6nfOz4IF1LXAzPclD t74OiDujJWbszZsh0qrw62upWw14+r6iyZ4jcroh7b+1fqc9tncGYHc7XAbHiw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1788943882; h=from:from: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=csWZa+FXPkZtKlamZnzOe5wDFOkHxV9+VSViUYlt1Zs=; b=N/A0UM8L3DUA6/r4Ux30sANcZeIqXCYs4ZXEjCKOONRgT4pANRJ15Uu4BotsUrawfjPr6e 4wH9FEacXhaQoNBg== Date: Wed, 09 Sep 2026 10:51:16 +0200 Subject: [PATCH 03/15] vdso/getrandom: Define fallback __arch_get_vdso_u_rng_data() in getrandom.c Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260909-vdso-asm-generic-vsyscall-h-v1-3-63ae856cc659@linutronix.de> References: <20260909-vdso-asm-generic-vsyscall-h-v1-0-63ae856cc659@linutronix.de> In-Reply-To: <20260909-vdso-asm-generic-vsyscall-h-v1-0-63ae856cc659@linutronix.de> To: Andy Lutomirski , Thomas Gleixner , Vincenzo Frascino Cc: linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, loongarch@lists.linux.dev, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, sparclinux@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1788943875; l=1595; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=Inx1GMMAL9hTofIIG5CeNr2zKHZu0vdSWjUErNB5P+Q=; b=S5UXcl0xftPFhFxyzIYGTlv2hiN5xVRt8TcojCGkIIJlfpcJoQYHo8t1Vw1w+qVFkJDkfU+DX KiIc9K+4lvbCboRLbKhU8xLm4rTxtAlsgsM1YN6LzOWh2SHeS6QsfsX X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= __arch_get_vdso_u_rng_data() is only used in getrandom.c. vsyscall.h has become a dumping ground for different kinds of fallbacks. Move the fallback function definition into getrandom.c, similar to other fallbacks. Signed-off-by: Thomas Wei=C3=9Fschuh --- include/asm-generic/vdso/vsyscall.h | 7 ------- lib/vdso/getrandom.c | 7 +++++++ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/asm-generic/vdso/vsyscall.h b/include/asm-generic/vdso= /vsyscall.h index fe12fb1fb442..cdf7b39cd349 100644 --- a/include/asm-generic/vdso/vsyscall.h +++ b/include/asm-generic/vdso/vsyscall.h @@ -4,13 +4,6 @@ =20 #ifndef __ASSEMBLER__ =20 -#ifndef __arch_get_vdso_u_rng_data -static __always_inline const struct vdso_rng_data *__arch_get_vdso_u_rng_d= ata(void) -{ - return &vdso_u_rng_data; -} -#endif - #ifndef __arch_update_vdso_clock static __always_inline void __arch_update_vdso_clock(struct vdso_clock *vc) { diff --git a/lib/vdso/getrandom.c b/lib/vdso/getrandom.c index 2851afa9154f..6ff46549281c 100644 --- a/lib/vdso/getrandom.c +++ b/lib/vdso/getrandom.c @@ -19,6 +19,13 @@ /* Bring in default accessors */ #include =20 +#ifndef __arch_get_vdso_u_rng_data +static __always_inline const struct vdso_rng_data *__arch_get_vdso_u_rng_d= ata(void) +{ + return &vdso_u_rng_data; +} +#endif + #define MEMCPY_AND_ZERO_SRC(type, dst, src, len) do { \ while (len >=3D sizeof(type)) { \ __put_unaligned_t(type, __get_unaligned_t(type, src), dst); \ --=20 2.55.0 From nobody Fri Sep 25 19:20:30 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 1ABEF470EA3; Wed, 9 Sep 2026 08:51:31 +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=1788943899; cv=none; b=i+N1eDbtYVmfi3l1Ez2XvX8OL9XcGPIaQEid3WRUzdu/va/N1cQ/OoNvSGtBf6s7tQZ9I2pxjbEZcNgE6oG+YN1hwoBxGA1aimU0GWhkK9Z0bxSvvChNc32gqL8cPhhsrEtHuFORcpfvT9PULqfXoDQS5tUH0K20DmQXjTlaQIU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788943899; c=relaxed/simple; bh=sUPCnKCUGSNrK6kUHNVPQIEZiXKtWEAStKPxMYG7MFQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ZAVZpdNdHZaHLMmGnvEis1+qDklXRXV+sx/bNtc9S6TGS2BgM68cTTTZOozcMRezzbR8o1id2ZTHZMkZl90ccZspMl6hx/afj4p9c9zP+5WT5kmZh35+wEL/Dh2zHgns5exBC3/9Gh4ym++PZu2iH6oY52+PSnNnYI2nAZjU14o= 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=O5zzVmOy; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=9huAc0xk; 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="O5zzVmOy"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="9huAc0xk" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1788943883; h=from:from: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=p8ISCnsd1kBgxpKDcNux5gAnw7Y6k/Yo3uUbNdp9+qI=; b=O5zzVmOyrKpaHp2u4bUY98lgwCvVarLkNgeAPPVX89i5JBg3rHp4+Y8F9L4P7sCCu7APVT Al93fxOcU0nkxzrDGMp9ojUNo/XMGidIJmj5ushFZTsVzhhH2/4847wUgewnz4odH33RCG rYEV6IXxTfCoYWNjLI1njWpXKiTQzh4hlJ2nAfWSRVlSvIRdZ8jZlx0oLL8v+H9qcVdvTu VCEGXnt6KMhztEQTNXeBUDeApxeuzzOKfXXfabG23aFg593biDM8h5sQ9dSVqWDjHQtLqp 9TYPesEC1SSI+QAvRjLvNdyJHhqsK2SHpCmurN0Bhvkm5WRkaGF5W+rYh+i8Fg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1788943883; h=from:from: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=p8ISCnsd1kBgxpKDcNux5gAnw7Y6k/Yo3uUbNdp9+qI=; b=9huAc0xk9QcC4SgqamXcnykpmbUho6tKXuFLvtEqd+RfqJ7UdPuClzkoIyvHwlR5apQHEl EoLJQecYy/nKN7DQ== Date: Wed, 09 Sep 2026 10:51:17 +0200 Subject: [PATCH 04/15] vdso/vsyscall: Define fallback time synchronization functions in vsyscall.c Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260909-vdso-asm-generic-vsyscall-h-v1-4-63ae856cc659@linutronix.de> References: <20260909-vdso-asm-generic-vsyscall-h-v1-0-63ae856cc659@linutronix.de> In-Reply-To: <20260909-vdso-asm-generic-vsyscall-h-v1-0-63ae856cc659@linutronix.de> To: Andy Lutomirski , Thomas Gleixner , Vincenzo Frascino Cc: linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, loongarch@lists.linux.dev, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, sparclinux@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1788943875; l=1827; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=sUPCnKCUGSNrK6kUHNVPQIEZiXKtWEAStKPxMYG7MFQ=; b=lrpRL87RH6Jns+QOQuU8vG+UhFyds9BwYL/rt0fjZCb0s1Oj7j4AIKDMavYVvjgkUDUjPhvEc T9kztup5hZYCOHnR9RnzqXUPyVZQLUeJCQxyJrgUgGCsXxKa0apJ8Bi X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= __arch_update_vdso_clock() and __arch_sync_vdso_time_data() are only used in vsyscall.c. vsyscall.h has become a dumping ground for different kinds of fallbacks. Move the fallback function definitions into vsyscall.c. Signed-off-by: Thomas Wei=C3=9Fschuh --- include/asm-generic/vdso/vsyscall.h | 11 ----------- kernel/time/vsyscall.c | 12 ++++++++++++ 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/include/asm-generic/vdso/vsyscall.h b/include/asm-generic/vdso= /vsyscall.h index cdf7b39cd349..cfb740e82cb5 100644 --- a/include/asm-generic/vdso/vsyscall.h +++ b/include/asm-generic/vdso/vsyscall.h @@ -4,17 +4,6 @@ =20 #ifndef __ASSEMBLER__ =20 -#ifndef __arch_update_vdso_clock -static __always_inline void __arch_update_vdso_clock(struct vdso_clock *vc) -{ -} -#endif /* __arch_update_vdso_clock */ - -#ifndef __arch_sync_vdso_time_data -static __always_inline void __arch_sync_vdso_time_data(struct vdso_time_da= ta *vdata) -{ -} -#endif /* __arch_sync_vdso_time_data */ =20 #endif /* !__ASSEMBLER__ */ =20 diff --git a/kernel/time/vsyscall.c b/kernel/time/vsyscall.c index 12e205d86e7f..193a02d78b11 100644 --- a/kernel/time/vsyscall.c +++ b/kernel/time/vsyscall.c @@ -16,6 +16,18 @@ =20 #include "timekeeping_internal.h" =20 +#ifndef __arch_update_vdso_clock +static __always_inline void __arch_update_vdso_clock(struct vdso_clock *vc) +{ +} +#endif /* __arch_update_vdso_clock */ + +#ifndef __arch_sync_vdso_time_data +static __always_inline void __arch_sync_vdso_time_data(struct vdso_time_da= ta *vdata) +{ +} +#endif /* __arch_sync_vdso_time_data */ + static inline void fill_clock_configuration(struct vdso_clock *vc, const s= truct tk_read_base *base) { vc->cycle_last =3D base->cycle_last; --=20 2.55.0 From nobody Fri Sep 25 19:20:30 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 184F53B38AD; Wed, 9 Sep 2026 08:51:35 +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=1788943902; cv=none; b=fI28YWhaV/PybsCQoFFr4Rp8ySWA8NMuKlLrie1nzrBW5pZ/gsBomFgT00+qQhtyhBr+Gs9RBTEWAnlX9olvNfbCHUP4TjjyGvCUNWr6Aybfpcmxe74qzstQM7wLAi9gG7Jbg/x8Zm0n2iI4R/iZ/mKcV5oJCcUB9Hy5gsTy3ak= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788943902; c=relaxed/simple; bh=qhKDToRtVgE1seQYerDld7q7s7MqJPXIzQ2BawbRJ8w=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=SoYRw8JPGMWTcGD9ABJSLROytYgGvymASuuXDNIcFVn3Kzc9DM5FfwXsjPUeGharVHyiK2AYLwwgjB/P9BW4iZ6ch+jlJP+HZJEZV6lISxd/EOHbUiKXOMJo8eb+E0EtoqHstj/+LT8JbAhUaF2jN5jCXqhq7tYWHaTr5WzZwL8= 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=HRqxeHQr; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=jHrgCIP/; 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="HRqxeHQr"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="jHrgCIP/" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1788943883; h=from:from: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=ZBW+NNY2SjZx2bEP4psBPmVHnHPr59CeSsptOJzPpxM=; b=HRqxeHQrnXZFu+IW6nd8K+TY+LCZR9HvX+RpxOvhst2wYQkKsTY3WEghL3CDlSZ/UMJ9U+ qClsqE3u5gtUnsC+c/J5mpb5IIBe4D5+R8+ZJApFLO4luQIonxDru0UGAZnWLOoDos0UY1 vPT7y7D7QRsVuT9MzxZuIdVqpLUhNiLz72FSqYdSxj2RShBxyjgY5PXTSdirYSX0zl29Ep EGgrqvBqFnaiWkZo8bzs+n3/0umIANXltxdYplWWoqUmTpi5wgqV0Bfh9XTtj3hddbI1/r uYB7p+q3cj1Ew5ADSyyWHuTBSTecRPxvOHhuDBoHmxit+YMutvt6FfKiABLETA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1788943883; h=from:from: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=ZBW+NNY2SjZx2bEP4psBPmVHnHPr59CeSsptOJzPpxM=; b=jHrgCIP/rO/bPwnh+S3RCGy4iJMaIq/Mlhlf+7l8900BurZmy7j2ykoB99Wxkh8OyfH0Dc 9C9dta5dCibWzWDA== Date: Wed, 09 Sep 2026 10:51:18 +0200 Subject: [PATCH 05/15] vdso: Delete asm-generic/vdso/vsyscall.h Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260909-vdso-asm-generic-vsyscall-h-v1-5-63ae856cc659@linutronix.de> References: <20260909-vdso-asm-generic-vsyscall-h-v1-0-63ae856cc659@linutronix.de> In-Reply-To: <20260909-vdso-asm-generic-vsyscall-h-v1-0-63ae856cc659@linutronix.de> To: Andy Lutomirski , Thomas Gleixner , Vincenzo Frascino Cc: linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, loongarch@lists.linux.dev, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, sparclinux@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1788943875; l=6201; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=qhKDToRtVgE1seQYerDld7q7s7MqJPXIzQ2BawbRJ8w=; b=OFttGqDPceoM6rX7XNSrPCjOJ1o8w2sSyCuFYpcv3XLXp44msE1jDwBI83tyjyEjgR8ippMic gm8o53XdU8YBqTvJMqR0P/K8MUsjnsBFmjsyYIwE5HEwFngYTWSn65B X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= Recent refactoring have made the header empty. Remove it and its mentions. Also that header was never a real asm-generic header anyways. It had no reason to be in the asm-generic directory. Signed-off-by: Thomas Wei=C3=9Fschuh --- MAINTAINERS | 1 - arch/arm/include/asm/vdso/vsyscall.h | 3 --- arch/arm64/include/asm/vdso/vsyscall.h | 3 --- arch/loongarch/include/asm/vdso/vsyscall.h | 3 --- arch/mips/include/asm/vdso/vsyscall.h | 3 --- arch/powerpc/include/asm/vdso/vsyscall.h | 3 --- arch/riscv/include/asm/vdso/vsyscall.h | 3 --- arch/s390/include/asm/vdso/vsyscall.h | 3 --- arch/sparc/include/asm/vdso/vsyscall.h | 2 -- arch/x86/include/asm/vdso/vsyscall.h | 3 --- include/asm-generic/vdso/vsyscall.h | 10 ---------- 11 files changed, 37 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 562ace172594..21c590dd28b6 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -11064,7 +11064,6 @@ M: Vincenzo Frascino L: linux-kernel@vger.kernel.org S: Maintained T: git git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git timers/vd= so -F: include/asm-generic/vdso/vsyscall.h F: include/linux/vdso_datastore.h F: include/linux/vdso_time.h F: include/vdso/ diff --git a/arch/arm/include/asm/vdso/vsyscall.h b/arch/arm/include/asm/vd= so/vsyscall.h index ff1c729af05f..14f2ea9d8640 100644 --- a/arch/arm/include/asm/vdso/vsyscall.h +++ b/arch/arm/include/asm/vdso/vsyscall.h @@ -14,9 +14,6 @@ void __arch_sync_vdso_time_data(struct vdso_time_data *vd= ata) } #define __arch_sync_vdso_time_data __arch_sync_vdso_time_data =20 -/* The asm-generic header needs to be included after the definitions above= */ -#include - #endif /* !__ASSEMBLY__ */ =20 #endif /* __ASM_VDSO_VSYSCALL_H */ diff --git a/arch/arm64/include/asm/vdso/vsyscall.h b/arch/arm64/include/as= m/vdso/vsyscall.h index 3f3c8eb74e2e..7d9d6bdd58b2 100644 --- a/arch/arm64/include/asm/vdso/vsyscall.h +++ b/arch/arm64/include/asm/vdso/vsyscall.h @@ -19,9 +19,6 @@ void __arch_update_vdso_clock(struct vdso_clock *vc) } #define __arch_update_vdso_clock __arch_update_vdso_clock =20 -/* The asm-generic header needs to be included after the definitions above= */ -#include - #endif /* !__ASSEMBLER__ */ =20 #endif /* __ASM_VDSO_VSYSCALL_H */ diff --git a/arch/loongarch/include/asm/vdso/vsyscall.h b/arch/loongarch/in= clude/asm/vdso/vsyscall.h index 558eb9dfda52..db653780519d 100644 --- a/arch/loongarch/include/asm/vdso/vsyscall.h +++ b/arch/loongarch/include/asm/vdso/vsyscall.h @@ -6,9 +6,6 @@ =20 #include =20 -/* The asm-generic header needs to be included after the definitions above= */ -#include - #endif /* !__ASSEMBLER__ */ =20 #endif /* __ASM_VDSO_VSYSCALL_H */ diff --git a/arch/mips/include/asm/vdso/vsyscall.h b/arch/mips/include/asm/= vdso/vsyscall.h index 0f061a9babd1..f01ab2e15c08 100644 --- a/arch/mips/include/asm/vdso/vsyscall.h +++ b/arch/mips/include/asm/vdso/vsyscall.h @@ -8,9 +8,6 @@ =20 #include =20 -/* The asm-generic header needs to be included after the definitions above= */ -#include - #endif /* !__ASSEMBLER__ */ =20 #endif /* __ASM_VDSO_VSYSCALL_H */ diff --git a/arch/powerpc/include/asm/vdso/vsyscall.h b/arch/powerpc/includ= e/asm/vdso/vsyscall.h index bee18e8660a0..6a6510fa8217 100644 --- a/arch/powerpc/include/asm/vdso/vsyscall.h +++ b/arch/powerpc/include/asm/vdso/vsyscall.h @@ -6,9 +6,6 @@ =20 #include =20 -/* The asm-generic header needs to be included after the definitions above= */ -#include - #endif /* !__ASSEMBLER__ */ =20 #endif /* _ASM_POWERPC_VDSO_VSYSCALL_H */ diff --git a/arch/riscv/include/asm/vdso/vsyscall.h b/arch/riscv/include/as= m/vdso/vsyscall.h index 558eb9dfda52..db653780519d 100644 --- a/arch/riscv/include/asm/vdso/vsyscall.h +++ b/arch/riscv/include/asm/vdso/vsyscall.h @@ -6,9 +6,6 @@ =20 #include =20 -/* The asm-generic header needs to be included after the definitions above= */ -#include - #endif /* !__ASSEMBLER__ */ =20 #endif /* __ASM_VDSO_VSYSCALL_H */ diff --git a/arch/s390/include/asm/vdso/vsyscall.h b/arch/s390/include/asm/= vdso/vsyscall.h index b00acec8ddbc..c74c307c320c 100644 --- a/arch/s390/include/asm/vdso/vsyscall.h +++ b/arch/s390/include/asm/vdso/vsyscall.h @@ -8,9 +8,6 @@ #include #include =20 -/* The asm-generic header needs to be included after the definitions above= */ -#include - #endif /* !__ASSEMBLER__ */ =20 #endif /* __ASM_VDSO_VSYSCALL_H */ diff --git a/arch/sparc/include/asm/vdso/vsyscall.h b/arch/sparc/include/as= m/vdso/vsyscall.h index 8bfe703fedc5..b08e0bd5e309 100644 --- a/arch/sparc/include/asm/vdso/vsyscall.h +++ b/arch/sparc/include/asm/vdso/vsyscall.h @@ -5,6 +5,4 @@ =20 #define __VDSO_PAGES 4 =20 -#include - #endif /* _ASM_SPARC_VDSO_VSYSCALL_H */ diff --git a/arch/x86/include/asm/vdso/vsyscall.h b/arch/x86/include/asm/vd= so/vsyscall.h index 4aa311a923f2..57598db8763b 100644 --- a/arch/x86/include/asm/vdso/vsyscall.h +++ b/arch/x86/include/asm/vdso/vsyscall.h @@ -14,9 +14,6 @@ #include #include =20 -/* The asm-generic header needs to be included after the definitions above= */ -#include - #endif /* !__ASSEMBLER__ */ =20 #endif /* __ASM_VDSO_VSYSCALL_H */ diff --git a/include/asm-generic/vdso/vsyscall.h b/include/asm-generic/vdso= /vsyscall.h deleted file mode 100644 index cfb740e82cb5..000000000000 --- a/include/asm-generic/vdso/vsyscall.h +++ /dev/null @@ -1,10 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ -#ifndef __ASM_GENERIC_VSYSCALL_H -#define __ASM_GENERIC_VSYSCALL_H - -#ifndef __ASSEMBLER__ - - -#endif /* !__ASSEMBLER__ */ - -#endif /* __ASM_GENERIC_VSYSCALL_H */ --=20 2.55.0 From nobody Fri Sep 25 19:20:30 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 DBEA23B42C4; Wed, 9 Sep 2026 08:51:37 +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=1788943909; cv=none; b=eVuYvdEQi9l18obXoL43VGwUXvD3mLoNJzlb1JX4MCoHyHT+qLnURLpK3YmyC/9e/slXZZwhK3GT/QAHZwzKH15luDISnLYOTlsWjzw6j6zx3qe094LgPrc16caPqBfCh32HZS2EP7uk13E9vEbE5mL/tTzbE/XgpGemZgmrcNQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788943909; c=relaxed/simple; bh=9yrup1COiXMcfGgNW5FQUG/LXYB+NuTSGZ1TprnDeUQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Z32hWybDrdc2hvXP54T5C2hSDUupL834IAiQQDI3kosIC9gYvxzI+TquE9Lrxe+uz6OymMsZS/Fl14xU/Z2gzFNs5rag+XF7vYaIUCjhZuZrVsaZEhdjrFy4jMLJn3DsyiLJSmYgHESYmlDhfe3fTRQZ11WV2T6aedSaWuOwqOc= 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=eqP8ughI; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=jVX4AN8O; 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="eqP8ughI"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="jVX4AN8O" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1788943884; h=from:from: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=Q2Fb4eCjj+zAUQPiYalGdgIWLIgi0C9tMG4Wk6//rL0=; b=eqP8ughIWhO/zWHJqIcpnE1zH5Z6Uff68ylB3fNburq8lG10nepXJX4mazfWoFN07g/dX7 5wWpfbwXq9syptiaqVr3s9+qB4IaIQrVCTAykoJ3QyyS89SBjIELA0HirxAHeEao/1LMrn mYJ99pvmZ+Cf8lKwtDGgAIK2wgT6AyFSHcC68XUyJBj3+gzEtXFKKntUgyQqG8N1vRRiPb DHx18kQ5moP+Qf8QI/7uM00WxhtbVuhIFqEZJMDAJy9seLj+k7Uvfcn2IZ5FrBhRjdrWpp 6RfkROg5QYm6c7U22E17G5cR6V1fJGvzVdEn0cSjxT4h2w+oBW9Z6HQZd5kfkQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1788943884; h=from:from: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=Q2Fb4eCjj+zAUQPiYalGdgIWLIgi0C9tMG4Wk6//rL0=; b=jVX4AN8Oo8E9jDY7LdgbDqTks4Y9ztR5jIkatGeWIeYHKeeAd8NyDi0CnbjzwTRgsKH/kz dZEpI1oJQvAAeWCQ== Date: Wed, 09 Sep 2026 10:51:19 +0200 Subject: [PATCH 06/15] x86/vdso: Move vDSO page definitions to asm/vdso.h Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260909-vdso-asm-generic-vsyscall-h-v1-6-63ae856cc659@linutronix.de> References: <20260909-vdso-asm-generic-vsyscall-h-v1-0-63ae856cc659@linutronix.de> In-Reply-To: <20260909-vdso-asm-generic-vsyscall-h-v1-0-63ae856cc659@linutronix.de> To: Andy Lutomirski , Thomas Gleixner , Vincenzo Frascino Cc: linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, loongarch@lists.linux.dev, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, sparclinux@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1788943875; l=1480; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=9yrup1COiXMcfGgNW5FQUG/LXYB+NuTSGZ1TprnDeUQ=; b=8lsoI5rYTpgQdz12XqHek0bQOa8lDAtlAIBJKnJGQxBA5RZp/X59vjJa3XzdUUOBGktVHG8Xt hROTC4EoOEOABpAp1sl+WEhhmKISJWSG/lG/6la5vX3KZWy9RTginJR X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= Most architectures define the vDSO page macros in asm/vdso.h. Align the x86 headers. Signed-off-by: Thomas Wei=C3=9Fschuh --- arch/x86/include/asm/vdso.h | 7 +++++++ arch/x86/include/asm/vdso/vsyscall.h | 7 ------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/arch/x86/include/asm/vdso.h b/arch/x86/include/asm/vdso.h index 4e735158c1b2..071e4a262b50 100644 --- a/arch/x86/include/asm/vdso.h +++ b/arch/x86/include/asm/vdso.h @@ -6,6 +6,13 @@ #include #include =20 +#define __VDSO_PAGES 6 + +#define VDSO_NR_VCLOCK_PAGES 2 +#define VDSO_VCLOCK_PAGES_START(_b) ((_b) + (__VDSO_PAGES - VDSO_NR_VCLOCK= _PAGES) * PAGE_SIZE) +#define VDSO_PAGE_PVCLOCK_OFFSET 0 +#define VDSO_PAGE_HVCLOCK_OFFSET 1 + #ifndef __ASSEMBLER__ =20 #include diff --git a/arch/x86/include/asm/vdso/vsyscall.h b/arch/x86/include/asm/vd= so/vsyscall.h index 57598db8763b..65d10f4cc718 100644 --- a/arch/x86/include/asm/vdso/vsyscall.h +++ b/arch/x86/include/asm/vdso/vsyscall.h @@ -2,13 +2,6 @@ #ifndef __ASM_VDSO_VSYSCALL_H #define __ASM_VDSO_VSYSCALL_H =20 -#define __VDSO_PAGES 6 - -#define VDSO_NR_VCLOCK_PAGES 2 -#define VDSO_VCLOCK_PAGES_START(_b) ((_b) + (__VDSO_PAGES - VDSO_NR_VCLOCK= _PAGES) * PAGE_SIZE) -#define VDSO_PAGE_PVCLOCK_OFFSET 0 -#define VDSO_PAGE_HVCLOCK_OFFSET 1 - #ifndef __ASSEMBLER__ =20 #include --=20 2.55.0 From nobody Fri Sep 25 19:20:30 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 2B24947C0E3; Wed, 9 Sep 2026 08:51:37 +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=1788943903; cv=none; b=Ee1CAZ32rJBwrvJ656o0AzjzJD1l0+Ljg4GPmpHG/himyVd7cCORn3IP30pOEntD8aJdMy6ylh7ztwbAD+dIaCYp6paKUo2yW4GW3MpzZfz6hYEyG8o++ocLBla/4l1NbU12ceZpdhieYfsGwU8oHkc5UzC4QMmQfCIU/W6Fg8k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788943903; c=relaxed/simple; bh=VaPdauFQWLU0KJEV2a1f+WJtOXR8fxXaZFpswc0b434=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ObUOZMpIkziVkC2FHnoc0pTEvwVUF7xmkWsD59eZYs6ckEtPskSbYXnQg7AOh6TJxJYX0RJwTPni3ezaoLQcUBiUATOZUOwAcx4yo9XAqGQ9MdC9gpQM/bAnA+eNG7+6Pdy6YuF7F9teomyWjVRFu1cPOueYAz8XvT3fkMe3FYE= 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=IdgLyGap; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=VVFeQNO/; 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="IdgLyGap"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="VVFeQNO/" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1788943884; h=from:from: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=CQ6ZZ42sEo0FMBMnZaDqvhvFmH70JPCseJfddupHf7M=; b=IdgLyGapCdf08hmIlLUWBy5AL4aW14xA2DS8OXFT1Zb3CfDnLbwZzDeXVhoDtbepPja8BN ryTtklMY2ERezCHSjJlc8z6NqAmiDSIy1DJogjFxpiZHuvKq7I5LB3MdZv9H4OozHj6Tng jbuQ4bPlOXu2wnT85khiyqOCKQBqOycEa8gaAjPIKxtVnd7LNbfnR49SgNv8Yl+pmxE0Ms s+Yl7j6gRiBR+fdcJhs4gs56Mczg7vk4/5aJnJbPl7DjBAqCEpkK7rppWwNbmLG9BrzDR7 ChLjxpdfSnPxkp9jo/Sqv2fznf1ecuWEK6Jrcl1M/D7NpH6KpEFrKYbzuewvbQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1788943884; h=from:from: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=CQ6ZZ42sEo0FMBMnZaDqvhvFmH70JPCseJfddupHf7M=; b=VVFeQNO/Qr/Vdm/q5BIomEtSc9i3kd9MK5TvsOwwjy2HYSUJfnaUQnR6L8aW7POLHXLm9j GGUXnc3tC3NpprCg== Date: Wed, 09 Sep 2026 10:51:20 +0200 Subject: [PATCH 07/15] sparc/vdso: Move __VDSO_PAGES to asm/vdso.h Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260909-vdso-asm-generic-vsyscall-h-v1-7-63ae856cc659@linutronix.de> References: <20260909-vdso-asm-generic-vsyscall-h-v1-0-63ae856cc659@linutronix.de> In-Reply-To: <20260909-vdso-asm-generic-vsyscall-h-v1-0-63ae856cc659@linutronix.de> To: Andy Lutomirski , Thomas Gleixner , Vincenzo Frascino Cc: linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, loongarch@lists.linux.dev, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, sparclinux@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1788943875; l=1764; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=VaPdauFQWLU0KJEV2a1f+WJtOXR8fxXaZFpswc0b434=; b=jH77Q51ITwUmOjNWzqUo9lEC+d/JgkdmQkYyv3oztNYP+7L0bV4RFQRJ0PdkZOHP7kKbcLVEn InKr6KCGEt+AhGlPxfVPXNdvyax8i9utdLhbRU/m9JgTxddcG4QStTx X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= Most architectures define the __VDSO_PAGES page macro in asm/vdso.h. Align the SPARC headers. Signed-off-by: Thomas Wei=C3=9Fschuh --- arch/sparc/include/asm/vdso.h | 6 ++++++ arch/sparc/include/asm/vdso/vsyscall.h | 2 -- arch/sparc/vdso/vdso-layout.lds.S | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/arch/sparc/include/asm/vdso.h b/arch/sparc/include/asm/vdso.h index f08562d10215..b17c37c8075b 100644 --- a/arch/sparc/include/asm/vdso.h +++ b/arch/sparc/include/asm/vdso.h @@ -5,6 +5,10 @@ #ifndef _ASM_SPARC_VDSO_H #define _ASM_SPARC_VDSO_H =20 +#define __VDSO_PAGES 4 + +#ifndef __ASSEMBLER__ + struct vdso_image { void *data; unsigned long size; /* Always a multiple of PAGE_SIZE */ @@ -17,4 +21,6 @@ extern const struct vdso_image vdso_image_64_builtin; extern const struct vdso_image vdso_image_32_builtin; #endif =20 +#endif /* __ASSEMBLER__ */ + #endif /* _ASM_SPARC_VDSO_H */ diff --git a/arch/sparc/include/asm/vdso/vsyscall.h b/arch/sparc/include/as= m/vdso/vsyscall.h index b08e0bd5e309..ff62b291e4eb 100644 --- a/arch/sparc/include/asm/vdso/vsyscall.h +++ b/arch/sparc/include/asm/vdso/vsyscall.h @@ -3,6 +3,4 @@ #ifndef _ASM_SPARC_VDSO_VSYSCALL_H #define _ASM_SPARC_VDSO_VSYSCALL_H =20 -#define __VDSO_PAGES 4 - #endif /* _ASM_SPARC_VDSO_VSYSCALL_H */ diff --git a/arch/sparc/vdso/vdso-layout.lds.S b/arch/sparc/vdso/vdso-layou= t.lds.S index 180e5d0ee071..920396203a2e 100644 --- a/arch/sparc/vdso/vdso-layout.lds.S +++ b/arch/sparc/vdso/vdso-layout.lds.S @@ -6,7 +6,7 @@ =20 #include #include -#include +#include =20 SECTIONS { --=20 2.55.0 From nobody Fri Sep 25 19:20:30 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 DBF5E481AA6; Wed, 9 Sep 2026 08:51:37 +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=1788943905; cv=none; b=DBMcuLXUy2wNS7j8HiuZa6wgR0O07B6Vs6WmqaPee+BQfPhLKa9jtO058WvYVWhXaB5gJ9eur0QoD0+7A1ct8BMn+p/AtEPQD4M6Ga/Txz195VeZYiZk808aj1HvYOSx8FukEYH/8IPDG+NYPpHtdHBBAGizltLzsCR4AMevhE0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788943905; c=relaxed/simple; bh=XEkGmHaO9UQ15JGGo9EFCqoDzN0VZwQacIVpi6I6eho=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Eg2yg9wUvPIWCLXi9OAjZFYeR/1XsFIsuEJ29991iCimkjVC1vKaHDCG7rGq+h0iFDDBMRECgZ5+vpYhBm8fkOcGjOKBhpME7unM9yVfQsK9lJSByLtIrOXj33FJnjKqsLHA9g92y/VZt1Dze8py7ZeKJbnPaCNMKKt3zeYOnw8= 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=fY43G6LB; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=fS/qMfZf; 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="fY43G6LB"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="fS/qMfZf" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1788943885; h=from:from: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=Pu21AANy6bk1mlm0NmAgLdaZdlkGyn68YRFNRQ9INwY=; b=fY43G6LBWdQkHYdyVBIxlLabTz9sY1wdEwbix3guUJj3EMTAlgttvjyicJzcS1byA/EYdy G2GOcuMDfq5geeNDnOjPbvRb7EzsEL1Clk/H8WaN0sddjYKMQS4eG0BqCIjRr0OlvTLJSN RN90tB/5INV6w2dlX8afOXI3xFKQezguucJCgLOZTNwjr6RY6fTr4CjhnpG2JJQfq8bTxY xQ1o1MTBSTdqjdBasvcUb1G+ogTvTjmpXkvfnYDAWwEY82x7oyBpb3faiydAcgcQB9K5Yj qx0k7QtEbJReCwJRQceG/UD512/jPmjWdRPduWsrE9i7v+i6KjtZJ5SCxfdJxQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1788943885; h=from:from: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=Pu21AANy6bk1mlm0NmAgLdaZdlkGyn68YRFNRQ9INwY=; b=fS/qMfZfymFeZyXXZSlfW6pLXpcG8P6cUd3bXFewTMfnuYEoBNdNlxmu56kaFJOQgmnkTU azAqtLuPsNDaytDw== Date: Wed, 09 Sep 2026 10:51:21 +0200 Subject: [PATCH 08/15] s390/vdso: Delete asm/vdso/vsyscall.h inclusions Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260909-vdso-asm-generic-vsyscall-h-v1-8-63ae856cc659@linutronix.de> References: <20260909-vdso-asm-generic-vsyscall-h-v1-0-63ae856cc659@linutronix.de> In-Reply-To: <20260909-vdso-asm-generic-vsyscall-h-v1-0-63ae856cc659@linutronix.de> To: Andy Lutomirski , Thomas Gleixner , Vincenzo Frascino Cc: linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, loongarch@lists.linux.dev, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, sparclinux@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1788943875; l=1455; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=XEkGmHaO9UQ15JGGo9EFCqoDzN0VZwQacIVpi6I6eho=; b=tWx5LzZMM3tFuh6dvop7MXiyaao+GWjDBE8xefvCVu+hYibUJLQsMpisPmgpEGcWAc/Wv8tBg BkTPk+qz6khArKF3lgV/FIsobdzvGD8+AIMA3xOqRUfKNBft+tKTA1x X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= The inclusions are unnecessary, remove them. Signed-off-by: Thomas Wei=C3=9Fschuh --- arch/s390/include/asm/vdso/getrandom.h | 1 - arch/s390/kernel/vdso.c | 1 - arch/s390/kernel/vdso/vdso.lds.S | 1 - 3 files changed, 3 deletions(-) diff --git a/arch/s390/include/asm/vdso/getrandom.h b/arch/s390/include/asm= /vdso/getrandom.h index 6741a27199f8..ff5882f2fc70 100644 --- a/arch/s390/include/asm/vdso/getrandom.h +++ b/arch/s390/include/asm/vdso/getrandom.h @@ -6,7 +6,6 @@ #ifndef __ASSEMBLER__ =20 #include -#include #include #include #include diff --git a/arch/s390/kernel/vdso.c b/arch/s390/kernel/vdso.c index 0fe616c49fcc..a905f989f910 100644 --- a/arch/s390/kernel/vdso.c +++ b/arch/s390/kernel/vdso.c @@ -18,7 +18,6 @@ #include #include #include -#include #include #include =20 diff --git a/arch/s390/kernel/vdso/vdso.lds.S b/arch/s390/kernel/vdso/vdso.= lds.S index 841daeec4be2..6bcdb64315f2 100644 --- a/arch/s390/kernel/vdso/vdso.lds.S +++ b/arch/s390/kernel/vdso/vdso.lds.S @@ -4,7 +4,6 @@ * library */ =20 -#include #include #include #include --=20 2.55.0 From nobody Fri Sep 25 19:20:30 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 F0E2D4854F6; Wed, 9 Sep 2026 08:51:38 +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=1788943901; cv=none; b=qg9zlOsPHpfaoRj8Eusx8o3d8t3b0BxbilHpnz1dacjEmCoG9ZfytjuhU/ZZvUlDrPqTYywi9uImkd/ThHO89XlUBAZJREE7JQu9hyIgOwbjS0d+6afPdq/fIhy+OcWUbL/c8Ft0AgsCi0zexau1Cqfb8JoJ2Pw57pzF57D90/A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788943901; c=relaxed/simple; bh=p+b8xoqSRp+BaXpuv6UkhI9jSr9haopNWgF+UmEOVQk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=nGGFgaDWdonPS/rbMS3tkFmTNIEE+r40LeqV8Zs1eODpb6mFKx5s2w3KQxW5GM9a9E07dNUzS8gdVZ+mukO2jBpYMm+Px/Oykciv8AsGHbDbUEEuSP8Wgg4uadyRCRrSs/zAWiB5J5y1+HayLTm/gPIryNzuDwqpf2B8QDkpgiA= 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=18ypzorm; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=V9tYUFNz; 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="18ypzorm"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="V9tYUFNz" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1788943885; h=from:from: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=sC8+6J9OLUakbA4e+Ap2B6uuZE9Tl7PwTVwk0psJD7w=; b=18ypzormw89rOzBf6uIIHYH1wJOPorGI4jxdXBGhkEdBQPZOLIVTm3KlRtbdVDtdGj9VG7 Dyjho9sIcBEasT5u31Y6tYFz04xKu20FzftA5gy6Id8NhHbhfJut0d0PS+7ZjetZKmijCh u/3olgtjrDEgB4C5ITT4CpG3VJZ5DK2VcHCG/wOlxBKI+jSGLQNOi+m8a9Y5OivTRfFyAs 2pKxnMgQ6QXgcLRV+3MsRlunL77unXFK+hIJ7P2eCY8PBRsZctieqL2rbr4yWOsH/yijps 0oceS1P/fPh3YWLS+ARzngBQRl6bCpKYgOPJXYvTIYdpTZN4WO39XXP4Yc9OKQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1788943885; h=from:from: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=sC8+6J9OLUakbA4e+Ap2B6uuZE9Tl7PwTVwk0psJD7w=; b=V9tYUFNzgGBunIsna6vZfNbVMtIIjvl+n+kfHtNDv+819iutT7PUqChs4OihB+GRdxuasV MJxc+Wzwhfj+biBw== Date: Wed, 09 Sep 2026 10:51:22 +0200 Subject: [PATCH 09/15] sparc/vdso: Delete asm/vdso/vsyscall.h inclusion Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260909-vdso-asm-generic-vsyscall-h-v1-9-63ae856cc659@linutronix.de> References: <20260909-vdso-asm-generic-vsyscall-h-v1-0-63ae856cc659@linutronix.de> In-Reply-To: <20260909-vdso-asm-generic-vsyscall-h-v1-0-63ae856cc659@linutronix.de> To: Andy Lutomirski , Thomas Gleixner , Vincenzo Frascino Cc: linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, loongarch@lists.linux.dev, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, sparclinux@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1788943875; l=516; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=p+b8xoqSRp+BaXpuv6UkhI9jSr9haopNWgF+UmEOVQk=; b=M4PnWWjB8PtId1XPU1zVCslJBTDHYh9V/L0XSbIVM9OptHzq+tq0jklWaWwKlEoUCNwkyM6tW rJ+WK8pnGurDoAd2fM6SfaNEA6DETxYOyV8t6MVuFm8YlCVyu8Tziow X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= The inclusion is unnecessary, remove it. Signed-off-by: Thomas Wei=C3=9Fschuh --- arch/sparc/vdso/vma.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/sparc/vdso/vma.c b/arch/sparc/vdso/vma.c index 60029d60f4d3..ab6626c1ee61 100644 --- a/arch/sparc/vdso/vma.c +++ b/arch/sparc/vdso/vma.c @@ -23,7 +23,6 @@ #include =20 #include -#include =20 unsigned int __read_mostly vdso_enabled =3D 1; =20 --=20 2.55.0 From nobody Fri Sep 25 19:20:30 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 67CDB485CEF; Wed, 9 Sep 2026 08:51:38 +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=1788943903; cv=none; b=FEy3TZU+F1rpjkSUZaGzRumBlt4NknxSUHGytGhzKiTBzIhGwCMu8rq23fCJFzvHslBC0PBo6zO4/foTcZ0Qv/l2EHMz/5u07qwkxXNn/i0QCn7DgCwyozB8MlhRazkyF66/E/BwFNADVn2M3x2mh/wRIc1Zww0CF1RJhje9C10= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788943903; c=relaxed/simple; bh=5kEtWlx4srqMSxMbrqSmgOqVkUKIg3dsZZJXpVNG60I=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=gy8lipV5J2qmSvGk/CjPWhqriLcEGh2f72vl5/0OBjOAKUFymvd9KMRXGpO21hmafAQjVEC0ZB99RGgtaZhEjfijcgdewrE+VlKaIQGzWmho5Jy7ThIWCJ8qIOL+X4giFqm+ktDTx9xRA9oRQ8GNCmIG2g+VFBvbJxwzW29lO5U= 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=jG8f6cKe; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=+0brCh2l; 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="jG8f6cKe"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="+0brCh2l" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1788943886; h=from:from: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=oh1PJG/vwynt7EkxazpWcIlavpMds/jXQGtW/4wg0d8=; b=jG8f6cKe83NgFyvB7usZY5ErQO/V+DEWyK1IB8tUERMGKxGkzLNkIRGesrebnzL/Gxsnyi ajCdAtna/v6CMkAKXjthX4qDcEE9WrSAtMgIfoQFesbhR0R4vNqSYIZ1OGchhK7tOM/GSY SGyj2dZCe0nw25WQUym+CIEiEZ6x/wUaSFxGrW1UHbhREFH9op4ca2NuLp1Mo/RiW4B8P0 WztwZfxOkGPxnJhqkzrD+mcn0yD453QUx2P4tDWkiLiMbYyG78yBvjcK8R/Ym+DjhTxPlv Qu07I+AE0JkTdPbZxhPMQ3BqhKIYkYs6yAnLeDVndUB+dkr600i6Jh5cklHbPw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1788943886; h=from:from: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=oh1PJG/vwynt7EkxazpWcIlavpMds/jXQGtW/4wg0d8=; b=+0brCh2l6wZIkosY+LRmMvfxx2IhX7GE3jNB+mNx83iF8+o62DG8Ex4rQiFeyrEcrPuQlG /Ke2Gl8rQAlYcQBg== Date: Wed, 09 Sep 2026 10:51:23 +0200 Subject: [PATCH 10/15] x86/vdso: Delete asm/vdso/vsyscall.h inclusions Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260909-vdso-asm-generic-vsyscall-h-v1-10-63ae856cc659@linutronix.de> References: <20260909-vdso-asm-generic-vsyscall-h-v1-0-63ae856cc659@linutronix.de> In-Reply-To: <20260909-vdso-asm-generic-vsyscall-h-v1-0-63ae856cc659@linutronix.de> To: Andy Lutomirski , Thomas Gleixner , Vincenzo Frascino Cc: linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, loongarch@lists.linux.dev, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, sparclinux@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1788943875; l=1100; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=5kEtWlx4srqMSxMbrqSmgOqVkUKIg3dsZZJXpVNG60I=; b=n4PspGkIOT4Ebc+CmHeX9ALb1UVKIlo/hmp+mpBEFSF3QM6gtk5pa1nGQAPgV+tbbPhWB3ikF CsF4rPheNMACU2R8R3gkRXtsPOgU2bhh0jtZnJ0G/TUZh5S+gNmgRl9 X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= The inclusions are unnecessary, remove them. Signed-off-by: Thomas Wei=C3=9Fschuh --- arch/x86/entry/vdso/common/vdso-layout.lds.S | 1 - arch/x86/entry/vdso/vma.c | 1 - 2 files changed, 2 deletions(-) diff --git a/arch/x86/entry/vdso/common/vdso-layout.lds.S b/arch/x86/entry/= vdso/common/vdso-layout.lds.S index a1e30be3e83d..f190efbc640e 100644 --- a/arch/x86/entry/vdso/common/vdso-layout.lds.S +++ b/arch/x86/entry/vdso/common/vdso-layout.lds.S @@ -1,6 +1,5 @@ /* SPDX-License-Identifier: GPL-2.0 */ #include -#include #include =20 /* diff --git a/arch/x86/entry/vdso/vma.c b/arch/x86/entry/vdso/vma.c index 18dfd80a81ef..4bd3b22beea9 100644 --- a/arch/x86/entry/vdso/vma.c +++ b/arch/x86/entry/vdso/vma.c @@ -25,7 +25,6 @@ #include #include #include -#include #include =20 static_assert(VDSO_NR_PAGES + VDSO_NR_VCLOCK_PAGES =3D=3D __VDSO_PAGES); --=20 2.55.0 From nobody Fri Sep 25 19:20:30 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 B9DFF47C0F7; Wed, 9 Sep 2026 08:51:40 +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=1788943909; cv=none; b=cIYe86svZyzk26ViCzULbcVA0B66/dEXSk98vjl/GZM0JDc8NH2Hxb7GzPWN3kvlOfEJ3PTbONwrKF0ucG6CQXU2lis72TXninQF7/x6R+E0hDaAwnJQiWgYVCtbXyisi7g3O/veEY9/hlBhZRHuusbFJgnVE5JTzdvrkWmgvn8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788943909; c=relaxed/simple; bh=gLJEWgigGyJ7XawvovjYyQOfwIjsfDH42RIEWGgskXM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=WGcfyYG417TrH+mgye39aaKb6PM1BDInR+Od4Y/MYHfhbW/AtLlB2l7d1AqMM2kwDn1qLGHcpKN8ePjXOVGu7lIOoLk9Y3G6KOH4lybY2Exmt4Dm+2JLS4TRkEFAqTVMCPshBxmGgEQyJCtME/Nsm6G8rInCMjbCjsoCSE3ggd0= 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=OuwvPY70; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=wRCjo4pp; 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="OuwvPY70"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="wRCjo4pp" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1788943886; h=from:from: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=bRBWj4mHSE+gknjapqdIxCDI+b+DaeaenxvpulsS1K8=; b=OuwvPY70bFMkqtB5jpFaHm754bhGKnxYjRFqeq/NxUHsAi1S/l6DON/VFVG35d42rblTYT q6nPgppRoUf2NTOIeO19SzWG1Dgirc42Owbs6GVYpb3JRlXE0lZTUWmbSpdYa/IMY0+PSQ BpBSXtapXIZ3mUdmnI6qABHQMVSFVsywYuuxu2WTq380Uq/f2FD3rHQ+6dci7c5FY4beKt spLLl3asON8tW8f3/yj9ohsCwkhsjD3en/x7SdI5zE8pzWRPc5klauC/Draw/Ok6Tk5WgX qeDqlDtCTn4HBCSILi54ACQICpWadAvqQ4UBqYOAtZWu1+JDURIbjPxybYHzSQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1788943886; h=from:from: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=bRBWj4mHSE+gknjapqdIxCDI+b+DaeaenxvpulsS1K8=; b=wRCjo4ppx3NZEr7blbkSnFDjUNREZe3LWFNZiakgUojTuDBVUpaNXO4d+N8RwyHc3AJBN/ Awf+ktdqmalyM9Cg== Date: Wed, 09 Sep 2026 10:51:24 +0200 Subject: [PATCH 11/15] arm64/vdso: Delete asm/vdso/vsyscall.h inclusions Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260909-vdso-asm-generic-vsyscall-h-v1-11-63ae856cc659@linutronix.de> References: <20260909-vdso-asm-generic-vsyscall-h-v1-0-63ae856cc659@linutronix.de> In-Reply-To: <20260909-vdso-asm-generic-vsyscall-h-v1-0-63ae856cc659@linutronix.de> To: Andy Lutomirski , Thomas Gleixner , Vincenzo Frascino Cc: linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, loongarch@lists.linux.dev, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, sparclinux@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1788943875; l=1045; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=gLJEWgigGyJ7XawvovjYyQOfwIjsfDH42RIEWGgskXM=; b=dXObFU3KxzH9K1ul1RZRBGrqGW/wDZaQe1dxCAARQqeFJPUhpOY3RLhbeefuEg4MBu550yA8g Kiuma1H8fEGDwbk+wuxsy/poBd6Gxu2/vVk7ernHzK4zAYbhLyYb6VM X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= The inclusions are unnecessary, remove them. Signed-off-by: Thomas Wei=C3=9Fschuh --- arch/arm64/include/asm/vdso/getrandom.h | 1 - arch/arm64/kernel/vdso/vdso.lds.S | 1 - 2 files changed, 2 deletions(-) diff --git a/arch/arm64/include/asm/vdso/getrandom.h b/arch/arm64/include/a= sm/vdso/getrandom.h index da1d58bbfabe..d9b9104d4ea1 100644 --- a/arch/arm64/include/asm/vdso/getrandom.h +++ b/arch/arm64/include/asm/vdso/getrandom.h @@ -6,7 +6,6 @@ #ifndef __ASSEMBLER__ =20 #include -#include #include =20 /** diff --git a/arch/arm64/kernel/vdso/vdso.lds.S b/arch/arm64/kernel/vdso/vds= o.lds.S index 52314be29191..6334ca0a7673 100644 --- a/arch/arm64/kernel/vdso/vdso.lds.S +++ b/arch/arm64/kernel/vdso/vdso.lds.S @@ -11,7 +11,6 @@ #include #include #include -#include #include #include =20 --=20 2.55.0 From nobody Fri Sep 25 19:20:30 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 34E3448C8CE; Wed, 9 Sep 2026 08:51:40 +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=1788943905; cv=none; b=YAutYKeoHS/mfWNNX+YtTWx6ZLMTKpOJOmKsihp7vI2vrVaXLpnYv1Q9e5PiM39ycvNHnZcLhR7WVnQStmJrv/Y3ryeAHvjraFephO8Ju2wQaLus9UAc4pZJqM80HPrExv8PR6CutsX99PSkFl72EH9FnufaGagipTm8pjtzklM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788943905; c=relaxed/simple; bh=WJuW0vHAzgVK65zYpMsMpkIoWVAhRqBIQ43ugL+Vfgo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=bM2U3r4LYn1tOZsj4L+ulD5XARPCJ8ZLAtH5EpwmoKQxSVOVDxDDH77BlzIh7e23c2o75gVbQWtPz08ICF1DMwdvJFLfcgg8Fr4w35oWSgvhoqy7OBCn95BBk//fLr7XpRUyVk31wn8G0o50qxwdfYji0ckXBWYJJnU4pZwuqN0= 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=JaOyz+Gf; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=y5gKHnSv; 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="JaOyz+Gf"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="y5gKHnSv" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1788943887; h=from:from: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=+BSSPIkVsfUiGZ/2/7JQoGktT3Bg/qW3vWeVl3H8t4I=; b=JaOyz+GffrY14/vqZR3mc3aRHefVc9sKFST/Y+iv6y2dWE5XkrXmA9ZJsAgqJ018f/vug2 cBMChuc7FaXyUAF9yQKOHxlkPemVJ32YoyN5tLBaH5C5wxOmAtxy0Ukobemx+5ORO7uFfy Wiu0MtImMa+hOKQRUZBdB84qZjgFlKRYR7h4fdWiycJ85XrjCvCyV1y6fITwXy11WldYgg +vgzkpMELO8vXyECyskLAnuY5vVpDRCTsaR+01bT+hpNKuUJVRHkC5wWfCgNEJWMjBkGqg t+9mVcjwwU/JEljjnrLJ3bJK/1yy+XyvUm48H3zRCFfkamQLKNoJ6UlylCYASQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1788943887; h=from:from: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=+BSSPIkVsfUiGZ/2/7JQoGktT3Bg/qW3vWeVl3H8t4I=; b=y5gKHnSvh3NyUEy73IKx6RfvsCL+Ha6mwmh698IzxBvPV1anfbtnSec1fGWt7Tg3vCMaSo l6Cb8RNPcUh7xvDA== Date: Wed, 09 Sep 2026 10:51:25 +0200 Subject: [PATCH 12/15] riscv/hwprobe: Include vdso/datapage.h Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260909-vdso-asm-generic-vsyscall-h-v1-12-63ae856cc659@linutronix.de> References: <20260909-vdso-asm-generic-vsyscall-h-v1-0-63ae856cc659@linutronix.de> In-Reply-To: <20260909-vdso-asm-generic-vsyscall-h-v1-0-63ae856cc659@linutronix.de> To: Andy Lutomirski , Thomas Gleixner , Vincenzo Frascino Cc: linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, loongarch@lists.linux.dev, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, sparclinux@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1788943875; l=814; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=WJuW0vHAzgVK65zYpMsMpkIoWVAhRqBIQ43ugL+Vfgo=; b=3v9PIQWIfY59Utoqf3u0a+2xyzC3K3qFiLXNZMe7AgOtEielmjn6RIPlrTTQkKqzrYA4P+N4f jrwA4Hzlo03Cus2D1tSaBop8ClV4dFKjXJ96j2IsAFgQehGy3G3Rb0w X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= The symbol vdso_k_arch_data is provided by vdso/datapage.h, which is currently not included explicitly. An upcoming refactoring will remove the currently used transitive inclusion. Add an explicit inclusion. Signed-off-by: Thomas Wei=C3=9Fschuh --- arch/riscv/kernel/sys_hwprobe.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/kernel/sys_hwprobe.c b/arch/riscv/kernel/sys_hwprob= e.c index bd6ca7d769da..0f42101ad935 100644 --- a/arch/riscv/kernel/sys_hwprobe.c +++ b/arch/riscv/kernel/sys_hwprobe.c @@ -18,6 +18,7 @@ #include #include #include +#include #include =20 =20 --=20 2.55.0 From nobody Fri Sep 25 19:20:30 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 7FE072D9EDC; Wed, 9 Sep 2026 08:51:41 +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=1788943908; cv=none; b=IDejS7njsb45mZfFssBTNJBytv1T3X2xS1krMgEjUTww7Ihu/INnsgpqklH0dzcjbeBd8UHmpkJPu/3/cak7cjcSwJYrDi3cYRvKIQT4bpT+Ze5hal4JM7uV7ZFqxrX5ZwasBy1to9Mfjkj0unO7lNKRcOCQY4ltdHmhMp3t5m0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788943908; c=relaxed/simple; bh=gna+NxAbuHUiPh7UeY3iJvOkIMhHRrEMbf8sWoWLNzc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=fHvMeoejwK4FL4lDSjBVHxvGwexgNzpvSCY3vnyZaOevzqUdEBrjjD5eFIVlhaKARxJJsZuspRTseQQEfAr2EZh4OfLgIO/FIuiu4Cqfnn1MtjS8yNI5ujj7iF9OR395ukP+Lg51cxdVPoSwKllVuDq7IiMGhhWgiwX5Anx1ywU= 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=YV80N30g; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=WnZhgM4C; 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="YV80N30g"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="WnZhgM4C" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1788943887; h=from:from: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=C8jERIZlzOiJ0igHK630ldoZDDzGvj3UyoNSXBhnm0Q=; b=YV80N30gtg3Qo0+Nn5ZL14Uc4rxWQ913cXwBr24SAORpArv0rT4pLXYRBZmiU1XhVedhtm 3gyANW09zc0AnJxdyhKpTxL570GrkaDpIprXpjRMCB0Q+lNtZiaZm58ZlxVzDicKRvrGpi w4/0MiHGowiYFT4LIjDgcSG2s9Rx8D2xwYHKUyVfl6NjAepsAWVAkrsjsiJ42saGd6Xbh9 yfPekIScgoESbt7to4o0Y8ZggYTV62CbRHIJ2AJl/mS+ulCdUu7WTvsp4tsyim+fNDyfJy xlknZiyieERW87XvXKMAzRCm5R0mZ3L/DYRFqdklDPcVzg0WpkAa41ZQaCp3MA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1788943887; h=from:from: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=C8jERIZlzOiJ0igHK630ldoZDDzGvj3UyoNSXBhnm0Q=; b=WnZhgM4C9TDIR2uFp2TfzuCBG6oPaXdRjbuiKfGJaM4UpnOVhuqvMp9qkQ5jtb3aWa2zG+ xJdxOHztclSdoICA== Date: Wed, 09 Sep 2026 10:51:26 +0200 Subject: [PATCH 13/15] vdso: Remove unnecessary vdso/vsyscall.h includes Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260909-vdso-asm-generic-vsyscall-h-v1-13-63ae856cc659@linutronix.de> References: <20260909-vdso-asm-generic-vsyscall-h-v1-0-63ae856cc659@linutronix.de> In-Reply-To: <20260909-vdso-asm-generic-vsyscall-h-v1-0-63ae856cc659@linutronix.de> To: Andy Lutomirski , Thomas Gleixner , Vincenzo Frascino Cc: linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, loongarch@lists.linux.dev, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, sparclinux@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1788943875; l=3977; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=gna+NxAbuHUiPh7UeY3iJvOkIMhHRrEMbf8sWoWLNzc=; b=ytf6AJeQ2RRzfTAaVL5jTvw60PTKQTaUNnPB+n+rtyAnSCDKsJxnzPm4sW6CzyPlgy4A/4sb6 frGknUkvvrgA53jsfF8DIulc1yisK5Evm8qLbONPtD1QywylGQrPYC4 X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= None of these files uses anything from the header. Remove the inclusion. Signed-off-by: Thomas Wei=C3=9Fschuh --- arch/arm/kernel/vdso.c | 1 - arch/arm64/kernel/vdso.c | 1 - arch/loongarch/kernel/vdso.c | 1 - arch/mips/kernel/vdso.c | 1 - arch/riscv/kernel/sys_hwprobe.c | 1 - arch/riscv/kernel/vdso.c | 1 - arch/s390/kernel/time.c | 1 - lib/vdso/getrandom.c | 3 --- lib/vdso/gettimeofday.c | 3 --- 9 files changed, 13 deletions(-) diff --git a/arch/arm/kernel/vdso.c b/arch/arm/kernel/vdso.c index e306d0c5a21c..7be871f5eb9e 100644 --- a/arch/arm/kernel/vdso.c +++ b/arch/arm/kernel/vdso.c @@ -23,7 +23,6 @@ #include #include #include -#include =20 #define MAX_SYMNAME 64 =20 diff --git a/arch/arm64/kernel/vdso.c b/arch/arm64/kernel/vdso.c index 592dd8668de4..50596dab23f9 100644 --- a/arch/arm64/kernel/vdso.c +++ b/arch/arm64/kernel/vdso.c @@ -22,7 +22,6 @@ #include #include #include -#include =20 #include #include diff --git a/arch/loongarch/kernel/vdso.c b/arch/loongarch/kernel/vdso.c index 8ce8159c10b9..1edc8fb720de 100644 --- a/arch/loongarch/kernel/vdso.c +++ b/arch/loongarch/kernel/vdso.c @@ -20,7 +20,6 @@ #include #include #include -#include #include #include =20 diff --git a/arch/mips/kernel/vdso.c b/arch/mips/kernel/vdso.c index 8165dd3fc1f8..8eb1760a8a9b 100644 --- a/arch/mips/kernel/vdso.c +++ b/arch/mips/kernel/vdso.c @@ -23,7 +23,6 @@ #include #include #include -#include =20 static_assert(VDSO_NR_PAGES =3D=3D __VDSO_PAGES); =20 diff --git a/arch/riscv/kernel/sys_hwprobe.c b/arch/riscv/kernel/sys_hwprob= e.c index 0f42101ad935..e1ad8671137d 100644 --- a/arch/riscv/kernel/sys_hwprobe.c +++ b/arch/riscv/kernel/sys_hwprobe.c @@ -19,7 +19,6 @@ #include #include #include -#include =20 =20 #define EXT_KEY(isa_arg, ext, pv, missing) \ diff --git a/arch/riscv/kernel/vdso.c b/arch/riscv/kernel/vdso.c index 9c2f5e442338..5666cec180ac 100644 --- a/arch/riscv/kernel/vdso.c +++ b/arch/riscv/kernel/vdso.c @@ -15,7 +15,6 @@ #include #include #include -#include =20 #define VVAR_SIZE (VDSO_NR_PAGES << PAGE_SHIFT) =20 diff --git a/arch/s390/kernel/time.c b/arch/s390/kernel/time.c index 161628f6906f..bca65bf1c8cb 100644 --- a/arch/s390/kernel/time.c +++ b/arch/s390/kernel/time.c @@ -40,7 +40,6 @@ #include #include #include -#include #include #include #include diff --git a/lib/vdso/getrandom.c b/lib/vdso/getrandom.c index 6ff46549281c..e0fa10bbefc9 100644 --- a/lib/vdso/getrandom.c +++ b/lib/vdso/getrandom.c @@ -16,9 +16,6 @@ #include #include =20 -/* Bring in default accessors */ -#include - #ifndef __arch_get_vdso_u_rng_data static __always_inline const struct vdso_rng_data *__arch_get_vdso_u_rng_d= ata(void) { diff --git a/lib/vdso/gettimeofday.c b/lib/vdso/gettimeofday.c index b867c2301d5c..728fed1ae52f 100644 --- a/lib/vdso/gettimeofday.c +++ b/lib/vdso/gettimeofday.c @@ -27,9 +27,6 @@ =20 #include =20 -/* Bring in default accessors */ -#include - #ifndef vdso_calc_ns =20 #ifdef VDSO_DELTA_NOMASK --=20 2.55.0 From nobody Fri Sep 25 19:20:30 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 962D0481640; Wed, 9 Sep 2026 08:51:42 +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=1788943912; cv=none; b=qwk8A5RK1aPcLCvjSWhJdIR43ALyBIxgMDA1I8kh5wkNnMDhIC9rWRa5sS3Q2QZeIm+XR62HOOIoaWDIwjysmV0MEFhbunZ5dlctz+KKtggk+0SaRWZWIlXkoOkwtEeVAh9221WrwIZofv+KDVIBtTCpAILqZTNRS4X8cyej9yc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788943912; c=relaxed/simple; bh=RN6cYJUEQdRxuBEqqYhIPB2SE0TZGxcBuEAXLBMYDtE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=tEBUr3bwIW7giD2MFYv6xAYbbUcT+p+SKcvir++lxLIvd2xl/hxAKmztNnpE7dL0llb4L/CmPVRAN39sMlEHSeKT1wZQF17680JEhfn8pyPnF6TCus+1HpDqcJhueT5kVo353h+C3ZbFLyNudaU6COtapHy2nN4sE33Fg0kBSoQ= 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=PBnltHou; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=OsR9+ePJ; 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="PBnltHou"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="OsR9+ePJ" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1788943888; h=from:from: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=JMVMS5fB9cOPA4POT3k9FrIUmWVPCjnIMj07aQx41TA=; b=PBnltHouqiLd0vZKnEktzgXmmVWj9E/rgINg+MiWTjeKITcztp+Zs/R13kZurmAKB598p4 kddIj8zs+mThxi0y1LOe5Ah2DoBWqyt7r6P+8YyxJlafdIhLoo6yaKWvWFbuwAnV8UJa9+ 2t63vt1DbGY4E1IaJujjBIhN1MeJAXY+mMvFRhspG6cpN1YGpcKx5eb8u+adsTk7vQ5JjG JFW2Uy4Vy3WyoTXTFZRKk1+zsRveZDTBJT4cK1mWfo7GCoDzh2Y0SX7/53JxGrJvO5p2Tq 3VdybOHbhTLd1PX2P6BepZhrOPUVFmlZshdcWktTvhB6XBpzkyhmyJ1t6NAwGA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1788943888; h=from:from: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=JMVMS5fB9cOPA4POT3k9FrIUmWVPCjnIMj07aQx41TA=; b=OsR9+ePJ4YG9lbDvs0TVFng2Lc1FxhDap7d8efI2GntHBjwnUbhw+GFc+EwXBu2WJtvwC4 bCPFZo80XHJHmfAA== Date: Wed, 09 Sep 2026 10:51:27 +0200 Subject: [PATCH 14/15] vdso: Add asm-generic/vdso/vsyscall.h Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260909-vdso-asm-generic-vsyscall-h-v1-14-63ae856cc659@linutronix.de> References: <20260909-vdso-asm-generic-vsyscall-h-v1-0-63ae856cc659@linutronix.de> In-Reply-To: <20260909-vdso-asm-generic-vsyscall-h-v1-0-63ae856cc659@linutronix.de> To: Andy Lutomirski , Thomas Gleixner , Vincenzo Frascino Cc: linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, loongarch@lists.linux.dev, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, sparclinux@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1788943875; l=4765; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=RN6cYJUEQdRxuBEqqYhIPB2SE0TZGxcBuEAXLBMYDtE=; b=d6YgCC9mOtzM/HCu/dlX+VOf6yWQ71CH6LOM9NRJDlKLcjm2on0tmi0kD6UBUtMzkFELguk6T 12bpP+ouE5+ALngtyStONC+dPoOfbs2V+mh5GeDN2fzMK207HnGAZQL X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= Most architectures' asm/vdso/vsyscall.h do not define any symbols. Add an empty asm-generic variant and replace the pointless architecture-specific copies. Signed-off-by: Thomas Wei=C3=9Fschuh --- arch/loongarch/include/asm/vdso/vsyscall.h | 11 ----------- arch/mips/include/asm/vdso/vsyscall.h | 13 ------------- arch/powerpc/include/asm/vdso/vsyscall.h | 11 ----------- arch/riscv/include/asm/vdso/vsyscall.h | 11 ----------- arch/s390/include/asm/vdso/vsyscall.h | 13 ------------- arch/sparc/include/asm/vdso/vsyscall.h | 6 ------ arch/x86/include/asm/vdso/vsyscall.h | 12 ------------ include/asm-generic/Kbuild | 1 + include/asm-generic/vdso/vsyscall.h | 0 9 files changed, 1 insertion(+), 77 deletions(-) diff --git a/arch/loongarch/include/asm/vdso/vsyscall.h b/arch/loongarch/in= clude/asm/vdso/vsyscall.h deleted file mode 100644 index db653780519d..000000000000 --- a/arch/loongarch/include/asm/vdso/vsyscall.h +++ /dev/null @@ -1,11 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ -#ifndef __ASM_VDSO_VSYSCALL_H -#define __ASM_VDSO_VSYSCALL_H - -#ifndef __ASSEMBLER__ - -#include - -#endif /* !__ASSEMBLER__ */ - -#endif /* __ASM_VDSO_VSYSCALL_H */ diff --git a/arch/mips/include/asm/vdso/vsyscall.h b/arch/mips/include/asm/= vdso/vsyscall.h deleted file mode 100644 index f01ab2e15c08..000000000000 --- a/arch/mips/include/asm/vdso/vsyscall.h +++ /dev/null @@ -1,13 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ -#ifndef __ASM_VDSO_VSYSCALL_H -#define __ASM_VDSO_VSYSCALL_H - -#include - -#ifndef __ASSEMBLER__ - -#include - -#endif /* !__ASSEMBLER__ */ - -#endif /* __ASM_VDSO_VSYSCALL_H */ diff --git a/arch/powerpc/include/asm/vdso/vsyscall.h b/arch/powerpc/includ= e/asm/vdso/vsyscall.h deleted file mode 100644 index 6a6510fa8217..000000000000 --- a/arch/powerpc/include/asm/vdso/vsyscall.h +++ /dev/null @@ -1,11 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ -#ifndef _ASM_POWERPC_VDSO_VSYSCALL_H -#define _ASM_POWERPC_VDSO_VSYSCALL_H - -#ifndef __ASSEMBLER__ - -#include - -#endif /* !__ASSEMBLER__ */ - -#endif /* _ASM_POWERPC_VDSO_VSYSCALL_H */ diff --git a/arch/riscv/include/asm/vdso/vsyscall.h b/arch/riscv/include/as= m/vdso/vsyscall.h deleted file mode 100644 index db653780519d..000000000000 --- a/arch/riscv/include/asm/vdso/vsyscall.h +++ /dev/null @@ -1,11 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ -#ifndef __ASM_VDSO_VSYSCALL_H -#define __ASM_VDSO_VSYSCALL_H - -#ifndef __ASSEMBLER__ - -#include - -#endif /* !__ASSEMBLER__ */ - -#endif /* __ASM_VDSO_VSYSCALL_H */ diff --git a/arch/s390/include/asm/vdso/vsyscall.h b/arch/s390/include/asm/= vdso/vsyscall.h deleted file mode 100644 index c74c307c320c..000000000000 --- a/arch/s390/include/asm/vdso/vsyscall.h +++ /dev/null @@ -1,13 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ -#ifndef __ASM_VDSO_VSYSCALL_H -#define __ASM_VDSO_VSYSCALL_H - -#ifndef __ASSEMBLER__ - -#include -#include -#include - -#endif /* !__ASSEMBLER__ */ - -#endif /* __ASM_VDSO_VSYSCALL_H */ diff --git a/arch/sparc/include/asm/vdso/vsyscall.h b/arch/sparc/include/as= m/vdso/vsyscall.h deleted file mode 100644 index ff62b291e4eb..000000000000 --- a/arch/sparc/include/asm/vdso/vsyscall.h +++ /dev/null @@ -1,6 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ - -#ifndef _ASM_SPARC_VDSO_VSYSCALL_H -#define _ASM_SPARC_VDSO_VSYSCALL_H - -#endif /* _ASM_SPARC_VDSO_VSYSCALL_H */ diff --git a/arch/x86/include/asm/vdso/vsyscall.h b/arch/x86/include/asm/vd= so/vsyscall.h deleted file mode 100644 index 65d10f4cc718..000000000000 --- a/arch/x86/include/asm/vdso/vsyscall.h +++ /dev/null @@ -1,12 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ -#ifndef __ASM_VDSO_VSYSCALL_H -#define __ASM_VDSO_VSYSCALL_H - -#ifndef __ASSEMBLER__ - -#include -#include - -#endif /* !__ASSEMBLER__ */ - -#endif /* __ASM_VDSO_VSYSCALL_H */ diff --git a/include/asm-generic/Kbuild b/include/asm-generic/Kbuild index 2bc00c67dc54..b7a388bef6ea 100644 --- a/include/asm-generic/Kbuild +++ b/include/asm-generic/Kbuild @@ -63,6 +63,7 @@ mandatory-y +=3D trace_clock.h mandatory-y +=3D uaccess.h mandatory-y +=3D unwind_user.h mandatory-y +=3D vdso/clocksource.h +mandatory-y +=3D vdso/vsyscall.h mandatory-y +=3D vermagic.h mandatory-y +=3D vga.h mandatory-y +=3D video.h diff --git a/include/asm-generic/vdso/vsyscall.h b/include/asm-generic/vdso= /vsyscall.h new file mode 100644 index 000000000000..e69de29bb2d1 --=20 2.55.0 From nobody Fri Sep 25 19:20:30 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 2778646F489; Wed, 9 Sep 2026 08:51:45 +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=1788943910; cv=none; b=P6l7fUATJsXzBGopVJtgkgBwgrSzzPsjlxMfkFRFXg09Mos84KT7vwmPVktMW/k1LdJUfXB349UvNBmGLJS0Zhb/isYDo0b74OKhnW4QQhMmfZ1QnHwJ3uYJ3JPd1QN3jHyVVG9Zjw4OPmO8PVR1tMe4yBuMN9dEB94S5IFIQx0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788943910; c=relaxed/simple; bh=C6Fh+EQTCyl+s4g26T56GGCWX2U0MtHr/51cTDgzY94=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=AuNZ9HqSfrq0aHrFG+HEcijd5MGJ9JHg4rVYKSGp9Sq76RY+MufF5UxXu8MXbF+KXNrNJ5TxPMHkCTlNABARxlrE/L0uPDgISvfoAsY/WOmgb54WjvyrK27/L84ZsVFRKwT9p0CxQiSZ5DD/dSwdqjI99to9D0p+sLR7qtBcfCA= 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=n2EgP00A; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=xg6fz2Oa; 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="n2EgP00A"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="xg6fz2Oa" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1788943889; h=from:from: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=M2FjQtlKuBRuzu4eO4IKv/TzmPoMG616xBuEpp/c8bc=; b=n2EgP00AGy2SQ4LhsPxtPFcrw12hi7WXrNw754S6JRZX1HFzsFe/pseBtP/fjyxUDKlDOn /Fr8WjmdlV9A0IGs3lUqPsFYY90n0IUQO5Hj6p21mT64kGEeGvGWuuTZPU5n496dF5M7Ms bcj2yDheQqOg+7JhGM0FJ/PojVqBQlQW3GT/MdnO6PBZU8yiPKLKbUCbTSyjQaawwkWvOc ntK+a7n4xZNVoAH7QQ2Ttqq2cchue1vDh0sAmhWeszDfCSPhAGfnZTc/nOs1yEvWMAnfNq /wvAMUyqxwWoNSKxuUocyo7gSfJX3HzwHWhwoB/5kRRfZSdUz+uRcSaJSayGqQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1788943889; h=from:from: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=M2FjQtlKuBRuzu4eO4IKv/TzmPoMG616xBuEpp/c8bc=; b=xg6fz2OaJ/Xk4FVyNOThVXZ9GzDXOqKv0ZM2svim1anJaDd8tHxGt6Dcu201EiLHS+ELJL /Qm97XTr0L3JARCQ== Date: Wed, 09 Sep 2026 10:51:28 +0200 Subject: [PATCH 15/15] vdso: Remove __ASSEMBLER__ guards from vsyscall.h Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260909-vdso-asm-generic-vsyscall-h-v1-15-63ae856cc659@linutronix.de> References: <20260909-vdso-asm-generic-vsyscall-h-v1-0-63ae856cc659@linutronix.de> In-Reply-To: <20260909-vdso-asm-generic-vsyscall-h-v1-0-63ae856cc659@linutronix.de> To: Andy Lutomirski , Thomas Gleixner , Vincenzo Frascino Cc: linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, loongarch@lists.linux.dev, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, sparclinux@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1788943875; l=1972; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=C6Fh+EQTCyl+s4g26T56GGCWX2U0MtHr/51cTDgzY94=; b=/pF3AoTQzmD4pEP7pZqPjpk1T5eSdh8cNjifxUmXeKgAF4pL9mdehQYC/Qro0bgZ/bG3BCQbX AwbkyNhcCofDs37bRkBnMPJkPmAKCpz/Hs/RJAXHs0uvQGQmO5ufIiW X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= These headers are only used from regular C code. Remove the unnecessary guards. Signed-off-by: Thomas Wei=C3=9Fschuh --- arch/arm/include/asm/vdso/vsyscall.h | 4 ---- arch/arm64/include/asm/vdso/vsyscall.h | 4 ---- include/vdso/vsyscall.h | 4 ---- 3 files changed, 12 deletions(-) diff --git a/arch/arm/include/asm/vdso/vsyscall.h b/arch/arm/include/asm/vd= so/vsyscall.h index 14f2ea9d8640..b97dda100e52 100644 --- a/arch/arm/include/asm/vdso/vsyscall.h +++ b/arch/arm/include/asm/vdso/vsyscall.h @@ -2,8 +2,6 @@ #ifndef __ASM_VDSO_VSYSCALL_H #define __ASM_VDSO_VSYSCALL_H =20 -#ifndef __ASSEMBLY__ - #include #include =20 @@ -14,6 +12,4 @@ void __arch_sync_vdso_time_data(struct vdso_time_data *vd= ata) } #define __arch_sync_vdso_time_data __arch_sync_vdso_time_data =20 -#endif /* !__ASSEMBLY__ */ - #endif /* __ASM_VDSO_VSYSCALL_H */ diff --git a/arch/arm64/include/asm/vdso/vsyscall.h b/arch/arm64/include/as= m/vdso/vsyscall.h index 7d9d6bdd58b2..7c46c37fd36f 100644 --- a/arch/arm64/include/asm/vdso/vsyscall.h +++ b/arch/arm64/include/asm/vdso/vsyscall.h @@ -2,8 +2,6 @@ #ifndef __ASM_VDSO_VSYSCALL_H #define __ASM_VDSO_VSYSCALL_H =20 -#ifndef __ASSEMBLER__ - #include =20 #define VDSO_PRECISION_MASK ~(0xFF00ULL<<48) @@ -19,6 +17,4 @@ void __arch_update_vdso_clock(struct vdso_clock *vc) } #define __arch_update_vdso_clock __arch_update_vdso_clock =20 -#endif /* !__ASSEMBLER__ */ - #endif /* __ASM_VDSO_VSYSCALL_H */ diff --git a/include/vdso/vsyscall.h b/include/vdso/vsyscall.h index 29dd4e097220..af62bbf04eac 100644 --- a/include/vdso/vsyscall.h +++ b/include/vdso/vsyscall.h @@ -2,10 +2,6 @@ #ifndef __VDSO_VSYSCALL_H #define __VDSO_VSYSCALL_H =20 -#ifndef __ASSEMBLER__ - #include =20 -#endif /* !__ASSEMBLER__ */ - #endif /* __VDSO_VSYSCALL_H */ --=20 2.55.0