Linux wireless drivers development
 help / color / mirror / Atom feed
* Kernel hangs on regulatory.db X.509 key initialization
@ 2019-02-17  9:38 Dominik Schmidt
  2019-02-17 12:29 ` Maciej S. Szmigiero
  0 siblings, 1 reply; 3+ messages in thread
From: Dominik Schmidt @ 2019-02-17  9:38 UTC (permalink / raw)
  To: linux-wireless; +Cc: mail, james.morris

[-- Attachment #1: Type: text/plain, Size: 1572 bytes --]

Hi there!

I'm running a Gentoo Linux on an APU2C2-Board (AMD Jaguar GX-412TC x86_64), with
an Atheros QCA9882 (ath10k) and an Atheros AR9280 (ath9k) card.

The kernels after 4.18 do not reach userspace any longer. They just somehow
"freeze" without emitting any oops or kernel panic. I've tracked the issue
down to the cfg80211 subsystem and a change in the X.509 parser:

* If I do not compile cfg80211 into the kernel, it starts perfectly (minus wireless)

* Bisecting the issue shows that it starts with
	https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b65c32ec5a942ab3ada93a048089a938918aba7f

* The last message I see in the logs is this one:
	cfg80211: Loading compiled-in X.509 certificates for regulatory database
  defined at
	https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/net/wireless/reg.c#n770

* If I add another pr_notice to the end of that function, it is never displayed.

* It seems to get stuck at the call to key_create_or_update, here:
	https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/net/wireless/reg.c#n735

* If I throw more pr_notices at key_create_or_update, the last one I see 
  is before this memset:
	https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/security/keys/key.c#n843

* As an additional hindrance, this problem occurs only on the APU2 board,
  and not when running the same kernel in a Qemu-VM

Any idea what could be the cause of this, or hints as to how to
debug this further?

Cheers
Dominik

[-- Attachment #2: .config.bz2 --]
[-- Type: application/x-bzip, Size: 20579 bytes --]

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

end of thread, other threads:[~2019-02-17 15:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-17  9:38 Kernel hangs on regulatory.db X.509 key initialization Dominik Schmidt
2019-02-17 12:29 ` Maciej S. Szmigiero
2019-02-17 15:47   ` Dominik Schmidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox