• J
    ceph: ensure RNG is seeded before using · ae5b806a
    Jason A. Donenfeld 提交于
    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: NJason 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: NTheodore Ts'o <tytso@mit.edu>
    ae5b806a
ceph_common.c 18.9 KB