freebsd-skq/sys
Marcel Moolenaar 96937e3b23 Revert revision 254095
In revision 254095, gpt_entries is not set to match the on-disk
hdr_entries, but rather is computed based on available space.
There are 2 problems with this:

1.  The GPT backend respects hdr_entries and only reads and writes
    that number of partition entries.  On top of that, CRC32 is
    computed over the table that has hdr_entries elements.  When
    the common code works on what is possibly a larger number, the
    behaviour becomes inconsistent and problematic.  In particular,
    it would be possible to add a new partition that on a reboot
    isn't there anymore.
2.  The calculation of gpt_entries is based on flawed assumptions.
    The GPT specification does not dictate that sectors are layed
    out in a particular way that the available space can be
    determined by looking at LBAs.  In practice, implementations
    do the same thing, because there's no reason to do it any
    other way.  Still, GPT allows certain freedoms that can be
    exploited in some form or shape if the need arises.

PR:		229977
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D19438
2019-03-05 04:15:34 +00:00
..
amd64 Fix missed posted interrupts in VT-x in bhyve. 2019-03-01 20:43:48 +00:00
arm Remove sv_pagesize, originally introduced with r100384. 2019-03-01 16:16:38 +00:00
arm64 Remove sv_pagesize, originally introduced with r100384. 2019-03-01 16:16:38 +00:00
bsm Create new EINTEGRITY error with message "Integrity check failed". 2019-01-17 06:35:45 +00:00
cam Reduce CTL threads priority to about PUSER. 2019-03-04 00:49:07 +00:00
cddl Improve readability of the code by making it explicit where the 'c' variable 2019-03-01 05:54:13 +00:00
compat Remove sv_pagesize, originally introduced with r100384. 2019-03-01 16:16:38 +00:00
conf There is no device atacard but there is device atapccard. 2019-03-01 15:00:13 +00:00
contrib [ath_hal_ar9300] Add the extra ANI configuration fields for the AR93xx HAL. 2019-03-04 06:43:00 +00:00
crypto Embedded chacha: Add 0-bit iv + 128-bit counter mode 2019-03-01 23:30:23 +00:00
ddb ddb: Print the thread's pcb in 'show thread' 2019-02-09 21:08:19 +00:00
dev [ath_hal] add extra ANI fields for the AR9300 HAL. 2019-03-04 06:42:06 +00:00
dts Adapt FreeBSD specific DT stub for Jetson TK1 board to be consistent with 2019-02-06 06:03:44 +00:00
fs Don't pass td to nfsvno_open(). 2019-03-04 14:50:00 +00:00
gdb
geom Revert revision 254095 2019-03-05 04:15:34 +00:00
gnu gcov support 2019-02-23 21:14:00 +00:00
i386 Remove sv_pagesize, originally introduced with r100384. 2019-03-01 16:16:38 +00:00
isa
kern Remove bogus assert that I added in r319722. It is a legitimate case 2019-03-03 18:57:48 +00:00
kgssapi * Handle SIGPIPE in gssd 2019-02-21 01:30:37 +00:00
libkern Add non-sleepable strdup variant strdup_flags 2019-02-20 20:48:10 +00:00
mips Remove sv_pagesize, originally introduced with r100384. 2019-03-01 16:16:38 +00:00
modules Add another required header file. 2019-03-01 04:17:43 +00:00
net bridge: Fix spurious warnings about capabilities 2019-03-04 22:01:09 +00:00
net80211 net80211(4): hide casts for 'i_seq' field offset calculation inside 2019-02-10 23:58:56 +00:00
netgraph Remove remnants of byte order manipulation, back when FreeBSD stack 2019-02-09 03:00:00 +00:00
netinet Allocate an assocition id and register the stcb with holding the lock. 2019-03-03 19:55:06 +00:00
netinet6 When dropping a fragment queue count the number of fragments in the queue 2019-02-19 19:57:55 +00:00
netipsec Remove unused argument to priv_check_cred. 2018-12-11 19:32:16 +00:00
netpfil pf: IPv6 fragments with malformed extension headers could be erroneously passed by pf or cause a panic 2019-03-01 07:37:45 +00:00
netsmb Remove unused argument to priv_check_cred. 2018-12-11 19:32:16 +00:00
nfs
nfsclient
nfsserver
nlm
ofed Mechanical cleanup of epoch(9) usage in network stack. 2019-01-09 01:11:19 +00:00
opencrypto Fix another bug introduced during the review process of r344140: 2019-02-25 19:14:16 +00:00
powerpc powerpc: fix 'show spr' for ELFv1 powerpc64 2019-03-02 21:11:46 +00:00
riscv Remove sv_pagesize, originally introduced with r100384. 2019-03-01 16:16:38 +00:00
rpc Bump the default kern.rpc.gss.client_max from 128 to 1024. 2019-02-19 11:07:02 +00:00
security Create new EINTEGRITY error with message "Integrity check failed". 2019-01-17 06:35:45 +00:00
sparc64 Remove sv_pagesize, originally introduced with r100384. 2019-03-01 16:16:38 +00:00
sys Set tentative merge date, and bump __FreeBSD_version. 2019-03-04 19:23:11 +00:00
teken Attempt to complete fixing programmable function keys for syscons. 2019-02-20 02:14:41 +00:00
tests Regularize the Netflix copyright 2019-02-04 21:28:25 +00:00
tools make_dtb.sh: Use $CPP instead of assuming that cpp is in $PATH 2018-12-14 23:53:28 +00:00
ufs FFS: allow sendfile(2) to work with block sizes greater than the page size 2019-02-26 04:56:10 +00:00
vm vm: remove seq.h inclusion made obsolete by NUMA rewrite 2019-02-27 22:42:29 +00:00
x86 Add usermode helpers for for Intel userspace protection keys feature. 2019-02-20 09:56:23 +00:00
xdr
xen xen: introduce a new way to setup event channel upcall 2019-01-30 11:34:52 +00:00
Makefile