Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 718390

Summary: net-libs/mbedtls fails PSA tests (psa_crypto_slot_management-suite, psa_its-suite)
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Anthony Basile <blueness>
Status: CONFIRMED ---    
Severity: normal CC: alexey+gentoo, neddyseagoon, sam, toralf
Priority: Normal Keywords: TESTFAILURE
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/ARMmbed/mbedtls/issues/3291
See Also: https://bugs.gentoo.org/show_bug.cgi?id=714582
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
mbedtls-2.22.0:20200419-185445.log
LastTest.log.bz2
mbedtls-2.22.0-r1:20200430-073000.log

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(+)