Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 718390 - net-libs/mbedtls fails PSA tests (psa_crypto_slot_management-suite, psa_its-suite)
Summary: net-libs/mbedtls fails PSA tests (psa_crypto_slot_management-suite, psa_its-s...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Azamat H. Hackimov
URL: https://github.com/ARMmbed/mbedtls/is...
Whiteboard:
Keywords: PullRequest, TESTFAILURE
: 755641 757876 807154 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-04-19 18:53 UTC by Agostino Sarubbo
Modified: 2024-01-14 04:05 UTC (History)
5 users (show)

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


Attachments
build.log (build.log,313.97 KB, text/plain)
2020-04-19 18:53 UTC, Agostino Sarubbo
Details
mbedtls-2.22.0:20200419-185445.log (mbedtls-2.22.0:20200419-185445.log,303.25 KB, text/plain)
2020-04-19 18:57 UTC, Agostino Sarubbo
Details
LastTest.log.bz2 (LastTest.log.bz2,54.99 KB, application/x-bzip2)
2020-04-26 20:16 UTC, Agostino Sarubbo
Details
mbedtls-2.22.0-r1:20200430-073000.log (mbedtls-2.22.0-r1:20200430-073000.log,308.20 KB, text/plain)
2020-04-30 07:39 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2020-04-19 18:53:50 UTC
This is an auto-filled bug because net-libs/mbedtls fails tests.
The issue was originally discovered on amd64, but it may be reproducible on other arches as well.
Attached build log and emerge --info.
Comment 1 Agostino Sarubbo gentoo-dev 2020-04-19 18:53:55 UTC
Created attachment 633758 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2020-04-19 18:57:35 UTC
Created attachment 633762 [details]
mbedtls-2.22.0:20200419-185445.log

this is on x86
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-04-26 20:00:12 UTC
Tests which failed:
	 76 - psa_crypto_slot_management-suite (Failed)
	 77 - psa_its-suite (Failed)

Looks like we need /var/tmp/portage/net-libs/mbedtls-2.22.0/work/mbedtls-mbedtls-2.22.0-abi_x86_32.x86/Testing/Temporary/LastTest.log too.
Comment 4 Agostino Sarubbo gentoo-dev 2020-04-26 20:16:59 UTC
Created attachment 634750 [details]
LastTest.log.bz2

LastTest.log
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-04-26 22:34:30 UTC
(In reply to Agostino Sarubbo from comment #4)
> Created attachment 634750 [details]
> LastTest.log.bz2
> 
> LastTest.log

Thanks ago! I'll try reproducing this and then see if we need to talk to upstream.
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-04-28 22:43:52 UTC
Reproduced. I'm going to report this upstream and see what they say.
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-04-28 23:03:02 UTC
(In reply to Sam James (sec padawan) from comment #6)
> Reproduced. I'm going to report this upstream and see what they say.

Reported: https://github.com/ARMmbed/mbedtls/issues/3291
Comment 8 Anthony Basile gentoo-dev 2020-04-28 23:14:42 UTC
(In reply to Sam James (sec padawan) from comment #7)
> (In reply to Sam James (sec padawan) from comment #6)
> > Reproduced. I'm going to report this upstream and see what they say.
> 
> Reported: https://github.com/ARMmbed/mbedtls/issues/3291

The psa_* api is for evaluation purposes only, I don't think we should stop stabilization for these failures.

See: https://github.com/ARMmbed/mbedtls/blob/development/README.md
Comment 9 Anthony Basile gentoo-dev 2020-04-29 14:07:41 UTC
@ago, can you retest mbedtls-2.22.0-r1  I've acted on upstream's recommendation

https://github.com/ARMmbed/mbedtls/issues/3291
Comment 10 Agostino Sarubbo gentoo-dev 2020-04-30 07:39:33 UTC
Created attachment 635332 [details]
mbedtls-2.22.0-r1:20200430-073000.log

new build.log
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-11-20 04:58:06 UTC
*** Bug 755641 has been marked as a duplicate of this bug. ***
Comment 12 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-01-07 10:31:13 UTC
*** Bug 757876 has been marked as a duplicate of this bug. ***
Comment 13 Rolf Eike Beer archtester 2021-04-18 14:13:23 UTC
Still fails in 2.26.0 on sparc.
Comment 14 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-10-16 04:15:27 UTC
*** Bug 807154 has been marked as a duplicate of this bug. ***
Comment 15 Larry the Git Cow gentoo-dev 2021-10-16 04:18:41 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bba19e6ae32582093b3931cbdbfaa6b6a796b03e

commit bba19e6ae32582093b3931cbdbfaa6b6a796b03e
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-10-16 04:18:14 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-10-16 04:18:14 +0000

    net-libs/mbedtls: skip evaluation/development PSA tests
    
    These APIs are not for production use yet.
    
    Bug: https://bugs.gentoo.org/718390
    Signed-off-by: Sam James <sam@gentoo.org>

 net-libs/mbedtls/mbedtls-2.16.10.ebuild   | 7 +++++++
 net-libs/mbedtls/mbedtls-2.16.11.ebuild   | 7 +++++++
 net-libs/mbedtls/mbedtls-2.26.0.ebuild    | 7 +++++++
 net-libs/mbedtls/mbedtls-2.27.0-r1.ebuild | 7 +++++++
 net-libs/mbedtls/mbedtls-3.0.0.ebuild     | 6 ++++++
 5 files changed, 34 insertions(+)
Comment 16 Larry the Git Cow gentoo-dev 2024-01-14 04:05:36 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d6eeba4f18e29aa111fe08f87b03beeb9291434

commit 0d6eeba4f18e29aa111fe08f87b03beeb9291434
Author:     Azamat H. Hackimov <azamat.hackimov@gmail.com>
AuthorDate: 2024-01-07 19:58:07 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-01-14 04:01:12 +0000

    net-libs/mbedtls: fix testsuite failures
    
    Appears that unittests can't be run in parallel.
    
    Closes: https://bugs.gentoo.org/914925
    Closes: https://bugs.gentoo.org/718390
    Closes: https://bugs.gentoo.org/829861
    Signed-off-by: Azamat H. Hackimov <azamat.hackimov@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/34702
    Signed-off-by: Sam James <sam@gentoo.org>

 net-libs/mbedtls/mbedtls-2.28.5.ebuild | 12 +++---------
 net-libs/mbedtls/mbedtls-2.28.6.ebuild | 10 +++-------
 net-libs/mbedtls/mbedtls-3.5.1.ebuild  | 10 +++-------
 3 files changed, 9 insertions(+), 23 deletions(-)