From nobody Fri Oct 15 11:40:50 2021 X-Original-To: fs@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 644BF180649A for ; Fri, 15 Oct 2021 11:40:50 +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 4HW48f26Vxz3v4K for ; Fri, 15 Oct 2021 11:40:50 +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 2A2D425C9E for ; Fri, 15 Oct 2021 11:40:50 +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 19FBeoce075452 for ; Fri, 15 Oct 2021 11:40:50 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 19FBeodk075451 for fs@FreeBSD.org; Fri, 15 Oct 2021 11:40:50 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: fs@FreeBSD.org Subject: [Bug 259093] [zfs] [panic] NULL pointer dereference on "zfs send --raw" of encrypted filesystem. Date: Fri, 15 Oct 2021 11:40:50 +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: 13.0-STABLE X-Bugzilla-Keywords: panic X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: peterj@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: fs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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: Filesystems List-Archive: https://lists.freebsd.org/archives/freebsd-fs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-fs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D259093 --- Comment #1 from Peter Jeremy --- I've modified my kernel to return an error, instead of panicing, and done s= ome investigating: * The problem affects 3 (out of 81) filesystems I have. * Those 3 filesystems don't have any unusual configuration. * The encrypted pool reports no errors on a scrub. * I still have the original pool (from before I did the encryption) and I c= an do a "zfs send" of those filesystems from that pool without error. * I created a third pool, with encryption enabled, and copied/encrypted tho= se 3 filesystems from the original pool to the third pool. Doing a send from th= at pool fails in the same way. * The error reports that it can't send an intermediate snapshot within the filesystem (the snapshots are different for each filesystem). If I delete = the snapshot that reports the error then the error moves to the next most recent snapshot. * Creating the third pool with a different encryption key has no effect (unsurprising but I thought I'd check). I'm doing a scrub of the original pool but would be surprised if it reports= any errors. At this point, it looks like there's something in the original filesystems = that doesn't cause any issue with an unencrypted filesystem but breaks once that filesystem is encrypted. If anyone wants to investigate, I'm happy to share send streams from 2 of t= he filesystems - with xz, one shrinks to 39.5MB and the other to 35.8MB. --=20 You are receiving this mail because: You are the assignee for the bug.=