Actions
Bug #3181
closedmount_hammer2 panic on empty disks
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
Actions
Added by BJoe over 5 years ago. Updated over 5 years ago.
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 |
Thanks, I'll track it down and fix the case so it fails the mount properly.
-Matt
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