• Torsten Duwe's avatar
    hwrng: create filler thread · be4000bc
    Torsten Duwe authored
    This can be viewed as the in-kernel equivalent of hwrngd;
    like FUSE it is a good thing to have a mechanism in user land,
    but for some reasons (simplicity, secrecy, integrity, speed)
    it may be better to have it in kernel space.
    
    This patch creates a thread once a hwrng registers, and uses
    the previously established add_hwgenerator_randomness() to feed
    its data to the input pool as long as needed. A derating factor
    is used to bias the entropy estimation and to disable this
    mechanism entirely when set to zero.
    Signed-off-by: default avatarTorsten Duwe <duwe@suse.de>
    Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
    Acked-by: default avatarH. Peter Anvin <hpa@zytor.com>
    be4000bc
core.c 9.22 KB