From nobody Fri Jul 24 21:29:49 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 2C86E431A54 for ; Fri, 24 Jul 2026 13:40:32 +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=1784900434; cv=none; b=rcvpttKhadOIqTkW/ad5WdM/OIB3XscJjCs32hPcc3AxNq8jCg1Y5Nq7F/fmQ+gzOkdN+4x/hJhZlvJkpUf1y2Zxsv/dSUMfZd9zgeIOoTQLFbRuIw9bew9LNFDsT9yfpcvRqFKyGQH/mG4Qq3DzFR0vWeCHKPT1HTV+eL2sDMc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784900434; c=relaxed/simple; bh=r1V5ITAGBOdErHOMocGK0F+vzJJIfy6rH8n7DHCBXv0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=QynIDHKqqSRsZDWKZgJzY44cqm/DfntOYvdVGDWpiCKW/WSQPelSbD5aRD70DQv/Ppy8huKH8MlwQ20YQ7cUj05eiMnsGWfLFOncFFYFca33kLRxqXz7O3cvHfEfchZYJwl2Q1vZJqmrAGZSiUUCSSz8DYY7ofOLy81LBxdxkis= 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=acq3qd1O; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=D2wQYkOL; 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="acq3qd1O"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="D2wQYkOL" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1784900430; 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; bh=DzN5ZJZ9i5JTiJV+W97Cb3w57smqPfUSJZ0ZfqM5qlo=; b=acq3qd1OZ8qPJHdf3QvjVKUjA6wIlwEEpSwEzpfds6hn5z0z8UKSyaLLlbEsIUJUaICGX5 ACc+eWuwEC+V1U0CSa4z+XsXSCl5sd7md9UE/mr7k3mAmRRdhomBgdwsYnn4Rvx46wt80b lO9FGvw2w5Sxu8BURAuHBWJIFA/9FUSw/JjmE8vryDmBcLLvlfbCfzdml6htdVEqoVZQep A3uhKSiLxIg932m2UAShaodXpslIaXHvB3r6MI1pXdWfWm8VLYs6x6r/OelpB9EQS4aNfA ZZ4ZSivb/sP2gbXmWt+A+ZskR7XXlLFhY7znjXZDP9LOwEtp9C0Ka/WGzMncwg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1784900430; 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; bh=DzN5ZJZ9i5JTiJV+W97Cb3w57smqPfUSJZ0ZfqM5qlo=; b=D2wQYkOLjJ9smwNs+w+/Uy1b4OBSH/HV2Pdy9tUhZ0rJScWpEdYd2f3ka9aHekoyFzdgPs CENP8IF3qI58X3Aw== Date: Fri, 24 Jul 2026 15:40:30 +0200 Subject: [PATCH] random: vDSO: Drop custom PAGE_SIZE definitions 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: <20260724-vdso-random-page-size-v1-1-e69283d36b2f@linutronix.de> X-B4-Tracking: v=1; b=H4sIAAAAAAAC/x2MywqAIBAAf0X23IIJPehXooPmWntIxYWIon9PO g7DzANChUlgUg8UOlk4xQpto2DdbdwI2VcGo02vB6Px9JKw2OjTgdlWL3wTUhid6UJwbiSobS4 U+Pq/8/K+H7qPrKFnAAAA X-Change-ID: 20260720-vdso-random-page-size-ef8b25ffbb8e To: Andy Lutomirski , Thomas Gleixner , Vincenzo Frascino , Theodore Ts'o , "Jason A. Donenfeld" Cc: linux-kernel@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1784900430; l=1391; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=r1V5ITAGBOdErHOMocGK0F+vzJJIfy6rH8n7DHCBXv0=; b=RBgmYpDq9ojsjhXon8//hapcKMnD1j1XfanpCk5QOSFttIWbsJZtBIcjQ/f3iDMsMom6IXEu4 nyqIzShxjV0BvFpCQMFnfgahJikcCx3l0flJoFWNBMQv4SvIHayoH0V X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= These custom definitions where added in commit 7f053812dab3 ("random: vDSO: minimize and simplify header includes") to avoid pulling in non-vDSO-safe headers from linux/page.h. Today we have vdso/page.h which provides these definitions for the vDSO. Use vdso/page.h instead. Signed-off-by: Thomas Wei=C3=9Fschuh --- lib/vdso/getrandom.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/vdso/getrandom.c b/lib/vdso/getrandom.c index 7e29005aa208..2851afa9154f 100644 --- a/lib/vdso/getrandom.c +++ b/lib/vdso/getrandom.c @@ -8,6 +8,7 @@ #include #include #include +#include #include #include #include @@ -18,11 +19,6 @@ /* Bring in default accessors */ #include =20 -#undef PAGE_SIZE -#undef PAGE_MASK -#define PAGE_SIZE (1UL << CONFIG_PAGE_SHIFT) -#define PAGE_MASK (~(PAGE_SIZE - 1)) - #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); \ --- base-commit: dc59e4fea9d83f03bad6bddf3fa2e52491777482 change-id: 20260720-vdso-random-page-size-ef8b25ffbb8e Best regards, -- =20 Thomas Wei=C3=9Fschuh