[Bug 275870] [unionfs] [zfs] kernel panic on umount

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 21 Dec 2023 18:02:00 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275870

            Bug ID: 275870
           Summary: [unionfs] [zfs] kernel panic on umount
           Product: Base System
           Version: 14.0-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: karlo98.m@gmail.com

If you do a ZFS rollback which removes a unionfs mountpoint and umount
mountpoint after that, 14.0 kernel will panic.
In 13.0 it works fine - it is unmounted even though the directory was rolled
back.

I provide a small script that reproduces the problem:

#!/bin/sh
zfs create zroot/var/repro
zfs snapshot zroot/var/repro@clean
cd /var/repro
mkdir a b
mount_unionfs a b
zfs rollback zroot/var/repro@clean
umount /var/repro/b

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