Project

General

Profile

Actions

Bug #3181

closed

mount_hammer2 panic on empty disks

Added by BJoe over 5 years ago. Updated over 5 years 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
Actions #1

Updated by admin over 5 years ago

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

-Matt

Actions #2

Updated by dillon over 5 years 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

Actions

Also available in: Atom PDF