Skip to contentSkip to conversation

ipv4 reuses freed mem

PATCH Applied [email protected] 2 participants 2 messages Aug 11, 2003 – Aug 12, 2003

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ipv4 reuses freed mem

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

net/ipv4/ipconfig.c +6 -6
diff -urpN --exclude-from=/home/davej/.exclude bk-linus/net/ipv4/ipconfig.c linux-2.5/net/ipv4/ipconfig.c
@@ -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: */
 
#1 lore raw
Quoted 2 lines · On Mon, 11 Aug 2003 17:48:57 +0100 [email protected] wrote:

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

Applied, thanks David.