8

ASLR affected by entropy available on Linux?

view full story
linux-howto

http://stackoverflow.com – It is mentioned in the kernel source in random.c that get_random_int is "Similar to urandom but with the goal of minimal entropy pool depletion.". However, where (and how) does get_random_int interact with the entropy pool? Now, urandom actually calls extract_entropy_user, but I don't see anything similar to that in get_random_int. It seems that get_random_int uses its own sources of entropy (unrelated to keyboard, mouse and disk activity): hash[0] += current->pid + jiffies + get_cycles(); and does not care about (nor update) the state of the entropy available to the system in general? (HowTos)