Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 04 Jan 2020 01:34:00 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 242768] [panic] Fatal trap 12: current process (nfsd: service)
Message-ID:  <bug-242768-227-Pod7rDNqBY@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-242768-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-242768-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D242768

--- Comment #11 from Rick Macklem <rmacklem@FreeBSD.org> ---
Created attachment 210429
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D210429&action=
=3Dedit
check for a non-NULL tvp returned by nfsvno_getvp()

Duh. It's the obvious ones that are hard to spot.
I took another look and the bug is obvious.
nfsvno_getvp() returns NULL if it can't get the
vnode and this code didn't check for non-NULL
before doing the unlock.

The attached patch should avoid the crash.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-242768-227-Pod7rDNqBY>