Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 670753 - net-wireless/iwd-0.14-r1 - Failing Test: unit/test-eapol
Summary: net-wireless/iwd-0.14-r1 - Failing Test: unit/test-eapol
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: Normal normal (vote)
Assignee: Ben Kohler
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2018-11-09 13:39 UTC by ernsteiswuerfel
Modified: 2019-06-10 15:05 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (iwd-0.7:20181109-133411.log,53.37 KB, text/plain)
2018-11-09 13:39 UTC, ernsteiswuerfel
Details
test-suite.log (test-suite.log,488 bytes, text/plain)
2018-11-09 13:40 UTC, ernsteiswuerfel
Details
emerge --info (file_670753.txt,5.88 KB, text/plain)
2018-11-09 13:40 UTC, ernsteiswuerfel
Details
build.log (iwd-0.10) (iwd-0.10:20181109-140355.log,52.92 KB, text/plain)
2018-11-09 14:14 UTC, ernsteiswuerfel
Details
build.log (iwd-0.14, kernel 4.20.11) (iwd-0.14:20190222-182320.log,57.68 KB, text/plain)
2019-02-22 18:32 UTC, ernsteiswuerfel
Details
emerge --info (file_670753.txt,5.75 KB, text/plain)
2019-02-22 18:33 UTC, ernsteiswuerfel
Details
test-suite.log (iwd-0.14, kernel 4.20.11) (test-suite.log,726 bytes, text/plain)
2019-02-22 18:59 UTC, ernsteiswuerfel
Details
test-suite.log (iwd-9999, kernel 4.20.11) (test-suite.log,726 bytes, text/plain)
2019-02-22 19:01 UTC, ernsteiswuerfel
Details
kernel .config (4.20.11, PowerMac G4 MDD) (config_42011-g4,82.53 KB, text/plain)
2019-02-22 21:39 UTC, ernsteiswuerfel
Details
test-suite.log (iwd-9999, kernel 4.20.11, 'debug', '-fsigned-char') (test-suite.log,662 bytes, text/plain)
2019-02-22 23:08 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2018-11-09 13:39:47 UTC
Created attachment 554617 [details]
build.log

===============================
   iwd 0.7: ./test-suite.log
===============================

# TOTAL: 19
# PASS:  18
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: unit/test-ssid-to-utf8
============================

test-ssid-to-utf8: unit/test-ssid-to-utf8.c:73: ssid_to_utf8: Assertion `!memcmp(ssid[i].string, result, strlen(ssid[i].string)) == ssid[i].result' failed.
TEST: /util/ssid_to_utf8/
FAIL unit/test-ssid-to-utf8 (exit status: 134)
Comment 1 ernsteiswuerfel archtester 2018-11-09 13:40:11 UTC
Created attachment 554619 [details]
test-suite.log
Comment 2 ernsteiswuerfel archtester 2018-11-09 13:40:32 UTC
Created attachment 554621 [details]
emerge --info
Comment 3 Ben Kohler gentoo-dev 2018-11-09 13:45:38 UTC
Can you check to see if 0.10 has the same failure?

Thanks
Comment 4 ernsteiswuerfel archtester 2018-11-09 14:14:25 UTC
Created attachment 554629 [details]
build.log (iwd-0.10)

Yes, 0.10 fails the same test.
Comment 5 Ben Kohler gentoo-dev 2019-02-06 13:47:20 UTC
I don't have a PPC machine available which has the right kernel configuration to test this myself.  Can you try once more with a current kernel and either iwd-9999 or iwd-0.14 so I can have something fresher to ask upstream about?

Thanks
Comment 6 ernsteiswuerfel archtester 2019-02-06 16:35:26 UTC
My new shiny ppc (G4 MDD) needs to be reassembled first. I will re-run the tests with -9999 and report back the next 1-2 weeks.
Comment 7 ernsteiswuerfel archtester 2019-02-22 18:32:38 UTC
Created attachment 566104 [details]
build.log (iwd-0.14, kernel 4.20.11)

================================
   iwd 0.14: ./test-suite.log
================================

# TOTAL: 18
# PASS:  16
# SKIP:  0
# XFAIL: 0
# FAIL:  2
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: unit/test-eapol
=====================

test-eapol: unit/test-eapol.c:2938: eapol_sm_test_tls: Assertion `l_tls_set_auth_data(s->tls, "ell/unit/cert-server.pem", "ell/unit/cert-server-key-pkcs8.pem", NULL)' failed.
FAIL unit/test-eapol (exit status: 134)

FAIL: unit/test-ssid-to-utf8
============================

test-ssid-to-utf8: unit/test-ssid-to-utf8.c:73: ssid_to_utf8: Assertion `!memcmp(ssid[i].string, result, strlen(ssid[i].string)) == ssid[i].result' failed.
FAIL unit/test-ssid-to-utf8 (exit status: 134)
Comment 8 ernsteiswuerfel archtester 2019-02-22 18:33:35 UTC
Created attachment 566106 [details]
emerge --info
Comment 9 Ben Kohler gentoo-dev 2019-02-22 18:44:58 UTC
Thanks for that, can you attach test-suite.log as well?
Comment 10 ernsteiswuerfel archtester 2019-02-22 18:57:34 UTC
iwd-9999 shows the same 2 tests failing with the same error messages:

FAIL: unit/test-eapol
=====================

test-eapol: unit/test-eapol.c:2943: eapol_sm_test_tls: Assertion `l_tls_set_auth_data(s->tls, "ell/unit/cert-server.pem", "ell/unit/cert-server-key-pkcs8.pem", NULL)' failed.
FAIL unit/test-eapol (exit status: 134)

