freebsd-skq/sys
Marcin Wojtas ccbaa67d8b Change return types of hash update functions in SHA-NI
r359374 introduced crypto_apply function which takes as argument a function pointer
that is expected to return an int, however aesni hash update functions
return void.
Because of that the function pointer passed was simply cast with
its return value changed.
This resulted in undefined behavior, in particular when mbuf is used, (ipsec)
m_apply checks return value of function pointer passed to it
and in our case bogusly fails after calculating hash of the first mbuf
in chain.
Fix it by changing signatures of sha update routines in aesni and
dropping the casts.

Submitted by: Kornel Duleba
Reviewed by: jhb, cem
Obtained from: Semihalf
Sponsored by: Stormshield
Differential Revision: https://reviews.freebsd.org/D25030
2020-05-28 09:13:20 +00:00
..
amd64 ice(4): Introduce new driver for Intel E800 Ethernet controllers 2020-05-26 23:35:10 +00:00
arm Restore XHCI operation on Armada 38x 2020-05-26 14:10:53 +00:00
arm64 Support creating and using arm64 pmap at stage 2 2020-05-27 08:00:38 +00:00
bsm bsm: add AUE_CLOSERANGE 2020-04-24 01:27:25 +00:00
cam [ata_da] remove duplicate definition; it trips up ye olde gcc-6 on mips32 2020-05-27 02:10:09 +00:00
cddl Fix entering KDB with dtrace-enabled kernel. 2020-05-26 16:44:05 +00:00
compat linuxkpi: Add kstrtou16 2020-05-27 11:42:09 +00:00
conf powerpc/mmu: Convert PowerPC pmap drivers to ifunc from kobj 2020-05-27 01:24:12 +00:00
contrib ice(4): Introduce new driver for Intel E800 Ethernet controllers 2020-05-26 23:35:10 +00:00
crypto Change return types of hash update functions in SHA-NI 2020-05-28 09:13:20 +00:00
ddb kernel: provide panicky version of __unreachable 2020-05-13 18:07:37 +00:00
dev Implement helper function, usbd_get_max_frame_length(), which allows kernel 2020-05-28 08:38:25 +00:00
dts allwinner: aw_thermal: Cope with DTS changes 2020-04-14 19:05:17 +00:00
fs Make NFS address selection use fib4_lookup(). 2020-05-28 07:35:07 +00:00
gdb Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
geom geli: fix a livelock during panic 2020-05-27 19:13:26 +00:00
gnu dts: Import DTS from Linux 5.6 2020-04-14 18:57:00 +00:00
i386 copystr(9): Move to deprecate (attempt #2) 2020-05-25 16:40:48 +00:00
isa sc(4) md bits: stop setting sc->kbd entirely 2019-12-30 02:07:55 +00:00
kern Fix sosend() for the case where mbufs are passed in while doing ktls. 2020-05-27 23:20:35 +00:00
kgssapi Add support for optional separate output buffers to in-kernel crypto. 2020-05-25 22:12:04 +00:00
libkern libkern: Add arc4random_uniform 2020-05-23 17:51:06 +00:00
mips Update cryptocteon(4) and nlmsec(4) for changes in r361481. 2020-05-25 23:49:46 +00:00
modules ice(4): Introduce new driver for Intel E800 Ethernet controllers 2020-05-26 23:35:10 +00:00
net Unlock rtentry before calling for epoch(9) destruction as the destruction 2020-05-28 07:23:27 +00:00
net80211 [net80211] Fix interrupted scan logic and ticks comparison 2020-05-27 18:32:12 +00:00
netgraph Fix check for wMaxPacketSize in USB bluetooth driver, 2020-05-28 08:41:18 +00:00
netinet Use fib[46]_lookup() in mtu calculations. 2020-05-28 08:00:08 +00:00
netinet6 Use fib[46]_lookup() in mtu calculations. 2020-05-28 08:00:08 +00:00
netipsec Fix AES-CTR compatibility issue in ipsec 2020-05-26 14:16:26 +00:00
netpfil pf: Add a new zone for per-table entry counters. 2020-05-16 00:28:12 +00:00
netsmb Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
nfs Use epoch(9) for rtentries to simplify control plane operations. 2020-05-23 10:21:02 +00:00
nfsclient
nfsserver
nlm Make nfslockd depend on xdr. 2020-04-23 09:37:22 +00:00
ofed Convert OFED rtable interactions to the new routing KPI. 2020-04-15 13:06:55 +00:00
opencrypto Add a sysctl knob to use separate output buffers for /dev/crypto. 2020-05-25 22:21:09 +00:00
powerpc powerpc/pmap: Remove some debug from r361544 2020-05-28 03:08:50 +00:00
riscv Fix entering KDB with dtrace-enabled kernel. 2020-05-26 16:44:05 +00:00
rpc Split XDR into separate kernel module. Make krpc depend on xdr. 2020-04-17 06:04:20 +00:00
security Deduplicate fsid comparisons 2020-05-21 01:55:35 +00:00
sys This commit enables a UFS filesystem to do a forcible unmount when 2020-05-25 23:47:31 +00:00
teken
tests Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
tools vfs: stop null checking routines in vop wrappers 2020-01-26 00:41:38 +00:00
ufs This commit enables a UFS filesystem to do a forcible unmount when 2020-05-25 23:47:31 +00:00
vm Simplify the condition to enable superpage mappings in vm_fault_soft_fast(). 2020-05-27 21:44:26 +00:00
x86 xenpv: do not use low 1MB for Xen mappings on i386 2020-05-28 08:18:34 +00:00
xdr Split XDR into separate kernel module. Make krpc depend on xdr. 2020-04-17 06:04:20 +00:00
xen Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (16 of many) 2020-02-25 19:04:39 +00:00
Makefile Remove sparc64 kernel support 2020-02-03 17:35:11 +00:00