[openssl-dev] [openssl.org #4443] Re: VIA C7-D processor: Hang in 30-test_afalg.t

Jeffrey Walton noloader at gmail.com
Fri Mar 18 00:57:05 UTC 2016

On Thu, Mar 17, 2016 at 8:43 PM, Viktor Dukhovni
<openssl-users at dukhovni.org> wrote:
>> On Mar 17, 2016, at 8:25 PM, noloader at gmail.com via RT <rt at openssl.org> wrote:
>> Yeah, this looks fishy... According to the libc manual, 13.10 Perform
>> I/O Operations in Parallel
>> (https://www.gnu.org/software/libc/manual/html_node/Asynchronous-I_002fO.html):
>>    volatile void *aio_buf
>>        This is a pointer to the buffer with the data to
>>        be written or the place where the read data is
>>        stored.
>> That cast should be to a void*, not an unsigned long.
> Wrong interface.  Here, OpenSSL is using "struct iocb" from the kernel ABI via
> <linux/aio_abi.h>, not glibc's "struct aiocb".  In the kernel structure, the
> definition is:
>         __u64 aio_buf;

OK, thanks. I just tested with void*, and it tested OK. The hang is no
longer present and the self test simply failed.

Let me test with uint64_t to see if the self test will pass.

More information about the openssl-dev mailing list