Revision 92a8109e4d3a34fb6b115c9098b51767dc933444 authored by Ross Lagerwall on 08 January 2019, 18:30:56 UTC, committed by Steve French on 11 January 2019, 13:14:40 UTC
The code tries to allocate a contiguous buffer with a size supplied by
the server (maxBuf). This could fail if memory is fragmented since it
results in high order allocations for commonly used server
implementations. It is also wasteful since there are probably
few locks in the usual case. Limit the buffer to be no larger than a
page to avoid memory allocation failures due to fragmentation.

Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
1 parent 15bc77f
History
File Mode Size
Kconfig -rw-r--r-- 3.1 KB
Makefile -rw-r--r-- 1.9 KB
asym_tpm.c -rw-r--r-- 22.9 KB
asymmetric_keys.h -rw-r--r-- 759 bytes
asymmetric_type.c -rw-r--r-- 16.2 KB
mscode.asn1 -rw-r--r-- 840 bytes
mscode_parser.c -rw-r--r-- 2.9 KB
pkcs7.asn1 -rw-r--r-- 3.8 KB
pkcs7_key_type.c -rw-r--r-- 2.4 KB
pkcs7_parser.c -rw-r--r-- 16.5 KB
pkcs7_parser.h -rw-r--r-- 2.3 KB
pkcs7_trust.c -rw-r--r-- 4.8 KB
pkcs7_verify.c -rw-r--r-- 12.8 KB
pkcs8.asn1 -rw-r--r-- 559 bytes
pkcs8_parser.c -rw-r--r-- 4.1 KB
public_key.c -rw-r--r-- 8.1 KB
restrict.c -rw-r--r-- 8.0 KB
signature.c -rw-r--r-- 4.6 KB
tpm.asn1 -rw-r--r-- 210 bytes
tpm_parser.c -rw-r--r-- 2.2 KB
verify_pefile.c -rw-r--r-- 11.4 KB
verify_pefile.h -rw-r--r-- 1.2 KB
x509.asn1 -rw-r--r-- 1.6 KB
x509_akid.asn1 -rw-r--r-- 1.0 KB
x509_cert_parser.c -rw-r--r-- 16.0 KB
x509_parser.h -rw-r--r-- 2.3 KB
x509_public_key.c -rw-r--r-- 6.4 KB

back to top