freebsd-skq/sys/geom
Robert Noland 1c2dee3cc9 Fix handling of GPT headers when size is > 92 bytes.
It is valid for an on-disk GPT header to report a header size which is
greater than 92 bytes.  Previously, we would read in the sector and copy
only the 92 bytes that we know how to deal with before calculating the
checksum for comparison.  This meant that when we did the checksum, we
overshot the buffer and took in random memory, so the checksum would fail.

We now determine the size of the header and allocate enough space to
preserve the entire on-disk contents.  This allows us to be correctly
calculate the checksum and be able to modify and write the header back
to the disk, while preserving data that we might not understand.

Reported by:	Kris Weston
Approved by:	marcel@
MFC after:	2 weeks
2009-11-07 17:29:03 +00:00
..
bde
cache
concat If provider is open for writing when we taste it, skip it for classes that 2009-10-09 09:42:22 +00:00
eli Detach GELI providers on shutdown/reboot, which will allow providers underneath 2009-03-16 19:31:08 +00:00
gate
journal Make gjournal work with kernel compiled with "options DIAGNOSTIC". 2009-06-30 14:34:06 +00:00
label If provider is open for writing when we taste it, skip it for classes that 2009-10-09 09:42:22 +00:00
linux_lvm - Apply the same naming rules of LVM names as done in the LVM code itself. 2009-06-24 22:09:30 +00:00
mirror Add support for changing providers priority. 2009-09-06 06:52:06 +00:00
multipath There's no need for checking result of M_WAITOK allocation. 2009-08-27 08:40:51 +00:00
nop
part Fix handling of GPT headers when size is > 92 bytes. 2009-11-07 17:29:03 +00:00
raid3 Revert r190676,190677 2009-04-10 04:08:34 +00:00
shsec If provider is open for writing when we taste it, skip it for classes that 2009-10-09 09:42:22 +00:00
stripe If provider is open for writing when we taste it, skip it for classes that 2009-10-09 09:42:22 +00:00
uzip If provider is open for writing when we taste it, skip it for classes that 2009-10-09 09:42:22 +00:00
vinum - Improve error message consistency and wording. 2009-10-05 08:44:31 +00:00
virstor
zero
geom_aes.c
geom_bsd_enc.c
geom_bsd.c Trivial patch to show on which geom has the error been detected. 2008-12-01 15:02:00 +00:00
geom_ccd.c - Fix a potential NULL pointer reference. Note that this should not happen in 2008-11-25 20:28:33 +00:00
geom_ctl.c
geom_ctl.h
geom_dev.c Do not check proper request alignment here in geom_dev in production. 2009-09-08 05:46:38 +00:00
geom_disk.c Simplify g_disk_ident_adjust() function and allow any printable character 2009-09-04 09:39:06 +00:00
geom_disk.h Revert r190676,190677 2009-04-10 04:08:34 +00:00
geom_dump.c
geom_event.c
geom_fox.c
geom_int.h
geom_io.c MFp4: 2009-09-06 19:33:13 +00:00
geom_kern.c
geom_mbr_enc.c
geom_mbr.c
geom_pc98_enc.c
geom_pc98.c
geom_redboot.c Do not stop the loop when an empty or deleted directory entry is found. 2009-06-24 06:42:13 +00:00
geom_slice.c
geom_slice.h
geom_subr.c Fix a panic which (reportedly) can happen when unmounting a filesystem 2009-07-01 20:16:29 +00:00
geom_sunlabel_enc.c
geom_sunlabel.c
geom_vfs.c Remove unused variable. 2009-09-08 17:20:17 +00:00
geom_vfs.h Remove the struct thread unuseful argument from bufobj interface. 2008-10-10 21:23:50 +00:00
geom_vol_ffs.c
geom.h Make gjournal work with kernel compiled with "options DIAGNOSTIC". 2009-06-30 14:34:06 +00:00
notes