Project

General

Profile

Bug #3181

mount_hammer2 panic on empty disks

Added by BJoe 7 months ago. Updated 7 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
03/05/2019
Due date:
% Done:

0%

Estimated time:

Description

This triggered a panic in VM (VirtualBox 5.2.16) on OSX 10.11.6:

mkdir /mnt
dd if=/dev/zero of=/dev/ad1
mount_hammer2 /dev/ad1 /mnt


Files

hammer2_panic.png (32.9 KB) hammer2_panic.png BJoe, 03/05/2019 04:57 AM

History

#1

Updated by admin 7 months ago

Thanks, I'll track it down and fix the case so it fails the mount properly.

-Matt

#2

Updated by dillon 7 months ago

  • Status changed from New to Closed
  • Assignee set to dillon

Reported panic fixed in both master and release branch.

The reported panic can occur if the root inode has been blown away by a partial clearing of the filesystem via dd, and then a mount is attempted. H2 may still be able to find a valid volume header due to volume header redundancy, but the root inode is typically located at a low block number and is more easily destroyed. The failure path was not handled properly and resulted in a panic.

-Matt

Also available in: Atom PDF