freebsd-dev/sys
John Baldwin e0df0dce71 powerpc_nvram: Fix a bug in the adler32 checksum.
The Adler32 digest consists of two 16-bit words whose values are
calculated modulo 65521 (largest prime < 2^16).  To avoid two division
instructions per byte, this version copies an optimization found in
zlib which defers the modulus until close to the point that the
intermediate sums can overflow 2^32.  (zlib uses NMAX == 5552 for
this, this version uses 5000)

The bug is that in the deferred modulus case, the modulus was
only applied to the high word (and twice at that) but not to
the low word.  The fix is to apply it to both words.

Reviewed by:	jhibbits
Reported by:	Miod Vallat <miod@openbsd.org>
Differential Revision:	https://reviews.freebsd.org/D36798
2022-10-03 16:10:41 -07:00
..
amd64 amd64/db_trace.c: remove stray prototype 2022-10-04 01:50:30 +03:00
arm Teach the GICv3 driver to translate memory ranges 2022-09-23 15:28:45 +01:00
arm64 Set denominator to 1 if it is 0 in the init phase. 2022-10-01 02:01:59 +00:00
bsm
cam cam: Provide compatibility for CAMGETPASSTHRU for periph drivers 2022-09-29 13:14:57 -04:00
cddl opensolaris: Delete unused sources 2022-09-29 08:34:29 -04:00
compat linuxolator: add netlink support 2022-10-01 14:16:45 +00:00
conf arm64: coresight: fix the build without FDT 2022-09-29 14:33:33 -05:00
contrib zlib crc32: Add prototypes for recently-added static functions. 2022-09-28 14:00:27 -07:00
crypto Fix the IV length in the armv8 AES GCM code 2022-09-06 13:11:04 +01:00
ddb db_sym.c: restore sys/systm.h include 2022-10-03 14:51:22 -03:00
dev powerpc_nvram: Fix a bug in the adler32 checksum. 2022-10-03 16:10:41 -07:00
dts
fs cuse(3): Optimise small reads and writes. 2022-10-03 17:35:14 +02:00
gdb
geom
gnu
i386 ddb: de-duplicate decode_syscall() 2022-10-03 13:49:54 -03:00
isa
kern time(3): Align fast clock times to avoid firing multiple timers. 2022-10-03 17:53:17 +02:00
kgssapi
libkern Alter the prototype of qsort_r(3) to match POSIX, which adopted the 2022-09-30 15:26:30 -07:00
modules linuxolator: add netlink support 2022-10-01 14:16:45 +00:00
net bpf: obtain timestamps from controller via pkthdr if available 2022-10-03 18:53:40 -04:00
net80211 net80211: move IEEE80211_F_WME check to vap for consistency 2022-09-29 12:54:23 +00:00
netgraph Alter the prototype of qsort_r(3) to match POSIX, which adopted the 2022-09-30 15:26:30 -07:00
netinet tcp: correct simultaneous SYN ECN reaction in RFC3168 mode. 2022-10-04 00:24:28 +02:00
netinet6 netinet6: factor interface addition code to the dedicated function 2022-09-27 13:23:34 +00:00
netipsec protosw: refactor protosw and domain static declaration and load 2022-08-17 11:50:32 -07:00
netlink netlink: fix non-default builds (no INET, INET6, ROUTE_MPATH). 2022-10-02 13:12:52 +00:00
netpfil ipfilter: Cast uintmax_t values to size_t when adding to a pointer. 2022-09-28 13:58:34 -07:00
netsmb
nfs
nfsclient
nfsserver
nlm
ofed ibcore: The use of IN_LOOPBACK() now requires a valid VNET context. 2022-09-23 13:42:03 +02:00
opencrypto
powerpc powerpc: slb_alloc_user_cache: fix missing uma_zalloc wait flag 2022-10-03 20:56:41 -03:00
riscv riscv: move GEOM_PART_GPT option to DEFAULTS 2022-10-03 13:49:54 -03:00
rpc nfsd: Allow multiple instances of rpc.tlsservd 2022-08-22 13:54:24 -07:00
security vfs: introduce V_PCATCH to stop abusing PCATCH 2022-09-17 15:41:37 +00:00
sys Fix LINT build after 368ee2f86a 2022-10-03 00:15:21 -05:00
teken
tests
tools sound(4): Fix order of parameters for custom equalizer band pass filter. 2022-08-22 10:04:26 +02:00
ufs Updates to UFS/FFS superblock integrity checks when reading a superblock. 2022-10-03 05:53:10 -07:00
vm Fix various places which cast a pointer to a vm_paddr_t or vice versa. 2022-10-03 16:10:41 -07:00
x86 Fix various places which cast a pointer to a vm_paddr_t or vice versa. 2022-10-03 16:10:41 -07:00
xdr
xen
Makefile