aboutsummaryrefslogtreecommitdiff
path: root/resolv/gai_suspend.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2024-12-15 17:05:25 +0100
committerFlorian Weimer <fweimer@redhat.com>2024-12-15 17:05:25 +0100
commitb933e5cef63a6c136fe57de29eba7abc51b678de (patch)
treea346c92ed070ec83a7cd97e95133e5d8d84360c3 /resolv/gai_suspend.c
parent6f5e1e4e98d66fd367f9d9c5ddc5947bfadda26b (diff)
downloadglibc-b933e5cef63a6c136fe57de29eba7abc51b678de.zip
glibc-b933e5cef63a6c136fe57de29eba7abc51b678de.tar.gz
glibc-b933e5cef63a6c136fe57de29eba7abc51b678de.tar.bz2
Linux: Check for 0 return value from vDSO getrandom probe
As of Linux 6.13, there is no code in the vDSO that declines this initialization request with the special ~0UL state size. If the vDSO has the function, the call succeeds and returns 0. It's expected that the code would follow the “a negative value indicating an error” convention, as indicated in the __cvdso_getrandom_data function comment, so that INTERNAL_SYSCALL_ERROR_P on glibc's side would return true. This commit changes the commit to check for zero to indicate success instead, which covers potential future non-zero success return values and error returns. Fixes commit 4f5704ea347e52ac3f272d1341da10aed6e9973e ("powerpc: Use correct procedure call standard for getrandom vDSO call (bug 32440)").
Diffstat (limited to 'resolv/gai_suspend.c')
0 files changed, 0 insertions, 0 deletions