lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 16 Feb 2015 10:38:49 -0800
From:	"Darrick J. Wong" <darrick.wong@...cle.com>
To:	grantksupport@...ramail.com
Cc:	linux-ext4@...r.kernel.org
Subject: Re: gdisk-created Bios Boot Partition created with NO fs, reports fs
 TYPE=ext4.  Bug/why?

On Sun, Feb 15, 2015 at 10:38:56AM -0800, grantksupport@...ramail.com wrote:
> I'm not entirely sure this is the right list for this question, but it IS ext4 'involved'.  So ...
> 
> I create a GPT Bios Boot Partition on a clean disk
> 
> 	sgdisk -z /dev/sdc
> 	sgdisk -o /dev/sdc
> 	sgdisk -n 1:2048:+1M    -t 1:ef02  -c 1:"BIOS Boot"           /dev/sdc
> 
> IIUC, at this point, the partition should exist with NO filesystem.
> 
> But, if I check with blkid
> 
> 	blkid /dev/sdc1
> 		/dev/sdc1: LABEL="RAID_BOOT" UUID="8a828baa-f315-4456-88d2-ff14849eb705" TYPE="ext4" PARTLABEL="BIOS Boot" PARTUUID="2b3b10b1-a458-481e-872c-bada7d244b13" 
> 
> Note that it IDs the filesystem type as
> 
> 	TYPE="ext4"
> 
> Why?

Wiping the partition table doesn't erase filesystem superblocks, so if there
previously was an sdc1 with an ext4 partition and the new sdc1 starts at the
same offset, the old fs is still accessible.

> Bios Boot Partition should have NO filesystem.
> 
> Is blkid correct?  Is there, or isn't there a fs on that partition?
> 
> if there isn't, what's causint the 'false' report?
> 
> If there IS, how do I make sure there isn't?

wipefs.

--D
> 
> grant
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
> the body of a message to majordomo@...r.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