From nobody@FreeBSD.org  Sun Dec 15 05:40:50 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id A656C869
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 15 Dec 2013 05:40:50 +0000 (UTC)
Received: from oldred.freebsd.org (oldred.freebsd.org [IPv6:2001:1900:2254:206a::50:4])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 8E5E91A06
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 15 Dec 2013 05:40:50 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id rBF5en8n008427
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 15 Dec 2013 05:40:49 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id rBF5en5R008408;
	Sun, 15 Dec 2013 05:40:49 GMT
	(envelope-from nobody)
Message-Id: <201312150540.rBF5en5R008408@oldred.freebsd.org>
Date: Sun, 15 Dec 2013 05:40:49 GMT
From: Alex Barber <barber@mail.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: panic on nfs mount
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         184771
>Category:       kern
>Synopsis:       [nfs] [panic] panic on nfs mount
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-fs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 15 05:50:00 UTC 2013
>Closed-Date:    Sun Apr 20 12:55:27 UTC 2014
>Last-Modified:  Mon May 26 18:10:00 UTC 2014
>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:
Responsible-Changed-From-To: freebsd-bugs->freebsd-fs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sun Apr 20 02:16:45 UTC 2014 
Responsible-Changed-Why:  

Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=184771 
State-Changed-From-To: open->closed 
State-Changed-By: rmacklem 
State-Changed-When: Sun Apr 20 12:53:06 UTC 2014 
State-Changed-Why:  

I'm pretty sure this crash was fixed by r259765, which has 
been MFC'd to stable/9 as r261061. It was specific to an 
NFSv2 mount and the stack corruption only seemed to affect i386. 

If you experience a similar crash with an up-to-date stable/9 
or 9.3 system (when released), please submit another PR. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=184771 

From: Martin Birgmeier <Martin.Birgmeier@aon.at>
To: bug-followup@FreeBSD.org, barber@mail.ru
Cc:  
Subject: Re: kern/184771: [nfs] [panic] panic on nfs mount
Date: Mon, 26 May 2014 20:09:12 +0200

 I had the same problem netbooting releng/7 via NFS served by releng/9.2.
 
 I applied r261061 to releng/9.2.
 
 Now the panic does not happen any more.
 
>Unformatted:
