+ uml-use-get_random_bytes-after-random-pool-is-seeded.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     uml: use get_random_bytes() after random pool is seeded
has been added to the -mm tree.  Its filename is
     uml-use-get_random_bytes-after-random-pool-is-seeded.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: uml: use get_random_bytes() after random pool is seeded
From: Jeff Dike <jdike@xxxxxxxxxxx>

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: Jeff Dike <jdike@xxxxxxxxxxx>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@xxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 arch/um/drivers/daemon_kern.c            |    2 +-
 arch/um/drivers/mcast_kern.c             |    2 +-
 arch/um/drivers/pcap_kern.c              |    2 +-
 arch/um/drivers/slip_kern.c              |    2 +-
 arch/um/drivers/slirp_kern.c             |    2 +-
 arch/um/os-Linux/drivers/ethertap_kern.c |    2 +-
 arch/um/os-Linux/drivers/tuntap_kern.c   |    2 +-
 7 files changed, 7 insertions(+), 7 deletions(-)

diff -puN arch/um/drivers/daemon_kern.c~uml-use-get_random_bytes-after-random-pool-is-seeded arch/um/drivers/daemon_kern.c
--- a/arch/um/drivers/daemon_kern.c~uml-use-get_random_bytes-after-random-pool-is-seeded
+++ a/arch/um/drivers/daemon_kern.c
@@ -98,4 +98,4 @@ static int register_daemon(void)
 	return 0;
 }
 
-__initcall(register_daemon);
+late_initcall(register_daemon);
diff -puN arch/um/drivers/mcast_kern.c~uml-use-get_random_bytes-after-random-pool-is-seeded arch/um/drivers/mcast_kern.c
--- a/arch/um/drivers/mcast_kern.c~uml-use-get_random_bytes-after-random-pool-is-seeded
+++ a/arch/um/drivers/mcast_kern.c
@@ -127,4 +127,4 @@ static int register_mcast(void)
 	return 0;
 }
 
-__initcall(register_mcast);
+late_initcall(register_mcast);
diff -puN arch/um/drivers/pcap_kern.c~uml-use-get_random_bytes-after-random-pool-is-seeded arch/um/drivers/pcap_kern.c
--- a/arch/um/drivers/pcap_kern.c~uml-use-get_random_bytes-after-random-pool-is-seeded
+++ a/arch/um/drivers/pcap_kern.c
@@ -109,4 +109,4 @@ static int register_pcap(void)
 	return 0;
 }
 
-__initcall(register_pcap);
+late_initcall(register_pcap);
diff -puN arch/um/drivers/slip_kern.c~uml-use-get_random_bytes-after-random-pool-is-seeded arch/um/drivers/slip_kern.c
--- a/arch/um/drivers/slip_kern.c~uml-use-get_random_bytes-after-random-pool-is-seeded
+++ a/arch/um/drivers/slip_kern.c
@@ -95,4 +95,4 @@ static int register_slip(void)
 	return 0;
 }
 
-__initcall(register_slip);
+late_initcall(register_slip);
diff -puN arch/um/drivers/slirp_kern.c~uml-use-get_random_bytes-after-random-pool-is-seeded arch/um/drivers/slirp_kern.c
--- a/arch/um/drivers/slirp_kern.c~uml-use-get_random_bytes-after-random-pool-is-seeded
+++ a/arch/um/drivers/slirp_kern.c
@@ -119,4 +119,4 @@ static int register_slirp(void)
 	return 0;
 }
 
-__initcall(register_slirp);
+late_initcall(register_slirp);
diff -puN arch/um/os-Linux/drivers/ethertap_kern.c~uml-use-get_random_bytes-after-random-pool-is-seeded arch/um/os-Linux/drivers/ethertap_kern.c
--- a/arch/um/os-Linux/drivers/ethertap_kern.c~uml-use-get_random_bytes-after-random-pool-is-seeded
+++ a/arch/um/os-Linux/drivers/ethertap_kern.c
@@ -105,4 +105,4 @@ static int register_ethertap(void)
 	return 0;
 }
 
-__initcall(register_ethertap);
+late_initcall(register_ethertap);
diff -puN arch/um/os-Linux/drivers/tuntap_kern.c~uml-use-get_random_bytes-after-random-pool-is-seeded arch/um/os-Linux/drivers/tuntap_kern.c
--- a/arch/um/os-Linux/drivers/tuntap_kern.c~uml-use-get_random_bytes-after-random-pool-is-seeded
+++ a/arch/um/os-Linux/drivers/tuntap_kern.c
@@ -90,4 +90,4 @@ static int register_tuntap(void)
 	return 0;
 }
 
-__initcall(register_tuntap);
+late_initcall(register_tuntap);
_

Patches currently in -mm which might be from jdike@xxxxxxxxxxx are

x86_64-i386-kernel-mode-faults-pollute-current-thead.patch
uml-include-stddefh-correctly.patch
uml-include-asm-pageh-in-order-to-get-page_shift.patch
uml-size-register-files-correctly.patch
uml-use-get_random_bytes-after-random-pool-is-seeded.patch
uml-fix-prototypes.patch
tty-signal-tty-locking.patch
uml-add-generic-bug-support.patch
add-process_session-helper-routine-deprecate-old-field-fix-warnings-fix.patch
tty-switch-to-ktermios-uml-fix.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux