Raspberry Pi 3B+ Kernel Panic when connecting to Wi-Fi

This forum is for topics dealing with problems with software specifically in the ARMv7h repo.

Raspberry Pi 3B+ Kernel Panic when connecting to Wi-Fi

Postby Verequies » Thu May 16, 2019 10:20 pm

Hey Guys,

Ever since the last update, in the last week ( its got to be the linux or wpa_supplicant updates ) my RPi 3B+ kernel panics upon connecting to my university Wi-Fi. I am unsure what to do here. I do have a previous image from last week that I backed up, and can confirm it works fine on that. In fact I narrowed it down to wpa_supplicant by installing the updates individually.

This is the kernel panic:
$this->bbcode_second_pass_code('', '

[ 205.743389] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 205.743400] brcmfmac: power management disabled
[ 211.159182] ------------[ cut here ]------------
[ 211.159249] WARNING: CPU: 0 PID: 26424 at drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c:5124 brcmf_cfg80211_set_pmk+0x3c/0x54 [brcmfmac]
[ 211.159252] Modules linked in: btsdio bluetooth ecdh_generic brcmfmac brcmutil bcm2835_v4l2(C) bcm2835_codec(C) cfg80211 v4l2_mem2mem bcm2835_mmal_vchiq(C) v4l2_common videobuf2_dma_contig videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_common raspberrypi_hwmon videodev hwmon media vc_sm_cma(C) bcm2835_rng rng_core uio_pdrv_genirq uio fixed sch_fq_codel snd_bcm2835(C) snd_pcm snd_timer snd ip_tables x_tables ipv6
[ 211.159330] CPU: 0 PID: 26424 Comm: wpa_supplicant Tainted: G C 4.19.42-1-ARCH #1
[ 211.159332] Hardware name: BCM2835
[ 211.159351] [<801100f4>] (unwind_backtrace) from [<8010c6d8>] (show_stack+0x10/0x14)
[ 211.159361] [<8010c6d8>] (show_stack) from [<80b0c310>] (dump_stack+0xb8/0xe0)
[ 211.159374] [<80b0c310>] (dump_stack) from [<8012caa8>] (__warn.part.3+0xa8/0xd4)
[ 211.159383] [<8012caa8>] (__warn.part.3) from [<8012cc2c>] (warn_slowpath_null+0x40/0x4c)
[ 211.159428] [<8012cc2c>] (warn_slowpath_null) from [<7f525010>] (brcmf_cfg80211_set_pmk+0x3c/0x54 [brcmfmac])
[ 211.159675] [<7f525010>] (brcmf_cfg80211_set_pmk [brcmfmac]) from [<7f2831c0>] (nl80211_set_pmk+0x14c/0x2d8 [cfg80211])
[ 211.159836] [<7f2831c0>] (nl80211_set_pmk [cfg80211]) from [<80a46f44>] (genl_rcv_msg+0x1f4/0x3ec)
[ 211.159848] [<80a46f44>] (genl_rcv_msg) from [<80a46128>] (netlink_rcv_skb+0xb4/0x110)
[ 211.159857] [<80a46128>] (netlink_rcv_skb) from [<80a46d3c>] (genl_rcv+0x20/0x34)
[ 211.159864] [<80a46d3c>] (genl_rcv) from [<80a458bc>] (netlink_unicast+0x178/0x200)
[ 211.159870] [<80a458bc>] (netlink_unicast) from [<80a45bb4>] (netlink_sendmsg+0x1b0/0x3b0)
[ 211.159878] [<80a45bb4>] (netlink_sendmsg) from [<809dba28>] (sock_sendmsg+0x14/0x24)
[ 211.159886] [<809dba28>] (sock_sendmsg) from [<809dc288>] (___sys_sendmsg+0x23c/0x258)
[ 211.159893] [<809dc288>] (___sys_sendmsg) from [<809dd184>] (__sys_sendmsg+0x4c/0x8c)
[ 211.159901] [<809dd184>] (__sys_sendmsg) from [<801011c8>] (__sys_trace_return+0x0/0x10)
[ 211.159905] Exception stack(0xa9c17fa8 to 0xa9c17ff0)
[ 211.159911] 7fa0: 016bebd8 016f99f8 00000004 7eab5fa0 00000000 00000000
[ 211.159916] 7fc0: 016bebd8 016f99f8 016beb60 00000128 76f8ec60 00000000 00000004 ffffffff
[ 211.159921] 7fe0: 0000006c 7eab5f58 76f73a9c 76c07e94
[ 211.159926] ---[ end trace 5358b6b0005fe21f ]---
[ 211.160138] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 211.374078] audit: type=1130 audit(1558044541.009:34): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=netctl@QUT comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 211.417199] 8021q: 802.1Q VLAN Support v1.8
[ 211.417241] 8021q: adding VLAN 0 to HW filter on device eth0
[ 217.183158] ------------[ cut here ]------------
[ 217.183232] WARNING: CPU: 1 PID: 26424 at drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c:5124 brcmf_cfg80211_set_pmk+0x3c/0x54 [brcmfmac]
[ 217.183235] Modules linked in: 8021q garp stp mrp llc btsdio bluetooth ecdh_generic brcmfmac brcmutil bcm2835_v4l2(C) bcm2835_codec(C) cfg80211 v4l2_mem2mem bcm2835_mmal_vchiq(C) v4l2_common videobuf2_dma_contig videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_common raspberrypi_hwmon videodev hwmon media vc_sm_cma(C) bcm2835_rng rng_core uio_pdrv_genirq uio fixed sch_fq_codel snd_bcm2835(C) snd_pcm snd_timer snd ip_tables x_tables ipv6
[ 217.183326] CPU: 1 PID: 26424 Comm: wpa_supplicant Tainted: G WC 4.19.42-1-ARCH #1
[ 217.183328] Hardware name: BCM2835
[ 217.183348] [<801100f4>] (unwind_backtrace) from [<8010c6d8>] (show_stack+0x10/0x14)
[ 217.183357] [<8010c6d8>] (show_stack) from [<80b0c310>] (dump_stack+0xb8/0xe0)
[ 217.183369] [<80b0c310>] (dump_stack) from [<8012caa8>] (__warn.part.3+0xa8/0xd4)
[ 217.183378] [<8012caa8>] (__warn.part.3) from [<8012cc2c>] (warn_slowpath_null+0x40/0x4c)
[ 217.183423] [<8012cc2c>] (warn_slowpath_null) from [<7f525010>] (brcmf_cfg80211_set_pmk+0x3c/0x54 [brcmfmac])
[ 217.183668] [<7f525010>] (brcmf_cfg80211_set_pmk [brcmfmac]) from [<7f2831c0>] (nl80211_set_pmk+0x14c/0x2d8 [cfg80211])
[ 217.183815] [<7f2831c0>] (nl80211_set_pmk [cfg80211]) from [<80a46f44>] (genl_rcv_msg+0x1f4/0x3ec)
[ 217.183825] [<80a46f44>] (genl_rcv_msg) from [<80a46128>] (netlink_rcv_skb+0xb4/0x110)
[ 217.183831] [<80a46128>] (netlink_rcv_skb) from [<80a46d3c>] (genl_rcv+0x20/0x34)
[ 217.183838] [<80a46d3c>] (genl_rcv) from [<80a458bc>] (netlink_unicast+0x178/0x200)
[ 217.183845] [<80a458bc>] (netlink_unicast) from [<80a45bb4>] (netlink_sendmsg+0x1b0/0x3b0)
[ 217.183854] [<80a45bb4>] (netlink_sendmsg) from [<809dba28>] (sock_sendmsg+0x14/0x24)
[ 217.183862] [<809dba28>] (sock_sendmsg) from [<809dc288>] (___sys_sendmsg+0x23c/0x258)
[ 217.183869] [<809dc288>] (___sys_sendmsg) from [<809dd184>] (__sys_sendmsg+0x4c/0x8c)
[ 217.183878] [<809dd184>] (__sys_sendmsg) from [<801011c8>] (__sys_trace_return+0x0/0x10)
[ 217.183882] Exception stack(0xa9c17fa8 to 0xa9c17ff0)
[ 217.183889] 7fa0: 016bebd8 016e1538 00000004 7eab5fa0 00000000 00000000
[ 217.183895] 7fc0: 016bebd8 016e1538 016beb60 00000128 76f8ec60 00000000 00000004 ffffffff
[ 217.183899] 7fe0: 0000006c 7eab5f58 76f73a9c 76c07e94
[ 217.183904] ---[ end trace 5358b6b0005fe220 ]---
')

Any help on this matter would be appreciated. For now I am going to have to use my old image and not update.
Verequies
 
Posts: 14
Joined: Mon Feb 20, 2017 11:55 am

Re: Raspberry Pi 3B+ Kernel Panic when connecting to Wi-Fi

Postby tombana » Sun Jun 09, 2019 10:01 pm

Hi,

I have the exact same problem, on the Pi 3B, and I also dont know what to do.

The problem only occurs with the latest wpa_supplicant; if I replace /usr/bin/wpa_supplicant with an older binary it works fine. It also works fine connecting to 'normal' wifi networks, it only panics when connecting to eduroam. The kernel messages I get are the same as in the original post.

For completeness, here is my netctl (wpa_supplicant) file showing the properties of the network.
$this->bbcode_second_pass_code('', 'Description='eduroam network'
Interface=wlan0
Connection=wireless
Security=wpa-configsection
IP=dhcp
TimeoutWPA=30
WPAConfigSection=(
'ssid="eduroam"'
'scan_ssid=1'
'key_mgmt=WPA-EAP'
'eap=TTLS'
'phase1="peaplabel=0"'
'phase2="auth=PAP"'
'identity="masked@masked"'
'password="masked"'
'ca_cert="my_university_certificate.crt"'
)')
tombana
 
Posts: 5
Joined: Sun Jun 09, 2019 9:48 pm

Re: Raspberry Pi 3B+ Kernel Panic when connecting to Wi-Fi

Postby lategoodbye » Mon Jun 17, 2019 3:57 pm

Hi,
i was able to reproduce this issue and reported this to linux-wireless:
https://marc.info/?l=linux-wireless&m=1 ... 109807&w=2

There is at least a fix for wpa_supplicant:
https://marc.info/?l=linux-wireless&m=1 ... 09110&q=p3

Can anyone of you test it, because i currently i don't have the time yet?
lategoodbye
 
Posts: 116
Joined: Sat Dec 29, 2018 1:24 am

Re: Raspberry Pi 3B+ Kernel Panic when connecting to Wi-Fi

Postby lategoodbye » Thu Jun 20, 2019 6:20 pm

Okay, i successfully tested the wpa_supplicant patch.
lategoodbye
 
Posts: 116
Joined: Sat Dec 29, 2018 1:24 am

Re: Raspberry Pi 3B+ Kernel Panic when connecting to Wi-Fi

Postby tombana » Sat Jul 27, 2019 3:44 pm

$this->bbcode_second_pass_quote('lategoodbye', '
')There is at least a fix for wpa_supplicant:
https://marc.info/?l=linux-wireless&m=1 ... 09110&q=p3

Can anyone of you test it, because i currently i don't have the time yet?


Thank you so much! How can I test it? It is not yet in the arch arm repository https://archlinuxarm.org/packages/arm/wpa_supplicant. I found this git repository https://w1.fi/cgit/hostap/ but in that wpa_supplicant.c file I do not see the fix that you supplied.
tombana
 
Posts: 5
Joined: Sun Jun 09, 2019 9:48 pm

Re: Raspberry Pi 3B+ Kernel Panic when connecting to Wi-Fi

Postby lategoodbye » Sat Jul 27, 2019 10:12 pm

You will to build wpa_supplicant on your own with this patch:
http://lists.infradead.org/pipermail/ho ... 40315.html

This is very frustrating, because with every Kernel release at least one thing is broken. In Linux 5.3-rc1 it's Wifi again :(
lategoodbye
 
Posts: 116
Joined: Sat Dec 29, 2018 1:24 am

Re: Raspberry Pi 3B+ Kernel Panic when connecting to Wi-Fi

Postby tombana » Sun Jul 28, 2019 2:34 pm

$this->bbcode_second_pass_quote('lategoodbye', 'Y')ou will to build wpa_supplicant on your own with this patch:
http://lists.infradead.org/pipermail/ho ... 40315.html

So do I clone the master branch of https://w1.fi/cgit/hostap/, or do I need another branch? Then, do I manually make the changes that are written in https://lists.infradead.org/pipermail/hostap/2019-July/040315.html? I'm not sure how to find the commit that is referenced in that link.
tombana
 
Posts: 5
Joined: Sun Jun 09, 2019 9:48 pm

Re: Raspberry Pi 3B+ Kernel Panic when connecting to Wi-Fi

Postby lategoodbye » Sun Jul 28, 2019 4:00 pm

Yes, you should leave at master branch.

Since the patch hasn't applied yet, you will need to apply it manually. Try this:

https://patchwork.ozlabs.org/patch/1125655/

Click on mbox, download the patch and apply it with git am my.patch

Alternative "solution" is to downgrade wpa_supplicant to 2.7
lategoodbye
 
Posts: 116
Joined: Sat Dec 29, 2018 1:24 am

Re: Raspberry Pi 3B+ Kernel Panic when connecting to Wi-Fi

Postby tombana » Sun Jul 28, 2019 6:50 pm

$this->bbcode_second_pass_quote('lategoodbye', 'C')lick on mbox, download the patch and apply it with git am my.patch

Thanks, I successfully compiled wpa_supplicant with the patch. I'm not near an eduroam network right now, I'll post here when I can test it.
tombana
 
Posts: 5
Joined: Sun Jun 09, 2019 9:48 pm
Top

Re: Raspberry Pi 3B+ Kernel Panic when connecting to Wi-Fi

Postby tombana » Tue Aug 27, 2019 6:25 am

I tested it and it works fine, and it seems to be in the main arch linux repository now.
Thank you so much @lategoodbye for your help.
tombana
 
Posts: 5
Joined: Sun Jun 09, 2019 9:48 pm

Next

Return to ARMv7h

Who is online

Users browsing this forum: No registered users and 33 guests