diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2024-09-05 19:17:24 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2024-09-13 17:28:35 +0200 |
commit | 2aec90036dcd2cb7047a6e28625fba6c64756665 (patch) | |
tree | f3d2dfde755468d3ea9737bce23ff847a2cb4e7f /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 33ffa2dd0de28ded1fa856b3fb9cbf2b873d7dd0 (diff) |
selftests: vDSO: ensure vgetrandom works in a time namespace
After verifying that vDSO getrandom does work, which ensures that the
RNG is initialized, test to see if it also works inside of a time
namespace. This is important to test, because the vvar pages get
swizzled around there. If the arch code isn't careful, the RNG will
appear uninitialized inside of a time namespace.
Because broken code makes the RNG appear uninitialized, test that
everything works by issuing a call to vgetrandom from a fork in a time
namespace, and use ptrace to ensure that the actual syscall getrandom
doesn't get called. If it doesn't get called, then the test succeeds.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions