From nobody Thu Nov 25 23:58:35 2021 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 5B87D18BFB5A for ; Thu, 25 Nov 2021 23:58:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J0ZZz10xdz4Wb7 for ; Thu, 25 Nov 2021 23:58:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id F303326955 for ; Thu, 25 Nov 2021 23:58:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 1APNwYeD007527 for ; Thu, 25 Nov 2021 23:58:34 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1APNwYBp007526 for bugs@FreeBSD.org; Thu, 25 Nov 2021 23:58:34 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 260012] NFS v4 client can crash server with a bad LAYOUTRETURN RPC Date: Thu, 25 Nov 2021 23:58:35 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: rmacklem@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: rmacklem@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to bug_status attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1637884715; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3uycevn2jndn7Oe2VEnhAzvsRjLuiHGCGW/1gQYBUIw=; b=We2D8YXZVCcZyrI1HxP+/zSJl7r+UsvD2xPPsAM0OvyxbW/rN3dwJRLdQAExOTPs0+x30v QEIFkGIANNWiiRc4gNk8erSkpjKCaqbEvk58AwgYOm50Si9iJJTD5R/FBeQ3FBXFby7P7v O/bqGNfJY9mNUWOVGV6LyHQlrXtjOWpML6toJUlgECvPZo9KJMvFr+zWFNmFGxU5ldynPM tqXhb9SjGNVA2htcwX8Vz6Ry++2jez21HJ0peZTiOClfL0me5fCLqWWUnmCcp1q9JWqhGe hHLqR/wzjQpzOgKpFnoi/0W7g4xW6ZUWX7MeaS55zdFS47giMY6HcZ8TmVnKag== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1637884715; a=rsa-sha256; cv=none; b=JcLK+R78IiqZEpyQqyzrQq7yjiyGdQnMOgrx0d7pgALEyrmWvFKePrtvU9LlFMEv6RxTch NmXTq90IM0VB8bqzgPTNlw6KG13tgkgDYLVwRYtJACqdAECb9iMfqTLiWrIdVqm/no7gQ3 B299qqmzgqTXYwepHDA8Tbvp8h8T/2vaNnsm6f7rf8fMMCYqzwlQqozbLmejNSGiEvjs/p pEno8CUpxVY52Eh3hGWfHXNuLARAv2809+CUWaCA0SEAVo08W+lZh4zZ318hhP8aO54Db/ oaJGBF3xDSCdy9Mcp9S6xbrdBoLkvvDTusaIqoRrmcDZjEnMDSwQg7I3VBm7fQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260012 Rick Macklem changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|bugs@FreeBSD.org |rmacklem@FreeBSD.org Status|New |Open --- Comment #1 from Rick Macklem --- Created attachment 229733 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D229733&action= =3Dedit 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? --=20 You are receiving this mail because: You are the assignee for the bug.=