Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Dec 2013 05:40:49 GMT
From:      Alex Barber <barber@mail.ru>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/184771: panic on nfs mount
Message-ID:  <201312150540.rBF5en5R008408@oldred.freebsd.org>
Resent-Message-ID: <201312150550.rBF5o0gM093393@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         184771
>Category:       kern
>Synopsis:       panic on nfs mount
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 15 05:50:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Alex Barber
>Release:        9.2
>Organization:
home
>Environment:
FreeBSD homeserver.local 9.2-RELEASE FreeBSD 9.2-RELEASE #1: Mon Dec  9 23:09:33 PETT 2013     root@homeserver.local:/usr/obj/usr/src/sys/homeserver92
>Description:
When i use GENERIC kernel for my diskless station it's good. When i put options BOOTP options BOOTP_NFSROOT to kernel config nfs server reboot.

#0  doadump (textdump=1) at pcpu.h:249
249     pcpu.h: No such file or directory.
        in pcpu.h
(kgdb) #0  doadump (textdump=1) at pcpu.h:249
#1  0xc07627e5 in kern_reboot (howto=260)
    at /usr/src/sys/kern/kern_shutdown.c:449
#2  0xc0762ae2 in panic (fmt=<value optimized out>)
    at /usr/src/sys/kern/kern_shutdown.c:637
#3  0xc078dbb2 in __stack_chk_fail ()
    at /usr/src/sys/kern/stack_protector.c:17
#4  0xc0928b23 in fha_assign (this_thread=0xc51b0980, req=0xc9b98000,
    softc=0xc0bd4a80) at /usr/src/sys/nfs/nfs_fha.c:463
#5  0xc068eea0 in fhanew_assign (this_thread=0xc51b0980, req=0xc9b98000)
    at /usr/src/sys/fs/nfsserver/nfs_fha_new.c:271
#6  0xc093d527 in svc_run_internal (pool=0xc4bdc500, ismaster=0)
    at /usr/src/sys/rpc/svc.c:1109
#7  0xc093d8e0 in svc_thread_start (arg=0xc4bdc500)
    at /usr/src/sys/rpc/svc.c:1200
#8  0xc072fcef in fork_exit (callout=0xc093d8d0 <svc_thread_start>,
    arg=0xc4bdc500, frame=0xe7ae1d08) at /usr/src/sys/kern/kern_fork.c:992
#9  0xc0a23c14 in fork_trampoline () at /usr/src/sys/i386/i386/exception.s:279
(kgdb)

>How-To-Repeat:
/usr/local/etc/dhcpd.conf

subnet 192.168.xx.0 netmask 255.255.255.0 {
  range 192.168.xx.17 192.168.xx.20;
  range 192.168.xx.90 192.168.xx.99;
  range 192.168.xx.101 192.168.xx.101;
  option domain-name-servers 192.168.xx.100;
  option domain-name "local";
  option routers 192.168.xx.100;
  filename "/boot/pxeboot";
}

host storserv {
  hardware ethernet 60:a4:4c:2e:1d:xx;
  fixed-address 192.168.xx.101;
  next-server 192.168.xx.100;
  option root-path "192.168.xx.100:/usr/home/storserv";

}


/etc/exports 

/usr/home/storserv      /usr/ports      -maproot=0      192.168.xx.101


/etc/inetd.conf 

tftp    dgram   udp     wait    root    /usr/libexec/tftpd      tftpd -l -s /usr/home/storserv

/etc/rc.conf

nfs_server_enable="YES"
mountd_enable="YES"
mountd_flags="-e -l -h 192.168.xx.100"



use kernel config

options 	_KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
options 	PRINTF_BUFR_SIZE=128	# Prevent printf output being interspersed.
options 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev
options 	HWPMC_HOOKS		# Necessary kernel hooks for hwpmc(4)
options 	KDTRACE_HOOKS		# Kernel DTrace hooks
options 	INCLUDE_CONFIG_FILE     # Include this file in kernel
options 	KDB			# Kernel debugger related code
options 	KDB_TRACE		# Print a stack trace for a panic
options 	DDB_CTF			# kernel ELF linker loads CTF data

# To make an SMP kernel, the next two lines are needed
options 	SMP			# Symmetric MultiProcessor Kernel
device		apic			# I/O APIC

# CPU frequency control
device		cpufreq

# Bus support.
device		acpi
device		eisa
device		pci


# ATA controllers
device		ahci		# AHCI-compatible SATA controllers
device		ata		# Legacy ATA/SATA controllers
options 	ATA_CAM		# Handle legacy controllers with CAM
options 	ATA_STATIC_ID	# Static device numbering

# ATA/SCSI peripherals
device		scbus		# SCSI bus (required for ATA/SCSI)
#device		ch		# SCSI media changers
device		da		# Direct Access (disks)
#device		sa		# Sequential Access (tape etc)
#device		cd		# CD
device		pass		# Passthrough device (direct ATA/SCSI access)
#device		ses		# Enclosure Services (SES and SAF-TE)
#device		ctl		# CAM Target Layer

# atkbdc0 controls both the keyboard and the PS/2 mouse
device		atkbdc		# AT keyboard controller
device		atkbd		# AT keyboard
device		psm		# PS/2 mouse

device		kbdmux		# keyboard multiplexer

device		vga		# VGA video card driver
options 	VESA		# Add support for VESA BIOS Extensions (VBE)

#device		splash		# Splash screen and screen saver support

# syscons is the default console driver, resembling an SCO console
device		sc
options 	SC_PIXEL_MODE	# add support for the raster text mode

device		agp		# support several AGP chipsets

device		pmtimer


device		re		# RealTek 8139C+/8169/8169S/8110S

# Pseudo devices.
device		loop		# Network loopback
device		random		# Entropy device
#options 	PADLOCK_RNG	# VIA Padlock RNG
#options 	RDRAND_RNG	# Intel Bull Mountain RNG
device		ether		# Ethernet support
#device		vlan		# 802.1Q VLAN support
#device		tun		# Packet tunnel.
device		pty		# BSD-style compatibility pseudo ttys
device		md		# Memory "disks"


options BOOTP
options BOOTP_NFSROOT

Boot diskless station
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312150540.rBF5en5R008408>