From owner-freebsd-bugs@freebsd.org Tue Sep 15 18:09:27 2015 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0F4A2A04FB2 for ; Tue, 15 Sep 2015 18:09:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E85381795 for ; Tue, 15 Sep 2015 18:09:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id t8FI9QkF044298 for ; Tue, 15 Sep 2015 18:09:26 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 203134] [nfs] [nlm] [lor] newnfs/allproc lock order reversal on NFS mount recovery Date: Tue, 15 Sep 2015 18:09:26 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.2-BETA2 X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: gavin@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Sep 2015 18:09:27 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203134 Bug ID: 203134 Summary: [nfs] [nlm] [lor] newnfs/allproc lock order reversal on NFS mount recovery Product: Base System Version: 10.2-BETA2 Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: gavin@FreeBSD.org Host is 10.2-BETA2 running r285810. Host has four NFS mounts from two separate NetApp filers. One of those filers was rebooted, which caused the mount to stop responding (and produced a LOR which I believe is unrelated, see bug 203133). When the filer became available again, a client got this: Sep 15 07:14:48 client kernel: lock order reversal: Sep 15 07:14:48 client kernel: 1st 0xfffff8000d704d50 newnfs (newnfs) @ /space/freebsd/stable/10/sys/nlm/nlm_advlock.c:500 Sep 15 07:14:48 client kernel: 2nd 0xffffffff81c694d8 allproc (allproc) @ /space/freebsd/stable/10/sys/kern/kern_proc.c:309 Sep 15 07:14:48 client kernel: KDB: stack backtrace: Sep 15 07:14:48 client kernel: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe0469a137a0 Sep 15 07:14:48 client kernel: kdb_backtrace() at kdb_backtrace+0x39/frame 0xfffffe0469a13850 Sep 15 07:14:48 client kernel: witness_checkorder() at witness_checkorder+0xe24/frame 0xfffffe0469a138e0 Sep 15 07:14:48 client kernel: _sx_slock() at _sx_slock+0x76/frame 0xfffffe0469a13920 Sep 15 07:14:48 client kernel: pfind() at pfind+0x22/frame 0xfffffe0469a13940 Sep 15 07:14:48 client kernel: nlm_set_creds_for_lock() at nlm_set_creds_for_lock+0xb4/frame 0xfffffe0469a13970 Sep 15 07:14:48 client kernel: nlm_client_recover_lock() at nlm_client_recover_lock+0x61/frame 0xfffffe0469a139b0 Sep 15 07:14:48 client kernel: lf_iteratelocks_sysid() at lf_iteratelocks_sysid+0x194/frame 0xfffffe0469a13a10 Sep 15 07:14:48 client kernel: nlm_client_recovery() at nlm_client_recovery+0x51/frame 0xfffffe0469a13a50 Sep 15 07:14:48 client kernel: nlm_client_recovery_start() at nlm_client_recovery_start+0x35/frame 0xfffffe0469a13a70 Sep 15 07:14:48 client kernel: fork_exit() at fork_exit+0x84/frame 0xfffffe0469a13ab0 Sep 15 07:14:48 client kernel: fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe0469a13ab0 Sep 15 07:14:48 client kernel: --- trap 0xc, rip = 0x800cb747a, rsp = 0x7fffffffeb78, rbp = 0x7fffffffed00 --- Sep 15 07:14:49 client rpc.statd: Unsolicited notification from host netapp-14 Sep 15 07:14:51 client rpc.statd: Unsolicited notification from host netapp-126 Sep 15 07:14:57 client kernel: newnfs server netapp:/vol/filestore: is alive aganin Unfortunately, I'm unlikely to be able to recreate this one at will. Gavin -- You are receiving this mail because: You are the assignee for the bug.