Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1383912

Summary: [openssl] afalg test fails
Product: [Fedora] Fedora Reporter: Dan Horák <dan>
Component: opensslAssignee: Tomas Mraz <tmraz>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: tmraz
Target Milestone: ---   
Target Release: ---   
Hardware: s390x   
OS: Unspecified   
Whiteboard:
Fixed In Version: openssl-1.1.0b-2.fc26 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-10-12 13:48:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 467765, 1071880    

Description Dan Horák 2016-10-12 07:08:54 UTC
The afalg test fails in openssl 1.1 on s390x

from build.log
...
Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.Yo0c3B
+ umask 022
+ cd /builddir/build/BUILD
+ cd openssl-1.1.0b
+ patch -p1 -R
patching file apps/CA.pl.in
Hunk #1 succeeded at 33 (offset 7 lines).
patching file apps/openssl.cnf
++ pwd
+ LD_LIBRARY_PATH=/builddir/build/BUILD/openssl-1.1.0b
+ export LD_LIBRARY_PATH
+ OPENSSL_ENABLE_MD5_VERIFY=
+ export OPENSSL_ENABLE_MD5_VERIFY
+ make test
make depend && make _tests
make[1]: Entering directory '/builddir/build/BUILD/openssl-1.1.0b'
make[1]: Leaving directory '/builddir/build/BUILD/openssl-1.1.0b'
make[1]: Entering directory '/builddir/build/BUILD/openssl-1.1.0b'
/usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" \
    "-oMakefile" apps/CA.pl.in > "apps/CA.pl"
chmod a+x apps/CA.pl
( cd test; \
  SRCTOP=../. \
  BLDTOP=../. \
  PERL="/usr/bin/perl" \
  EXE_EXT= \
  OPENSSL_ENGINES=.././engines \
    /usr/bin/perl .././test/run_tests.pl  )
