RE: [EXT] caam test failures with libkcapi

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




> -----Original Message-----
> From: Ondrej Mosnacek <omosnace@xxxxxxxxxx>
> Sent: Saturday, December 23, 2023 7:29 PM
> To: Gaurav Jain <gaurav.jain@xxxxxxx>
> Cc: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>; Horia Geanta
> <horia.geanta@xxxxxxx>; Pankaj Gupta <pankaj.gupta@xxxxxxx>; Linux
> Crypto Mailing List <linux-crypto@xxxxxxxxxxxxxxx>
> Subject: Re: [EXT] caam test failures with libkcapi
>
> Caution: This is an external email. Please take care when clicking links or
> opening attachments. When in doubt, report the message using the 'Report this
> email' button
>
>
> On Fri, Dec 22, 2023 at 11:50 AM Gaurav Jain <gaurav.jain@xxxxxxx> wrote:
> >
> > Hi Herbert
> >
> > tcrypt tests are passing with kernel crypto CAAM driver.
>
> Is that also with CONFIG_CRYPTO_MANAGER_EXTRA_TESTS=y ? (We didn't test
> that, but we suspect it may be able to trigger the issue.)

After enabling the config, I see errors "AES: Data size error". I am not sure if it is expected. debugging this.

>
> > Can you please share the logs for libkcapi test failures.
>
> A log from our kernel CI testing is available here (it is from CentOS Stream 9, but
> it fails in the same way on the Fedora's 6.6.6-based
> kernel):
> https://s3.amaz/
> onaws.com%2Farr-cki-prod-trusted-artifacts%2Ftrusted-
> artifacts%2F1109180874%2Ftest_aarch64%2F5766414724%2Fartifacts%2Frun.d
> one.03%2Fjob.01%2Frecipes%2F15194733%2Ftasks%2F31%2Flogs%2Ftaskout.l
> og&data=05%7C02%7Cgaurav.jain%40nxp.com%7C3b52a83449bf4b3fffe208dc
> 03bf4b66%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C6383893673
> 38072709%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2l
> uMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=9SCFiT
> 1nNsTZg4bh6n75CeicDC51Jw3wacQCaL7w4vQ%3D&reserved=0

In this log I cannot see CAAM failures. can you tell which CAAM tfm failed?

>
> You should be able to reproduce it on your machine easily:
> 1. dnf install -y git-core gcc autoconf automake libtool (or an equivalent for your
> distribution) 2. git clone
> https://github.co/
> m%2FsmuellerDD%2Flibkcapi%2F&data=05%7C02%7Cgaurav.jain%40nxp.com%
> 7C3b52a83449bf4b3fffe208dc03bf4b66%7C686ea1d3bc2b4c6fa92cd99c5c3016
> 35%7C0%7C0%7C638389367338072709%7CUnknown%7CTWFpbGZsb3d8eyJWI
> joiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C300
> 0%7C%7C%7C&sdata=TjcbxQmdR8NbZKW8MZv6l6Z6YyGVErqsg9VtEUN7KyA%3
> D&reserved=0
> 3. cd libkcapi/
> 4. autoreconf -i
> 5. cd test/
> 6. ./test-invocation.sh

Will try this later after checking AES Data size error reported with CONFIG_CRYPTO_MANAGER_EXTRA_TESTS=y

