NetBSD Problem Report #51052

From www@NetBSD.org  Wed Apr  6 09:06:01 2016
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 4DAAD7A3D5
	for <gnats-bugs@gnats.NetBSD.org>; Wed,  6 Apr 2016 09:06:01 +0000 (UTC)
Message-Id: <20160406090600.6316D7AA95@mollari.NetBSD.org>
Date: Wed,  6 Apr 2016 09:06:00 +0000 (UTC)
From: schaiba@gmail.com
Reply-To: schaiba@gmail.com
To: gnats-bugs@NetBSD.org
Subject: NFS client has no timeout set if connection hangs
X-Send-Pr-Version: www-1.0

>Number:         51052
>Category:       bin
>Synopsis:       NFS client has no timeout set if connection hangs
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 06 09:10:00 +0000 2016
>Last-Modified:  Wed Apr 06 12:15:53 +0000 2016
>Originator:     Rares
>Release:        7.0-RELEASE amd64
>Organization:
>Environment:
>Description:
I have a Oracle Linux 7.2 NFS server. FreeBSD, Linux, Solaris and Windows Server 2012R2 can mount the share just fine. However, NetBSD (and OpenBSD 5.9) will hang indefinitely after issuing the mount command. The command is 'mount_nfs $host:$share $mntpoint'. In the end I found that it was a firewall issue on the server, so once I disabled it the mount command worked. Issue is, the process entered a D state and remained that way (left it for about 20 hours.)

crash output : 

crash> bt/t 0t50
trace: pid 50 lid 1 at 0xfffffe80c90fa800
sleepq_block() at sleepq_block+0xc5
cv_timedwait() at cv_timedwait+0xa7
sbwait() at sbwait+0x3a
soreceive() at soreceive+0xd4d
nfs_request() at nfs_request+0x7d2
nfs_getattr() at nfs_getattr+0x1e9
VOP_GETATTR() at VOP_GETATTR+0x53
mountnfs() at mountnfs+0x33b
nfs_mount() at nfs_mount+0x2c1
VFS_MOUNT() at VFS_MOUNT+0x34
mount_domount() at mount_domount+0x122
do_sys_mount() at do_sys_mount+0x2dd
sys___mount50() at sys___mount50+0x33
syscall() at syscall+0x9a
--- syscall (number 410) ---
7f7ff7083d5a:
crash>

https://dpaste.de/my2T

>How-To-Repeat:
 - try to mount a Linux NFS share that for various reasons rejects the data request from the NetBSD client

>Fix:

>Release-Note:

>Audit-Trail:

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.