[openssl-dev] 90-test_secmem.t hangs the machine for good
Short, Todd
tshort at akamai.com
Tue May 16 19:42:48 UTC 2017
MLOCK_ONFAULT is a Linux-only feature (hence the need to include <linux/mman.h> wrapped by OPENSSL_SYS_LINUX.
So, you should not be encountering any MLOCK_ONFAULT or <linux/mman.h> issues on MacOS.
--
-Todd Short
// tshort at akamai.com
// "One if by land, two if by sea, three if by the Internet."
> On May 15, 2017, at 1:51 PM, Blumenthal, Uri - 0553 - MITLL <uri at ll.mit.edu> wrote:
>
> On 5/15/17, 1:20 PM, "openssl-dev on behalf of Benjamin Kaduk via openssl-dev" <openssl-dev-bounces at openssl.org <mailto:openssl-dev-bounces at openssl.org> on behalf of openssl-dev at openssl.org <mailto:openssl-dev at openssl.org>> wrote:
>> > On a semi-related note, I want able to locate mann.h file either.
>
> `man mmap` will list any headers needed for the mmap() declaration and flag values.
> On the random OS X machine I have handy, it claims <sys/mman.h> is needed,
> and a /usr/include/sys/mman.h is present.
>
> Thanks – I confirm that `man mmap` mentions /usr/include/sys/mman.h, and that file does exist (how could my first `find` miss it?!).
> This file does not contain MLOCK_ONFAULT though.
>
> It has MAP_ANON:
>
> /*
> * Mapping type
> */
> #define MAP_FILE 0x0000 /* map from file (default) */
> #define MAP_ANON 0x1000 /* allocated from memory, swap space */
> #define MAP_ANONYMOUS MAP_ANON
>
> And as I already mentioned, it has a world-accessible (figuratively speaking :) /dev/zero that can be opened read/write.
>
> Also, with #3455 applied the problem disappeared (thankfully :).
>
> --
> openssl-dev mailing list
> To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev <https://mta.openssl.org/mailman/listinfo/openssl-dev>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mta.openssl.org/pipermail/openssl-dev/attachments/20170516/7127b27d/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4407 bytes
Desc: not available
URL: <http://mta.openssl.org/pipermail/openssl-dev/attachments/20170516/7127b27d/attachment-0001.bin>
More information about the openssl-dev
mailing list