freebsd-dev/sys
Mark Johnston 5072251428 cryptosoft: Avoid referencing end-of-buffer cursors
Once a crypto cursor has reached the end of its buffer, it is invalid to
call crypto_cursor_segment() for at least some crypto buffer types.
Reorganize loops to avoid this.

Fixes:	cfb7b942be ("cryptosoft: Use multi-block encrypt/decrypt for non-AEAD ciphers.")
Fixes:	a221a8f4a0 ("cryptosoft: Use multi-block encrypt/decrypt for AES-GCM.")
Fixes:	f8580fcaa1 ("cryptosoft: Use multi-block encrypt/decrypt for AES-CCM.")
Fixes:	5022c68732 ("cryptosoft: Use multi-block encrypt/decrypt for ChaCha20-Poly1305.")
Reported and tested by:	madpilot
Discussed with:	jhb
Sponsored by:	The FreeBSD Foundation
2022-01-17 19:01:24 -05:00
..
amd64 exec: Remove the stack gap implementation 2022-01-17 16:11:54 -05:00
arm exec: Introduce the PROC_PS_STRINGS() macro 2022-01-17 16:11:54 -05:00
arm64 exec: Remove the stack gap implementation 2022-01-17 16:11:54 -05:00
bsm
cam ata_xpt: Rename probe_softc to aprobe_softc 2022-01-14 17:21:09 -07:00
cddl dtrace: add a knob to control maximum size of principal buffers 2022-01-11 15:47:50 +02:00
compat proc: Add a sysctl to fetch virtual address space layout info 2022-01-17 16:12:43 -05:00
conf x86: Speed up clock calibration 2022-01-12 12:34:07 -08:00
contrib LinuxKPI / iwlwifi: fix spelling of constants 2022-01-09 02:21:05 +00:00
crypto crypto: Re-add encrypt/decrypt_multi hooks to enc_xform. 2022-01-11 14:17:41 -08:00
ddb ddb: Remove SOFTWARE_SSTEP support 2022-01-07 09:25:33 -07:00
dev ofw_pci: Fix incorrectly sized softc causing pci(4) out-of-bounds reads 2022-01-15 19:03:53 +00:00
dts add rk3328 overlay for enabling analog sound 2021-11-13 11:09:23 +02:00
fs unionfs: allow vnode lock to be held shared during VOP_OPEN 2022-01-11 18:44:03 -08:00
gdb
geom Use G_ELI_IVKEYLEN as the size of IV in the user test code. 2022-01-13 17:22:06 -08:00
gnu
i386 exec: Reimplement stack address randomization 2022-01-17 16:12:36 -05:00
isa sys/isa: Use C99 fixed-width integer types. 2021-12-28 09:41:57 -08:00
kern proc: Add a sysctl to fetch virtual address space layout info 2022-01-17 16:12:43 -05:00
kgssapi
libkern sys/libkern: Use C99 fixed-width integer types. 2021-12-28 09:42:11 -08:00
modules linux: add sysctl to pass untranslated interface names 2022-01-17 09:35:15 +00:00
net netmap: fix LOR in iflib_netmap_register 2022-01-14 21:09:04 +00:00
net80211 net80211: ieee80211_dump_node() cosmetics 2022-01-17 00:01:46 +00:00
netgraph domains: make domain_init() initialize only global state 2022-01-03 10:15:22 -08:00
netinet fib_algo: shift / mask by constants in dxr_lookup() 2022-01-17 00:13:47 +01:00
netinet6 domains: make domain_init() initialize only global state 2022-01-03 10:15:22 -08:00
netipsec syncache: accept packet with no SA when TCP_MD5SIG is set 2022-01-08 16:32:14 -09:00
netpfil pf: ensure we don't destroy an uninitialised lock 2022-01-16 09:04:57 +01:00
netsmb
nfs nfs: don't truncate directory cookies to 32-bits in the NFS server 2021-12-15 20:54:57 -07:00
nfsclient
nfsserver
nlm sys/nlm: Use C99 fixed-width integer types. 2021-12-28 09:42:42 -08:00
ofed domains: init with standard SYSINIT(9) or VNET_SYSINIT() 2022-01-03 10:15:22 -08:00
opencrypto cryptosoft: Avoid referencing end-of-buffer cursors 2022-01-17 19:01:24 -05:00
powerpc sysent: Add a sv_psstringssz field to struct sysentvec 2022-01-17 11:42:07 -05:00
riscv exec: Introduce the PROC_PS_STRINGS() macro 2022-01-17 16:11:54 -05:00
rpc sys/rpc: Use C99 fixed-width integer types. 2021-12-28 09:43:15 -08:00
security Thread creation privilege for realtime group 2021-12-15 00:01:58 +02:00
sys proc: Add a sysctl to fetch virtual address space layout info 2022-01-17 16:12:43 -05:00
teken
tests
tools Revert "syscallarg_t: Add a type for system call arguments" 2022-01-12 23:29:20 +00:00
ufs Avoid unnecessary setting of UFS flag requesting fsck(8) be run. 2022-01-09 16:18:28 -08:00
vm exec: Reimplement stack address randomization 2022-01-17 16:12:36 -05:00
x86 x86/xen: fallback when VCPUOP_send_nmi is not available 2022-01-17 11:06:40 +01:00
xdr sys/xdr: Use C99 fixed-width integer types. 2021-12-28 09:43:26 -08:00
xen Create wrapper for Giant taken for newbus 2021-12-09 17:04:45 -07:00
Makefile Fix 'make cscope' with ALL_ARCH defined 2022-01-07 11:53:52 -04:00