FAIL: unit/test-ssid-to-utf8
============================

test-ssid-to-utf8: unit/test-ssid-to-utf8.c:73: ssid_to_utf8: Assertion `!memcmp(ssid[i].string, result, strlen(ssid[i].string)) == ssid[i].result' failed.
FAIL unit/test-ssid-to-utf8 (exit status: 134)
Comment 11 ernsteiswuerfel archtester 2019-02-22 18:59:21 UTC
Created attachment 566108 [details]
test-suite.log (iwd-0.14, kernel 4.20.11)
Comment 12 ernsteiswuerfel archtester 2019-02-22 19:01:06 UTC
Created attachment 566110 [details]
test-suite.log (iwd-9999, kernel 4.20.11)
Comment 13 Ben Kohler gentoo-dev 2019-02-22 19:08:16 UTC
Can you try adding -fsigned-char to CFLAGS and see if that helps?
Comment 14 ernsteiswuerfel archtester 2019-02-22 19:19:58 UTC
(In reply to Ben Kohler from comment #13)
> Can you try adding -fsigned-char to CFLAGS and see if that helps?
With -fsigned-char test-ssid-to-utf8 passes. test-eapol still fails.
Comment 15 Ben Kohler gentoo-dev 2019-02-22 21:28:12 UTC
Can you confirm that your kernel has PKCS8_PRIVATE_KEY_PARSER enabled"? Missing that (or being on <4.20 kernel that lack that support) can cause the eapol test to fail
Comment 16 ernsteiswuerfel archtester 2019-02-22 21:37:45 UTC
(In reply to Ben Kohler from comment #15)
> Can you confirm that your kernel has PKCS8_PRIVATE_KEY_PARSER enabled"?
> Missing that (or being on <4.20 kernel that lack that support) can cause the
> eapol test to fail
# grep PKCS8 .config
CONFIG_PKCS8_PRIVATE_KEY_PARSER=y
Comment 17 ernsteiswuerfel archtester 2019-02-22 21:39:06 UTC
Created attachment 566138 [details]
kernel .config (4.20.11, PowerMac G4 MDD)
Comment 18 Ben Kohler gentoo-dev 2019-02-22 21:51:16 UTC
Upstream just added a debug option for this, can you set IWD_TLS_DEBUG=1 in your calling environment, and run tests on 9999 again?  Will need to pull fresh from git, the change hit <1hr ago
Comment 19 ernsteiswuerfel archtester 2019-02-22 23:06:16 UTC
Ok, now with "IWD_TLS_DEBUG=1 LC_MESSAGES=C FEATURES="test" ACCEPT_KEYWORDS="**" emerge -1 net-wireless/iwd" (still -fsigned-char) I get:

FAIL: unit/test-eapol
=====================

l_tls_set_auth_data:2590 cert-path=ell/unit/cert-server.pem priv-key-path=ell/unit/cert-server-key-pkcs8.pem priv-key-passphrase=(nil)
l_tls_set_auth_data:2606 Error loading ell/unit/cert-server.pem
test-eapol: unit/test-eapol.c:2951: eapol_sm_test_tls: Assertion `l_tls_set_auth_data(s->tls, "ell/unit/cert-server.pem", "ell/unit/cert-server-key-pkcs8.pem", NULL)' failed.
FAIL unit/test-eapol (exit status: 134)
Comment 20 ernsteiswuerfel archtester 2019-02-22 23:08:22 UTC
Created attachment 566144 [details]
test-suite.log (iwd-9999, kernel 4.20.11, 'debug', '-fsigned-char')
Comment 21 Ben Kohler gentoo-dev 2019-02-23 17:45:18 UTC
Ok test-ssid-to-utf8 should be fixed in 0.14-r1 & 9999, still working on test-eapol
Comment 22 Ben Kohler gentoo-dev 2019-04-12 18:54:46 UTC
Found out this last eapol test is failing because the bundled ell isn't including some test certs that are required here.  Upstream has been made aware of the issue.

So really this test cannot run at all, yet.  If upstream doesn't fix this test soon then maybe we can disable it for now.
Comment 23 Ben Kohler gentoo-dev 2019-05-13 15:29:56 UTC
Fixed in 0.18 (they're finally shipping the required certs for this test)
Comment 24 ernsteiswuerfel archtester 2019-05-17 22:10:56 UTC
Did a quick test of 0.18 on the 32bit profile of my Talos. test-eapol passes indeed now, thanks!

But test-sae fails. Should I open a seperate bug?


================================
   iwd 0.18: ./test-suite.log
================================

# TOTAL: 18
# PASS:  17
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: unit/test-sae
===================

test-sae: unit/test-sae.c:250: test_confirm_timeout: Assertion `auth_proto_rx_authenticate(ap, (uint8_t *)frame, len) == 0' failed.
FAIL unit/test-sae (exit status: 134)
Comment 25 ernsteiswuerfel archtester 2019-06-10 15:05:42 UTC
Did run the tests again with iwd-9999. All pass now on ppc.