Bug 141718 - [zfs] [panic] kernel panic when 'zfs rename' is used on mounted snapshot
Summary: [zfs] [panic] kernel panic when 'zfs rename' is used on mounted snapshot
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 8.0-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords: crash
Depends on:
Blocks:
 
Reported: 2009-12-17 16:50 UTC by Ben Schumacher
Modified: 2022-10-17 07:18 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Schumacher 2009-12-17 16:50:02 UTC
While using RSE's 'snapshot' tool with a ZFS-based system I observed that
calling 'snapshot make' on a drive that has a mounted snapshot causes a panic.
It would appear that the 'zfs rename' call inside the utility being executed
to rename a snapshot that is mounted causes the panic.

Unfortunately I don't have a dump because the system appeared to hang during
the panic (no automatic reboot), so I had to manually power cycle it to get
it back up.

Fix: 

Workaround: Don't 'zfs rename' a mounted snapshot. It'd be nice, however, if
the OS blocked the operations and didn't panic.
How-To-Repeat: 1. Create zfs snapshot of drive.
2. Mount zfs snapshot somewhere on system.
3. Use 'zfs rename' to chnage the name of the mounted snapshot.
4. Observe kernel panic.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2009-12-17 16:57:01 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-fs

Over to maintainer(s).
Comment 2 Pawel Jakub Dawidek freebsd_committer freebsd_triage 2010-03-19 23:15:20 UTC
Responsible Changed
From-To: freebsd-fs->pjd

I'll take this one.
Comment 3 Pawel Jakub Dawidek freebsd_committer freebsd_triage 2014-06-01 07:12:13 UTC
State Changed
From-To: open->feedback

Unfortunately I'm unable to reproduce the problem you reported. 
'zfs rename' on mounted snapshot works just fine. 
Is there anything else I should try?
Comment 4 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:58:45 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped