Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 08 May 2021 00:57:59 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 255695] crash in NFSv4.1 server when processing a callback reply
Message-ID:  <bug-255695-227-qrZwlSMiMt@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-255695-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-255695-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=3D255695

Rick Macklem <rmacklem@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|bugs@FreeBSD.org            |rmacklem@FreeBSD.org
             Status|New                         |Open

--- Comment #1 from Rick Macklem <rmacklem@FreeBSD.org> ---
Created attachment 224761
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D224761&action=
=3Dedit
ref cnt the CLIENT structure so that it is not prematurely free'd

This patch acquires a reference count on the CLIENT
structure that is not released until the associated
socket structure is destroyed.
This should avoid the structure being free'd before
a callback reply has been processed.

It also adds a check for closed or closing, so that
it does not try to process a callback reply after the
CLIENT structure has been CLNT_CLOSE()'d.

I think should fix the crash.

I am waiting for a review and, hopefully, a positive
test report from Michael Dexter, who reported 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-255695-227-qrZwlSMiMt>