[PATCH] ipv4 reuses freed mem

STALE8413d

2 messages, 2 authors, 2003-08-12 · open the first message on its own page

[PATCH] ipv4 reuses freed mem

From: <hidden>
Date: 2003-08-11 16:48:57

cat /proc/net/pnp will return garbage, as the fields it
dumps are initdata.

diff -urpN --exclude-from=/home/davej/.exclude bk-linus/net/ipv4/ipconfig.c linux-2.5/net/ipv4/ipconfig.c
--- bk-linus/net/ipv4/ipconfig.c	2003-07-10 01:02:21.000000000 +0100
+++ linux-2.5/net/ipv4/ipconfig.c	2003-08-09 16:08:13.000000000 +0100
@@ -125,14 +125,14 @@ int ic_proto_enabled __initdata = 0
 
 int ic_host_name_set __initdata = 0;		/* Host name set by us? */
 
-u32 ic_myaddr __initdata = INADDR_NONE;		/* My IP address */
-u32 ic_netmask __initdata = INADDR_NONE;	/* Netmask for local subnet */
-u32 ic_gateway __initdata = INADDR_NONE;	/* Gateway IP address */
+u32 ic_myaddr = INADDR_NONE;		/* My IP address */
+u32 ic_netmask = INADDR_NONE;	/* Netmask for local subnet */
+u32 ic_gateway = INADDR_NONE;	/* Gateway IP address */
 
-u32 ic_servaddr __initdata = INADDR_NONE;	/* Boot server IP address */
+u32 ic_servaddr = INADDR_NONE;	/* Boot server IP address */
 
-u32 root_server_addr __initdata = INADDR_NONE;	/* Address of NFS server */
-u8 root_server_path[256] __initdata = { 0, };	/* Path to mount as root */
+u32 root_server_addr = INADDR_NONE;	/* Address of NFS server */
+u8 root_server_path[256] = { 0, };	/* Path to mount as root */
 
 /* Persistent data: */
 

Re: [PATCH] ipv4 reuses freed mem

From: David S. Miller <hidden>
Date: 2003-08-12 05:29:24

On Mon, 11 Aug 2003 17:48:57 +0100
davej@redhat.com wrote:
cat /proc/net/pnp will return garbage, as the fields it
dumps are initdata.
Applied, thanks David.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help