../test/recipes/01-test_abort.t ............ ok
../test/recipes/01-test_sanity.t ........... ok
../test/recipes/01-test_symbol_presence.t .. ok
../test/recipes/02-test_ordinals.t ......... ok
../test/recipes/05-test_bf.t ............... ok
../test/recipes/05-test_cast.t ............. ok
../test/recipes/05-test_des.t .............. ok
../test/recipes/05-test_hmac.t ............. ok
../test/recipes/05-test_idea.t ............. ok
../test/recipes/05-test_md2.t .............. ok
../test/recipes/05-test_md4.t .............. ok
../test/recipes/05-test_md5.t .............. ok
../test/recipes/05-test_mdc2.t ............. skipped: mdc2 is not supported by this OpenSSL build
../test/recipes/05-test_rand.t ............. ok
../test/recipes/05-test_rc2.t .............. ok
../test/recipes/05-test_rc4.t .............. ok
../test/recipes/05-test_rc5.t .............. ok
../test/recipes/05-test_rmd.t .............. ok
../test/recipes/05-test_sha1.t ............. ok
../test/recipes/05-test_sha256.t ........... ok
../test/recipes/05-test_sha512.t ........... ok
../test/recipes/05-test_wp.t ............... ok
../test/recipes/10-test_bn.t ............... ok
../test/recipes/10-test_exp.t .............. ok
../test/recipes/15-test_dh.t ............... ok
../test/recipes/15-test_dsa.t .............. ok
../test/recipes/15-test_ec.t ............... ok
../test/recipes/15-test_ecdh.t ............. ok
../test/recipes/15-test_ecdsa.t ............ ok
../test/recipes/15-test_rsa.t .............. ok
../test/recipes/20-test_enc.t .............. ok
../test/recipes/20-test_passwd.t ........... ok
../test/recipes/25-test_crl.t .............. ok
../test/recipes/25-test_d2i.t .............. ok
../test/recipes/25-test_pkcs7.t ............ ok
../test/recipes/25-test_req.t .............. ok
../test/recipes/25-test_sid.t .............. ok
../test/recipes/25-test_verify.t ........... ok
../test/recipes/25-test_x509.t ............. ok
#   Failed test 'running afalgtest'
#   at ../test/recipes/30-test_afalg.t line 23.
# Looks like you failed 1 test of 1.
../test/recipes/30-test_afalg.t ............ 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests 
../test/recipes/30-test_engine.t ........... ok
../test/recipes/30-test_evp.t .............. ok
../test/recipes/30-test_evp_extra.t ........ ok
../test/recipes/30-test_pbelu.t ............ ok
../test/recipes/40-test_rehash.t ........... ok
../test/recipes/70-test_asyncio.t .......... ok
../test/recipes/70-test_bad_dtls.t ......... ok
../test/recipes/70-test_clienthello.t ...... ok
../test/recipes/70-test_packet.t ........... ok
../test/recipes/70-test_sslcertstatus.t .... ok
../test/recipes/70-test_sslextension.t ..... ok
../test/recipes/70-test_sslrecords.t ....... ok
../test/recipes/70-test_sslsessiontick.t ... ok
../test/recipes/70-test_sslskewith0p.t ..... ok
../test/recipes/70-test_sslvertol.t ........ ok
../test/recipes/70-test_tlsextms.t ......... ok
../test/recipes/70-test_verify_extra.t ..... ok
../test/recipes/80-test_ca.t ............... ok
../test/recipes/80-test_cipherlist.t ....... ok
../test/recipes/80-test_cms.t .............. ok
../test/recipes/80-test_ct.t ............... ok
../test/recipes/80-test_dane.t ............. ok
../test/recipes/80-test_dtls.t ............. ok
../test/recipes/80-test_dtlsv1listen.t ..... ok
../test/recipes/80-test_ocsp.t ............. ok
../test/recipes/80-test_pkcs12.t ........... ok
../test/recipes/80-test_ssl_new.t .......... ok
../test/recipes/80-test_ssl_old.t .......... ok
../test/recipes/80-test_ssl_test_ctx.t ..... ok
../test/recipes/80-test_tsa.t .............. ok
../test/recipes/80-test_x509aux.t .......... ok
../test/recipes/90-test_async.t ............ ok
../test/recipes/90-test_bio_enc.t .......... ok
../test/recipes/90-test_bioprint.t ......... ok
../test/recipes/90-test_constant_time.t .... ok
../test/recipes/90-test_fuzz.t ............. ok
../test/recipes/90-test_gmdiff.t ........... ok
../test/recipes/90-test_heartbeat.t ........ skipped: heartbeats is not supported by this OpenSSL build
../test/recipes/90-test_ige.t .............. ok
../test/recipes/90-test_memleak.t .......... ok
../test/recipes/90-test_p5_crpt2.t ......... ok
../test/recipes/90-test_secmem.t ........... ok
../test/recipes/90-test_srp.t .............. skipped: srp is not supported by this OpenSSL build
../test/recipes/90-test_sslapi.t ........... ok
../test/recipes/90-test_threads.t .......... ok
../test/recipes/90-test_v3name.t ........... ok
Test Summary Report
-------------------
../test/recipes/30-test_afalg.t          (Wstat: 256 Tests: 1 Failed: 1)
  Failed test:  1
  Non-zero exit status: 1
Files=86, Tests=476, 41 wallclock secs ( 0.23 usr  0.06 sys + 29.43 cusr  8.20 csys = 37.92 CPU)
Result: FAIL
Failed 1/86 test programs. 1/476 subtests failed.
make[1]: Leaving directory '/builddir/build/BUILD/openssl-1.1.0b'
make[1]: *** [Makefile:153: _tests] Error 255
make: *** [Makefile:150: tests] Error 2
...

For full logs please see http://s390.koji.fedoraproject.org/koji/taskinfo?taskID=2371527

From a manual run I get

[sharkcz@devel11 test]$ LD_LIBRARY_PATH=.. OPENSSL_ENGINES=../engines/afalg ./afalgtest 
ALG_PERR: afalg_start_cipher_sk: sendmsg failed for cipher operation : Invalid argument
test_afalg_aes_128_cbc() failed encryption


Version-Release number of selected component (if applicable):
openssl-1.1.0b-1.fc26

Comment 1 Dan Horák 2016-10-12 07:32:53 UTC
And same issue on ppc64 (http://ppc.koji.fedoraproject.org/koji/taskinfo?taskID=3793229), while ppc64le is OK. It makes me suspect it's big endian related.