Bug 231763 - iwm: random panics (backtrace included)
Summary: iwm: random panics (backtrace included)
Status: Closed Feedback Timeout
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-wireless (Nobody)
Keywords: panic
Depends on:
Reported: 2018-09-27 16:25 UTC by Johannes Lundberg
Modified: 2020-05-20 15:44 UTC (History)
3 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Lundberg 2018-09-27 16:25:00 UTC
Occasionally the system suddenly reboots. The more I use wifi (without ethernet connected), the more often this happens.

wlan0 is configured as fail-over with lagg0 and em0.

OS version is 12.0-ALPHA6.

Unread portion of the kernel message buffer:
fault code              = supervisor read data, page not present
instruction pointer     = 0x20:0xffffffff80682bed
stack pointer           = 0x28:0xfffffe009b4183d0
frame pointer           = 0x28:0xfffffe009b418440
code segment            = base rx0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = 3266 (wpa_supplicant)
trap number             = 12
Dumping 1195 out of 16251 MB:..2%..11%..21%..31%..41%..51%..61%..71%..81%..92%

__curthread () at ./machine/pcpu.h:230
230             __asm("movq %%gs:%1,%0" : "=r" (td)
(kgdb) #0  __curthread () at ./machine/pcpu.h:230
#1  doadump (textdump=0) at /usr/src/sys/kern/kern_shutdown.c:366
#2  0xffffffff823adfe8 in vt_kms_postswitch ()
   from /boot/modules.drm-v4.16/drm.ko
#3  0xffffffff80521aac in vt_window_switch (
    vw=0xffffffff80e8b960 <vt_conswindow>)
    at /usr/src/sys/dev/vt/vt_core.c:580
#4  0xffffffff8051ecc0 in vtterm_cngrab (tm=<optimized out>)
    at /usr/src/sys/dev/vt/vt_core.c:1572
#5  0xffffffff80640552 in cngrab () at /usr/src/sys/kern/kern_cons.c:370
#6  0xffffffff806a363b in vpanic (fmt=0xffffffff80afcafc "%s", 
    ap=0xfffffe009b418120) at /usr/src/sys/kern/kern_shutdown.c:846
#7  0xffffffff806a3533 in panic (fmt=<unavailable>)
    at /usr/src/sys/kern/kern_shutdown.c:799
#8  0xffffffff80a3da6f in trap_fatal (frame=0xfffffe009b418310, eva=1040)
    at /usr/src/sys/amd64/amd64/trap.c:935
#9  0xffffffff80a3dac9 in trap_pfault (frame=0xfffffe009b418310, usermode=0)
    at /usr/src/sys/amd64/amd64/trap.c:771
#10 0xffffffff80a3d0ee in trap (frame=0xfffffe009b418310)
    at /usr/src/sys/amd64/amd64/trap.c:441
#11 <signal handler called>
#12 __mtx_lock_sleep (c=0xfffffe00a21f71b0, v=<optimized out>)
    at /usr/src/sys/kern/kern_mutex.c:565
#13 0xffffffff8080d362 in psq_drain (psq=<optimized out>)
    at /usr/src/sys/net80211/ieee80211_power.c:187
#14 ieee80211_node_psq_drain (ni=0xfffffe00a21f4000)
    at /usr/src/sys/net80211/ieee80211_power.c:214
#15 0xffffffff80801a37 in node_cleanup (ni=0xfffffe00a21f4000)
    at /usr/src/sys/net80211/ieee80211_node.c:1238
#16 0xffffffff80801955 in node_free (ni=0xfffffe00a21f4000)
    at /usr/src/sys/net80211/ieee80211_node.c:1275
#17 0xffffffff80802e40 in ieee80211_sta_join1 (selbs=<optimized out>)
    at /usr/src/sys/net80211/ieee80211_node.c:865
#18 0xffffffff80803d74 in ieee80211_sta_join (vap=<optimized out>, 
    chan=<optimized out>, se=<optimized out>)
    at /usr/src/sys/net80211/ieee80211_node.c:1037
#19 0xffffffff807f8de1 in setmlme_assoc_sta (vap=<optimized out>, 
    mac=0xfffffe009b4185e4 "`\320,\017\035\330Courtyard_GUEST", 
    ssid_len=<optimized out>, ssid=<optimized out>)
    at /usr/src/sys/net80211/ieee80211_ioctl.c:1579
#20 ieee80211_ioctl_setmlme (vap=<optimized out>, ireq=<optimized out>)
    at /usr/src/sys/net80211/ieee80211_ioctl.c:1636
#21 ieee80211_ioctl_set80211 (vap=<optimized out>, cmd=0, 
    ireq=<optimized out>) at /usr/src/sys/net80211/ieee80211_ioctl.c:2907
#22 0xffffffff807a8b61 in ifioctl (so=0xfffff802342dca38, cmd=2149607914, 
    data=<optimized out>, td=0xfffff8011b9b7000) at /usr/src/sys/net/if.c:3101
#23 0xffffffff8070e55d in fo_ioctl (fp=<optimized out>, com=<optimized out>, 
    active_cred=0xfffff8011b9b7000, td=<optimized out>, data=<optimized out>)
    at /usr/src/sys/sys/file.h:330
#24 kern_ioctl (td=0xfffff8011b9b7000, fd=4, com=2149607914, 
    data=0xfffffe0000887000 "") at /usr/src/sys/kern/sys_generic.c:800
#25 0xffffffff8070e27e in sys_ioctl (td=0xfffff8011b9b7000, 
    uap=0xfffff8011b9b73c0) at /usr/src/sys/kern/sys_generic.c:712
#26 0xffffffff80a3e489 in syscallenter (td=<optimized out>)
    at /usr/src/sys/amd64/amd64/../../kern/subr_syscall.c:135
#27 amd64_syscall (td=0xfffff8011b9b7000, traced=0)
    at /usr/src/sys/amd64/amd64/trap.c:1050
#28 <signal handler called>
#29 0x0000000800828bba in ?? ()
Backtrace stopped: Cannot access memory at address 0x7fffffffe6f8
Comment 1 Andriy Voskoboinyk freebsd_committer 2018-12-17 04:25:53 UTC

1) Is it reproducible on 12-RELEASE?
2) Does it happen if wlan.ko is built as module with optimizations disabled? (CFLAGS='-O0')