>
> >
> > Regards
> > Gaurav Jain
> >
> > > -----Original Message-----
> > > From: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
> > > Sent: Friday, December 22, 2023 8:46 AM
> > > To: Horia Geanta <horia.geanta@xxxxxxx>; Gaurav Jain
> > > <gaurav.jain@xxxxxxx>; Pankaj Gupta <pankaj.gupta@xxxxxxx>; Linux
> > > Crypto Mailing List <linux-crypto@xxxxxxxxxxxxxxx>
> > > Cc: Ondrej Mosnacek <omosnace@xxxxxxxxxx>
> > > Subject: [EXT] caam test failures with libkcapi
> > >
> > > Caution: This is an external email. Please take care when clicking
> > > links or opening attachments. When in doubt, report the message
> > > using the 'Report this email' button
> > >
> > >
> > > Hi:
> > >
> > > It's been brought to my attention that the caam driver fails with
> > > libkcapi test
> > > suite:
> > >
> > >
> > > https://gi/
> > >
> thub.co%2F&data=05%7C02%7Cgaurav.jain%40nxp.com%7C3b52a83449bf4b3f
> ff
> > >
> e208dc03bf4b66%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C6383
> 8936
> > >
> 7338072709%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoi
> V2luM
> > >
> zIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=jKmA34E6f
> %2F
> > > ZEluj%2FM6xfnBsiVgO4a8ilmVGzcmEnL%2Bc%3D&reserved=0
> > >
> m%2FsmuellerDD%2Flibkcapi%2F&data=05%7C02%7Cgaurav.jain%40nxp.com%
> > >
> 7C3dad774d29404c40164908dc029c4da1%7C686ea1d3bc2b4c6fa92cd99c5c30
> > >
> 1635%7C0%7C0%7C638388117546628060%7CUnknown%7CTWFpbGZsb3d8eyJ
> > >
> WIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C
> > >
> 3000%7C%7C%7C&sdata=aQ2MLvyfioDjh8a1c600f8A5sTMSlaPSckg8QY6RpVs%
> > > 3D&reserved=0
> > >
> > > Can you please have a look into this? It would also be useful to get
> > > some confirmation that caam still passes the extra fuzzing tests.
> > >
> > > Thanks,
> > > --
> > > Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> Home Page:
> > > http://gon/
> > >
> dor.ap%2F&data=05%7C02%7Cgaurav.jain%40nxp.com%7C3b52a83449bf4b3ff
> fe
> > >
> 208dc03bf4b66%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C63838
> 9367
> > >
> 338072709%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV
> 2luMz
> > >
> IiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=rWJnuyt493
> W6K
> > > VCS0pHGkIZh83VXpSIntD%2FzZSrpQeo%3D&reserved=0
> > >
> ana.org.au%2F~herbert%2F&data=05%7C02%7Cgaurav.jain%40nxp.com%7C3d
> > >
> ad774d29404c40164908dc029c4da1%7C686ea1d3bc2b4c6fa92cd99c5c301635
> > > %7C0%7C0%7C638388117546784331%7CUnknown%7CTWFpbGZsb3d8eyJW
> Ijoi
> > >
> MC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000
> > > %7C%7C%7C&sdata=9YTdCRpZOzKmkYlMKhGvBkuvVG9tmg%2FQ4Y1VnLuV
> GCg
> > > %3D&reserved=0
> > > PGP Key:
> > > http://gon/
> > >
> dor.ap%2F&data=05%7C02%7Cgaurav.jain%40nxp.com%7C3b52a83449bf4b3ff
> fe
> > >
> 208dc03bf4b66%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C63838
> 9367
> > >
> 338072709%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV
> 2luMz
> > >
> IiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=rWJnuyt493
> W6K
> > > VCS0pHGkIZh83VXpSIntD%2FzZSrpQeo%3D&reserved=0
> > >
> ana.org.au%2F~herbert%2Fpubkey.txt&data=05%7C02%7Cgaurav.jain%40nxp.
> > > c
> om%7C3dad774d29404c40164908dc029c4da1%7C686ea1d3bc2b4c6fa92cd99c
> > >
> 5c301635%7C0%7C0%7C638388117546784331%7CUnknown%7CTWFpbGZsb3d
> > >
> 8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D
> > > %7C3000%7C%7C%7C&sdata=jf80tCyfL65DjtCqNfX%2BYnEKIC%2FG8PL63Li
> ZyP
> > > GGgdk%3D&reserved=0
> >
>
>
> --
> Ondrej Mosnacek
> Senior Software Engineer, Linux Security - SELinux kernel Red Hat, Inc.





[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]
  Powered by Linux