]> www.infradead.org Git - users/willy/linux.git/commit
vdso: Add generic random data storage
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Tue, 4 Feb 2025 12:05:38 +0000 (13:05 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 21 Feb 2025 08:54:01 +0000 (09:54 +0100)
commit51d6ca373f459fa6c91743e14ae69854d844aa38
tree72ff45b96b2ce8938aa8676fcd5a6ac7fa5791e7
parentdf7fcbefa71090a276fb841ffe19b8e5f12b4767
vdso: Add generic random data storage

Extend the generic vDSO data storage with a page for the random state data.
The random state data is stored in a dedicated page, as the existing
storage page is only meant for time-related, time-namespace-aware data.
This simplifies to access logic to not need to handle time namespaces
anymore and also frees up more space in the time-related page.

In case further generic vDSO data store is required it can be added to
the random state page.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20250204-vdso-store-rng-v3-6-13a4669dfc8c@linutronix.de
drivers/char/random.c
include/asm-generic/vdso/vsyscall.h
include/vdso/datapage.h
lib/vdso/datastore.c
lib/vdso/getrandom.c