kern/144962: [geom] panic when accessing GPT disk with a large number of entries

Alexander Best alexbestms at wwu.de
Tue Mar 23 00:10:05 UTC 2010


The following reply was made to PR kern/144962; it has been noted by GNATS.

From: Alexander Best <alexbestms at wwu.de>
To: <bug-followup at FreeBSD.org>
Cc: Bruce Cran <bruce at cran.org.uk>
Subject: Re: kern/144962: [geom] panic when accessing GPT disk with a large
 number of entries
Date: Tue, 23 Mar 2010 01:09:01 +0100 (CET)

 tried this too under HEAD (r205390):
 
 `gpart create -s gpt -n 1000000 /dev/da0` gave me "gpart: provider: No space
 left on device" so i did `gpart create -s gpt -n 1000000 /dev/da0` instead
 which worked. reattaching the device caused no problem.
 
 when i tried to create a label with `glabel label usb da0` i got:
 
 GEOM: da0: the secondary GPT table is corrupt or invalid.
 GEOM: da0: using the primary only -- recovery suggested.
 GEOM: da0: the secondary GPT table is corrupt or invalid.
 GEOM: da0: using the primary only -- recovery suggested.
 GEOM: label/usb: the secondary GPT table is corrupt or invalid.
 GEOM: label/usb: using the primary only -- recovery suggested.
 
 seems -n 1000000 is not enough to fill up kernel virtual memory in my case.
 
 -- 
 Alexander Best


More information about the freebsd-geom mailing list