Summary: | Panic: NULL pointer dereference on "zfs send --raw" of encrypted filesystem | ||
---|---|---|---|
Product: | Base System | Reporter: | Peter Jeremy <peterj> |
Component: | kern | Assignee: | freebsd-fs (Nobody) <fs> |
Status: | Open --- | ||
Severity: | Affects Only Me | CC: | grahamperrin, pi, sgubdsbeerf |
Priority: | --- | Keywords: | crash, needs-qa |
Version: | 13.0-STABLE | ||
Hardware: | Any | ||
OS: | Any | ||
See Also: |
https://github.com/openzfs/zfs/pull/12438 https://github.com/openzfs/zfs/issues/12275#event-6888665864 |
Description
Peter Jeremy
2021-10-12 08:23:36 UTC
I've modified my kernel to return an error, instead of panicing, and done some 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 can do a "zfs send" of those filesystems from that pool without error. * I created a third pool, with encryption enabled, and copied/encrypted those 3 filesystems from the original pool to the third pool. Doing a send from that 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 the filesystems - with xz, one shrinks to 39.5MB and the other to 35.8MB. I've had a rummage around OpenZFS and this is https://github.com/openzfs/zfs/issues/12275, which is, unfortunately, still open without a fix. Is this reproducible with recent 13.1-STABLE? (In reply to Peter Jeremy from comment #2) Closed 2022-06-27 (PR <https://github.com/openzfs/zfs/pull/12438> merged), subsequent commits. |