Bug 221496 - KERNEL PANIC with iwn driver
Summary: KERNEL PANIC with iwn driver
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: wireless (show other bugs)
Version: 11.1-RELEASE
Hardware: amd64 Any
: --- Affects Some People
Assignee: freebsd-wireless (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-13 22:28 UTC by vermaden
Modified: 2019-10-14 13:14 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description vermaden 2017-08-13 22:28:07 UTC
Hi,

I am able to KERNEL PANIC the latest FreeBSD 11.1-RELEASE-p1 with using these two scripts.

# cat netdown.sh
killall -9 wpa_supplicant
killall -9 ppp
killall -9 dhclient
ifconfig wlan0 destroy
ifconfig em0 down
/etc/rc.d/netif onerestart

# cat netup.sh
killall -9 wpa_supplicant
killall -9 ppp
killall -9 dhclient
ifconfig wlan0 destroy
ifconfig em0 down
/etc/rc.d/netif onerestart
ifconfig wlan0 create wlandev iwn0
ifconfig wlan0 ether 00:1e:bd:a5:61:2b
ifconfig wlan0 up
wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf -s -B
dhclient wlan0

Sometimes its not that instant and works after several minutes, but when You randomly start each of them, then the panic would occur, for example like that:

# netup.sh &
# netup.sh &
# netdown.sh &
# netup.sh &
# netdown.sh &
# netdown.sh &
# netup.sh &
# netdown.sh &
# netup.sh &
# netdown.sh &
...


The wireless card is 'Centrino Advanced-N 6205 [Taylor Peak]' in ThinkPad T520.

Its probably not 'em' driver related but I left it there because these are the commands that I actually execute.

The MAC in the above script is generated (but with first three octets from real OUI).

Regards,
vermaden
Comment 1 vermaden 2017-08-13 22:52:04 UTC
If someone wishes to try with script (network.sh) that generates these commands, its here: https://forums.freebsd.org/threads/62013/

Regards,
vermaden
Comment 2 vermaden 2019-10-14 13:14:55 UTC
This still exists in 12.1-RC1 ...

A candidate for:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240700