Opps with netstat and 1.3.17.

Michael H. Price II (mhp1@Ra.MsState.Edu)
Thu, 10 Aug 1995 12:51:08 -0500


Everytime I boot linux 1.3.17 and run netstat I get the following oops:

Aug 10 12:30:13 Sitrom kernel: Unable to handle kernel NULL pointer dereference at virtual address c000000c
Aug 10 12:30:13 Sitrom kernel: current->tss.cr3 = 00f87000, jr3 = 00f87000
Aug 10 12:30:13 Sitrom kernel: *pde = 00102067
Aug 10 12:30:13 Sitrom kernel: *pte = 00000027
Aug 10 12:30:13 Sitrom kernel: Oops: 0000
Aug 10 12:30:13 Sitrom kernel: EIP: 0010:00152159
Aug 10 12:30:13 Sitrom kernel: EFLAGS: 00010206
Aug 10 12:30:13 Sitrom kernel: eax: 00000000 ebx: 001a3d44 ecx: 00000003 edx: 001a3ebc
Aug 10 12:30:13 Sitrom kernel: esi: 0103a460 edi: 00f74f68 ebp: 00000003 esp: 00f74ef0
Aug 10 12:30:13 Sitrom kernel: ds: 0018 es: 0018 fs: 002b gs: 002b ss: 0018
Aug 10 12:30:13 Sitrom kernel: Process netstat (pid: 89, process nr: 16, stackpage=00f74000)
Aug 10 12:30:13 Sitrom kernel: Stack: 0103a460 00000001 00f74f68 00000003 00123f69 0103a460 00ef500a 00000003
Aug 10 12:30:13 Sitrom kernel: 00f74f68 0103a460 00000001 000081a4 00f74f9c 00000000 0012441c 0103a460
Aug 10 12:30:13 Sitrom kernel: 00ef500a 00000003 00f74f68 00fe1a50 00000003 0800e480 bffff854 00f74f50
Aug 10 12:30:13 Sitrom kernel: Call Trace: 00123f69 0012441c 0016cbe5 0011ad7e 0011ae8d 0010a2eb 0010a129
Aug 10 12:30:13 Sitrom kernel: Code: 83 78 0c 00 75 b5 eb 8d 90 90 90 b8 fe ff ff ff 5b 5e 5f 5d

00152090 T proc_net_init
001520bc t proc_lookupnet
00152170 t proc_readnetdir
001521fc t proc_readnet

Above is a little section of my System.map file to show the EIP value. If
I boot 1.3.15 this does not happen. Boot 1.3.17 and it happens again. I
use gcc 2.7.0, libc 5.2.5, latest ld.so/binutils/etc. Kernel and netstat
binary compiled in elf. netstat is from latest 1.3.6 net-tools beta.

Hope I gave enough information.

Michael

P.S. Here's how I have my kernel configured just in case you need it.
#
# Automatically generated make config: don't edit
#

#
# General setup
#
# CONFIG_MATH_EMULATION is not set
CONFIG_BLK_DEV_FD=y
CONFIG_ST506=y

#
# Please see drivers/block/README.ide for help/info on IDE drives
#
# CONFIG_BLK_DEV_HD is not set
CONFIG_BLK_DEV_IDE=y
# CONFIG_BLK_DEV_IDECD is not set
# CONFIG_BLK_DEV_XD is not set
CONFIG_NET=y
# CONFIG_MAX_16M is not set
# CONFIG_PCI is not set
CONFIG_SYSVIPC=y
CONFIG_BINFMT_ELF=y
CONFIG_KERNEL_ELF=y
# CONFIG_M486 is not set

#
# Loadable module support
#
# CONFIG_MODVERSIONS is not set

#
# Networking options
#
CONFIG_INET=y
# CONFIG_IP_FORWARD is not set
# CONFIG_IP_MULTICAST is not set
# CONFIG_IP_FIREWALL is not set
# CONFIG_IP_ACCT is not set
# CONFIG_NET_IPIP is not set

#
# (it is safe to leave these untouched)
#
# CONFIG_INET_PCTCP is not set
# CONFIG_INET_RARP is not set
CONFIG_INET_SNARL=y
# CONFIG_TCP_NAGLE_OFF is not set
CONFIG_IP_NOSR=y
CONFIG_SKB_LARGE=y
# CONFIG_IPX is not set
# CONFIG_ATALK is not set
# CONFIG_AX25 is not set

#
# SCSI support
#
# CONFIG_SCSI is not set

#
# Skipping SCSI configuration options...
#

#
# Network device support
#
CONFIG_NETDEVICES=y
CONFIG_DUMMY=y
CONFIG_SLIP=y
CONFIG_SLIP_COMPRESSED=y
# CONFIG_PPP is not set
# CONFIG_PLIP is not set
# CONFIG_EQUALIZER is not set
# CONFIG_NET_ALPHA is not set
# CONFIG_NET_VENDOR_SMC is not set
# CONFIG_LANCE is not set
# CONFIG_NET_VENDOR_3COM is not set
# CONFIG_NET_ISA is not set
# CONFIG_NET_EISA is not set
# CONFIG_NET_POCKET is not set
# CONFIG_TR is not set

#
# CD-ROM drivers (not for SCSI or IDE/ATAPI drives)
#
# CONFIG_CDU31A is not set
# CONFIG_MCD is not set
# CONFIG_MCDX is not set
CONFIG_SBPCD=y
# CONFIG_SBPCD2 is not set
# CONFIG_AZTCD is not set
# CONFIG_CDU535 is not set
# CONFIG_GSCD is not set
# CONFIG_CM206 is not set
# CONFIG_OPTCD is not set
# CONFIG_SJCD is not set

#
# Filesystems
#
CONFIG_MINIX_FS=y
# CONFIG_EXT_FS is not set
CONFIG_EXT2_FS=y
# CONFIG_XIA_FS is not set
CONFIG_MSDOS_FS=y
# CONFIG_UMSDOS_FS is not set
CONFIG_PROC_FS=y
# CONFIG_NFS_FS is not set
CONFIG_ISO9660_FS=y
CONFIG_HPFS_FS=y
# CONFIG_SYSV_FS is not set
# CONFIG_SMB_FS is not set

#
# character devices
#
# CONFIG_CYCLADES is not set
CONFIG_PRINTER=y
# CONFIG_BUSMOUSE is not set
# CONFIG_PSMOUSE is not set
# CONFIG_MS_BUSMOUSE is not set
# CONFIG_ATIXL_BUSMOUSE is not set
# CONFIG_QIC02_TAPE is not set
# CONFIG_FTAPE is not set

#
# Sound
#
CONFIG_SOUND=y

#
# Kernel hacking
#
# CONFIG_PROFILE is not set