Received: with ECARTIS (v1.0.0; list netdev); Mon, 11 Aug 2003 09:49:35 -0700 (PDT) Received: from lacrosse.corp.redhat.com (pix-525-pool.redhat.com [66.187.233.200]) by oss.sgi.com (8.12.9/8.12.9) with SMTP id h7BGnRFl016953 for ; Mon, 11 Aug 2003 09:49:28 -0700 Received: from tetrachloride (davej.cipe.redhat.com [10.0.1.164]) by lacrosse.corp.redhat.com (8.11.6/8.9.3) with ESMTP id h7BGnQK22570 for ; Mon, 11 Aug 2003 12:49:26 -0400 Received: from davej by tetrachloride with local (Exim 3.36 #1 (Debian)) id 19mFqr-00068Q-00 for ; Mon, 11 Aug 2003 17:48:57 +0100 To: netdev@oss.sgi.com From: davej@redhat.com Subject: [PATCH] ipv4 reuses freed mem Message-Id: Date: Mon, 11 Aug 2003 17:48:57 +0100 X-archive-position: 4723 X-ecartis-version: Ecartis v1.0.0 Sender: netdev-bounce@oss.sgi.com Errors-to: netdev-bounce@oss.sgi.com X-original-sender: davej@redhat.com Precedence: bulk X-list: netdev 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: */