freebsd-dev/sys
Conrad Meyer 179b21e8b1 cryptosoft: Do not exceed crd_len around *crypt_multi
When a caller passes in a uio or mbuf chain that is longer than crd_len, in
tandem with a transform that supports the multi-block interface,
swcr_encdec() would process the entire mbuf or uio instead of just the
portion indicated by crd_len (+ crd_skip).

De/encryption are performed in-place, so this would trash subsequent uio or
mbuf contents.

This was introduced in r331639 (mea culpa).  It only affects the
{de,en}crypt_multi() family of interfaces.  That interface only has one
consumer transform in-tree (for now): Chacha20.

PR:		227605
Submitted by:	Valentin Vergez <valentin.vergez AT stormshield.eu>
2018-04-19 15:24:21 +00:00
..
amd64 set kdb_why to "trap" when calling kdb_trap from trap_fatal 2018-04-19 05:06:56 +00:00
arm Remove the unused fuwintr() and suiwintr() functions. 2018-04-17 18:04:28 +00:00
arm64 Remove the unused fuwintr() and suiwintr() functions. 2018-04-17 18:04:28 +00:00
bsm
cam Just assert that the lock is held here, rather than taking it out and 2018-04-13 16:45:35 +00:00
cddl 9433 Fix ARC hit rate 2018-04-16 00:54:58 +00:00
compat Add PROC_PDEATHSIG_SET to procctl interface. 2018-04-18 21:31:13 +00:00
conf This commit brings in the TCP high precision timer system (tcp_hpts). 2018-04-19 13:37:59 +00:00
contrib Import CK as of commit b19ed4c6a56ec93215ab567ba18ba61bf1cfbac8 2018-04-02 23:40:50 +00:00
crypto opencrypto: Integrate Chacha20 algorithm into OCF 2018-03-29 04:02:50 +00:00
ddb Restore db_radix on parse error, otherwise we'll silently change it to 2018-04-17 15:44:05 +00:00
dev Workaround fixed I/O port resources encoded as I/O port ranges in _CRS. 2018-04-18 18:36:26 +00:00
dts Convert atse(4) driver for Altera Triple-Speed Ethernet MegaCore to use 2018-04-13 15:59:24 +00:00
fs Move most of the contents of opt_compat.h to opt_global.h. 2018-04-06 17:35:35 +00:00
gdb amd64: Protect the kernel text, data, and BSS by setting the RW/NX bits 2018-03-06 14:28:37 +00:00
geom Annotate geom modules with MODULE_VERSION 2018-04-10 19:18:16 +00:00
gnu bwn(4): txpid2g/txpid5g[lh] are not defined after sromrev 7; the default 2018-02-13 17:43:54 +00:00
i386 set kdb_why to "trap" when calling kdb_trap from trap_fatal 2018-04-19 05:06:56 +00:00
isa Revert r330780, it was improperly tested and results in taking a spin 2018-03-11 20:13:15 +00:00
kern Add PROC_PDEATHSIG_SET to procctl interface. 2018-04-18 21:31:13 +00:00
kgssapi kgssapi: Remove trivial deadcode 2018-02-14 00:12:03 +00:00
libkern iconv uses strlen directly on user supplied memory 2018-02-26 18:23:36 +00:00
mips Remove the unused fuwintr() and suiwintr() functions. 2018-04-17 18:04:28 +00:00
modules Add PNP info to the PCI attahement of the puc driver. 2018-04-17 16:46:08 +00:00
net iflib: Fix queue distribution when there are no threads 2018-04-18 15:34:18 +00:00
net80211 Use an accessor function to access ifr_data. 2018-03-30 18:50:13 +00:00
netgraph Correct pseudo misspelling in sys/ comments 2018-02-23 18:15:50 +00:00
netinet These two modules need the tcp_hpts.h file for 2018-04-19 15:03:48 +00:00
netinet6 Remove support for the Arcnet protocol. 2018-04-13 21:18:04 +00:00
netipsec Set the proper vnet in IPsec callback functions. 2018-03-20 17:05:23 +00:00
netpfil To avoid possible deadlock do not acquire JQUEUE_LOCK before callout_drain. 2018-04-13 10:03:30 +00:00
netsmb Unsign some values related to allocation. 2018-01-22 02:08:10 +00:00
nfs Remove support for FDDI networks. 2018-04-11 17:28:24 +00:00
nfsclient style: Remove remaining deprecated MALLOC/FREE macros 2018-01-25 22:25:13 +00:00
nfsserver
nlm Use syscall_helper_register() to register syscalls and initialize though 2018-02-10 01:09:22 +00:00
ofed Improve copy-and-pasted versions of SIOCGIFADDR. 2018-03-27 20:51:49 +00:00
opencrypto cryptosoft: Do not exceed crd_len around *crypt_multi 2018-04-19 15:24:21 +00:00
powerpc set kdb_why to "trap" when calling kdb_trap from trap_fatal 2018-04-19 05:06:56 +00:00
riscv Remove the unused fuwintr() and suiwintr() functions. 2018-04-17 18:04:28 +00:00
rpc Do pass removing some write-only variables from the kernel. 2017-12-25 04:48:39 +00:00
security Use an accessor function to access ifr_data. 2018-03-30 18:50:13 +00:00
sparc64 Remove references to fs_nofault_intr_begin/end. 2018-04-17 22:30:00 +00:00
sys This commit brings in the TCP high precision timer system (tcp_hpts). 2018-04-19 13:37:59 +00:00
teken Pedantic polishing of code to please FlexeLint. 2018-04-08 19:23:50 +00:00
tests
tools Add dtb overlays support 2018-03-24 21:30:24 +00:00
ufs Renumber soft-update types starting at 1 instead of 0 to avoid confusion 2018-04-05 00:32:01 +00:00
vm Initialize marker pages in vm_page_domain_init(). 2018-04-19 14:09:44 +00:00
x86 Fix two off-by-one errors when allocating MSI and MSI-X interrupts. 2018-04-18 18:45:34 +00:00
xdr
xen
Makefile