1
linux/lib/vdso
Yann Droneaud 28f5df210d random: vDSO: reject unknown getrandom() flags
Like the getrandom() syscall, vDSO getrandom() must also reject unknown
flags. [1]

It would be possible to return -EINVAL from vDSO itself, but in the
possible case that a new flag is added to getrandom() syscall in the
future, it would be easier to get the behavior from the syscall, instead
of erroring until the vDSO is extended to support the new flag or
explicitly falling back.

[1] Designing the API: Planning for Extension
    https://docs.kernel.org/process/adding-syscalls.html#designing-the-api-planning-for-extension

Signed-off-by: Yann Droneaud <yann@droneaud.fr>
[Jason: reworded commit message]
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2024-08-26 09:58:52 +02:00
..
getrandom.c random: vDSO: reject unknown getrandom() flags 2024-08-26 09:58:52 +02:00
gettimeofday.c vdso/gettimeofday: Clarify comment about open coded function 2024-07-03 21:27:03 +02:00
Kconfig random: introduce generic vDSO getrandom() implementation 2024-07-19 20:22:12 +02:00
Makefile