UML - Use get_random_bytes after random pool is seeded
PATCH 4/4 UML - Use get_random_bytes after random pool is seeded
When the UML network driver generates random MACs for its devices, it was possible for a number of UMLs to get the same MACs because the ethernet initialization was done before the random pool was properly seeded.
This patch moves the initialization later so that it gets better randomness.
arch/um/drivers/daemon_kern.c +1 -1
@@ -98,4 +98,4 @@ static int register_daemon(void)return 0 ; } -__initcall (register_daemon); +late_initcall (register_daemon);
arch/um/drivers/mcast_kern.c +1 -1
@@ -127,4 +127,4 @@ static int register_mcast(void)return 0 ; } -__initcall (register_mcast); +late_initcall (register_mcast);
arch/um/drivers/pcap_kern.c +1 -1
@@ -109,4 +109,4 @@ static int register_pcap(void)return 0 ; } -__initcall (register_pcap); +late_initcall (register_pcap);
arch/um/drivers/slip_kern.c +1 -1
@@ -95,4 +95,4 @@ static int register_slip(void)return 0 ; } -__initcall (register_slip); +late_initcall (register_slip);
arch/um/drivers/slirp_kern.c +1 -1
@@ -119,4 +119,4 @@ static int register_slirp(void)return 0 ; } -__initcall (register_slirp); +late_initcall (register_slirp);
arch/um/os-Linux/drivers/ethertap_kern.c +1 -1
@@ -105,4 +105,4 @@ static int register_ethertap(void)return 0 ; } -__initcall (register_ethertap); +late_initcall (register_ethertap);
arch/um/os-Linux/drivers/tuntap_kern.c +1 -1
@@ -90,4 +90,4 @@ static int register_tuntap(void)return 0 ; } -__initcall (register_tuntap); +late_initcall (register_tuntap);
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel