From 4f5704ea347e52ac3f272d1341da10aed6e9973e Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Tue, 10 Dec 2024 16:17:06 +0100 Subject: powerpc: Use correct procedure call standard for getrandom vDSO call (bug 32440) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A plain indirect function call does not work on POWER because success and failure are signaled through a flag register, and not via the usual Linux negative return value convention. This has potential security impact, in two ways: the return value could be out of bounds (EAGAIN is 11 on powerpc6le), and no random bytes have been written despite the non-error return value. Fixes commit 461cab1de747f3842f27a5d24977d78d561d45f9 ("linux: Add support for getrandom vDSO"). Reported-by: Ján Stanček Reviewed-by: Carlos O'Donell --- stdlib/Makefile | 1 + 1 file changed, 1 insertion(+) (limited to 'stdlib/Makefile') diff --git a/stdlib/Makefile b/stdlib/Makefile index 370cfa57aa..178151a64f 100644 --- a/stdlib/Makefile +++ b/stdlib/Makefile @@ -281,6 +281,7 @@ tests := \ tst-getenv-thread \ tst-getenv-unsetenv \ tst-getrandom \ + tst-getrandom-errno \ tst-getrandom2 \ tst-labs \ tst-limits \ -- cgit v1.2.3