freebsd-nq/uts
Andriy Gapon d03529fcb8 8731 ASSERT3U(nui64s, <=, UINT16_MAX) fails for large blocks
illumos/illumos-gate@a6c1eb3c08
a6c1eb3c08

https://www.illumos.org/issues/8731
  annotate_ecksum() asserts that nui64s, calculated as nui64s = size / sizeof
  (uint64_t), is not greater than UINT16_MAX.
  This restriction is needed because histograms of incorrectly set and cleared
  bits have 16 bit counters and if the buffer consists of too many 64-bit words,
  then a counter can potentially overflow producing an incorrect result.
  When the largest buffer size was 128KB the greatest value of nui64s was 16K,
  well within the limit.
  But now we have support for large buffers and for buffer sizes of 512KB and
  above the restriction is violated.

Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Approved by: Dan McDonald <danmcd@joyent.com>
Author: Andriy Gapon <avg@FreeBSD.org>
2018-02-21 14:30:34 +00:00
..
common 8731 ASSERT3U(nui64s, <=, UINT16_MAX) fails for large blocks 2018-02-21 14:30:34 +00:00
intel Import fasttrap_isa.c from OpenSolaris. 2010-07-06 10:22:17 +00:00
sparc 5045 use atomic_{inc,dec}_* instead of atomic_add_* 2014-08-20 06:22:59 +00:00