ipv4 reuses freed mem
Subsystems (3)
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
@@ -125,14 +125,14 @@ int ic_proto_enabled __initdata = 0int 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: */
David S. Miller
AppliedQuoted 2 lines · On Mon, 11 Aug 2003 17:48:57 +0100 [email protected] wrote:
cat
/proc/net/pnpwill return garbage, as the fields it dumps are initdata.
Applied, thanks David.