Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8210fd2a authored by Jeff Dike's avatar Jeff Dike Committed by Linus Torvalds
Browse files

[PATCH] 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.

Signed-off-by: default avatarJeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent e46962fd
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -98,4 +98,4 @@ static int register_daemon(void)
	return 0;
	return 0;
}
}


__initcall(register_daemon);
late_initcall(register_daemon);
+1 −1
Original line number Original line Diff line number Diff line
@@ -127,4 +127,4 @@ static int register_mcast(void)
	return 0;
	return 0;
}
}


__initcall(register_mcast);
late_initcall(register_mcast);
+1 −1
Original line number Original line Diff line number Diff line
@@ -109,4 +109,4 @@ static int register_pcap(void)
	return 0;
	return 0;
}
}


__initcall(register_pcap);
late_initcall(register_pcap);
+1 −1
Original line number Original line Diff line number Diff line
@@ -95,4 +95,4 @@ static int register_slip(void)
	return 0;
	return 0;
}
}


__initcall(register_slip);
late_initcall(register_slip);
+1 −1
Original line number Original line Diff line number Diff line
@@ -119,4 +119,4 @@ static int register_slirp(void)
	return 0;
	return 0;
}
}


__initcall(register_slirp);
late_initcall(register_slirp);
Loading