• Jason A. Donenfeld's avatar
    ceph: ensure RNG is seeded before using · ae5b806a
    Jason A. Donenfeld authored
    Ceph uses the RNG for various nonce generations, and it shouldn't accept
    using bad randomness. So, we wait for the RNG to be properly seeded. We
    do this by calling wait_for_random_bytes() in a function that is
    certainly called in process context, early on, so that all subsequent
    calls to get_random_bytes are necessarily acceptable.
    Signed-off-by: default avatarJason A. Donenfeld <Jason@zx2c4.com>
    Cc: Ilya Dryomov <idryomov@gmail.com>
    Cc: "Yan, Zheng" <zyan@redhat.com>
    Cc: Sage Weil <sage@redhat.com>
    Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
    ae5b806a
ceph_common.c 18.9 KB