linux-crypto.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* CAAM RSA breaks cfg80211 certificate verification on iMX8QXP
@ 2025-11-24 19:03 Vitor Soares
  2025-11-26 10:55 ` Vitor Soares
  0 siblings, 1 reply; 5+ messages in thread
From: Vitor Soares @ 2025-11-24 19:03 UTC (permalink / raw)
  To: linux-crypto, linux-kernel
  Cc: horia.geanta, pankaj.gupta, gaurav.jain, herbert, john.ernberg,
	meenakshi.aggarwal

I’m currently investigating an issue on our Colibri iMX8QXP SoM running kernel
6.18-rc6 (also reproducible on v6.17), where cfg80211 fails to load the
compiled-in X.509 certificates used to verify the regulatory database signature.

During boot, I consistently see the following messages:
 cfg80211: Loading compiled-in X.509 certificates for regulatory database
 Problem loading in-kernel X.509 certificate (-22)
 Problem loading in-kernel X.509 certificate (-22)
 cfg80211: loaded regulatory.db is malformed or signature is missing/invalid

As part of the debugging process, I removed the CAAM crypto drivers and manually
reloaded cfg80211. In this configuration, the certificates load correctly and
the regulatory database is validated with no errors.

With additional debugging enabled, I traced the failure to crypto_sig_verify(),
which returns -22 (EINVAL).
At this stage, I’m trying to determine whether:
 - This is a known issue involving cfg80211 certificate validation when the CAAM
hardware crypto engine is enabled on i.MX SoCs, or
 - CAAM may be returning unexpected values to the X.509 verification logic.

If anyone has encountered similar behavior or can suggest areas to
investigate—particularly around CAAM—I would greatly appreciate your guidance.

Thanks in advance for any insights,
Vítor Soares

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-11-28 10:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-24 19:03 CAAM RSA breaks cfg80211 certificate verification on iMX8QXP Vitor Soares
2025-11-26 10:55 ` Vitor Soares
2025-11-26 12:59   ` Ahmad Fatoum
2025-11-26 18:35     ` Vitor Soares
2025-11-28 10:36       ` Ahmad Fatoum

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).