Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Nov 2021 23:58:35 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 260012] NFS v4 client can crash server with a bad LAYOUTRETURN RPC
Message-ID:  <bug-260012-227-vKPUJyw9fD@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-260012-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260012

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 229733
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=229733&action=edit
Check for a non-NULL layp before calling nfsrv_flexlayouterr()

This patch should avoid the crash.
While here I also added a sanity check on the
size of the error data.

Maybe the reporter can test to see this fixes the problem?

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

help

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