From nobody Wed Jul 31 11:41:57 2024 X-Original-To: wireless@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WYqv93zCMz5Rls3 for ; Wed, 31 Jul 2024 11:41:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WYqv921Mnz4MNj for ; Wed, 31 Jul 2024 11:41:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722426117; a=rsa-sha256; cv=none; b=yFEANyImIsLmBgMda0RGAhOEG0vBsafz9u6M3DGJRu2gqq3PDXEznYu5vhE9wtBI82BtzV LGg+3FSJdJEGXmN226a5qSEVACUVsYALxwJ/HMYiKSRQFAkupErBOgQklH4fFopn9Gp3zv ytaaXPiD9+A1BfQ/PGSonT64p9ik0ZU6ZzQX8FJLmkrlP9VlZno+tT4A2oT+Gel0E7sawX Z2KfAlG46f702JbJ/TSV/m0pYqB7rVl4tl+QwyFi/Djzd78ETh0JsuNcOAfiz1p3D53SEB ac/1+wuYky2Nang0ob+nlrbfxJyLdZUjkfSHWl+1oipqKkpABwq4XU66z8zjew== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722426117; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=9qx429+XqLLr3Y7WCVPtnFk3kpzE+bno/uS2u3+UryE=; b=aPfULjPmlftIZvV0CwYMff0PVOmksqAmfw4WqfcELJhXiJBPgJNYhxlrBAMiOp5uwJaEuN nFvnQwkHW2ovG+CklEhsWyCI9FkjdG7UFVi9kBbwvLc1wMsMwiNt84vTczn2rD21BOVLCK Q89db4qrlA4WnSCl6T21BmKEyd7MLMgtLH2Nmyo+HC9eKijHnIfL0hMTgjzgSxQGDD4yWj yg5buewLdhw1l7zJLu/WLzMCQCvy7H+KLKi4GeTkWBUD8jWEk+hl+kzc2Y4qYE2OJKsZFI Wl3Xe3op+sxAglfL/FUYCUYxds/+eB+oXajaiOLLABvhZpZogZAqt2m5WAv1Rg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WYqv91d3yz10P5 for ; Wed, 31 Jul 2024 11:41:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 46VBfvl1004511 for ; Wed, 31 Jul 2024 11:41:57 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 46VBfvhK004509 for wireless@FreeBSD.org; Wed, 31 Jul 2024 11:41:57 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: wireless@FreeBSD.org Subject: [Bug 280530] Kernel panic with wifi module WLE200NX (Atheros 9280?) Date: Wed, 31 Jul 2024 11:41:57 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: wireless X-Bugzilla-Version: 14.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: freebsd@felixknecht.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: wireless@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Discussions List-Archive: https://lists.freebsd.org/archives/freebsd-wireless List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-wireless@freebsd.org Sender: owner-freebsd-wireless@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280530 Bug ID: 280530 Summary: Kernel panic with wifi module WLE200NX (Atheros 9280?) Product: Base System Version: 14.1-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: wireless Assignee: wireless@FreeBSD.org Reporter: freebsd@felixknecht.de Created attachment 252391 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D252391&action= =3Dedit Full console log I get a kernel panic when initializing an interface for the wifi card WLE20= 0NX (Atheros 9280?) This happens after upgrading my opnsense installation from 24.1 (using Free= BSD 13.2-p10) to 24.7 (using FreeBSD 14.1). I filed an issue there (https://forum.opnsense.org/index.php?topic=3D41816.= 0) and was told to tell you about this. Some more details: 1. This is not a generic problem with the wifi card. It seems the panic only happens when the created interface is part of a network bridge. I actually have two interfaces created using this card (different SSIDs) and the first one (WIFIG) gets created ok. When the second one (WIFIP) is creat= ed as part of a bridge, I get the kernel panic. Another user on the opnsense thread confirmed my suspicion that it is related to a bridge. 2. Disabling SMP seems to help. Another user wrote: "The kernel panic error= has been fixed adding kern.smp.disabled=3D1 sysctl tunable value." Here is some of what I get one the console (I attached the full output): FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 14.1-RELEASE-p2 stable/24.7-n267758-4ad7ad40bc77 SMP amd64 FreeBSD clang version 18.1.5 (https://github.com/llvm/llvm-project.git llvmorg-18.1.5-0-g617a15a9eac9) VT(vga): resolution 640x480 CPU: AMD GX-412TC SOC (998.24-MHz K8-class C= PU) Origin=3D"AuthenticAMD" Id=3D0x730f01 Family=3D0x16 Model=3D0x30 Step= ping=3D1 =20 Features=3D0x178bfbff =20 Features2=3D0x3ed8220b AMD Features=3D0x2e500800 AMD Features2=3D0x1d4037ff Structured Extended Features=3D0x8 XSAVE Features=3D0x1 SVM: NP,NRIP,AFlush,DAssist,NAsids=3D8 TSC: P-state invariant, performance statistics real memory =3D 4815060992 (4592 MB) avail memory =3D 4098850816 (3908 MB) Event timer "LAPIC" quality 100 ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs FreeBSD/SMP: 1 package(s) x 4 core(s) ... wlan: mac acl policy registered ... ath0: mem 0xfe800000-0xfe80ffff at device 0.0 on pci4 [ath] enabling AN_TOP2_FIXUP ath0: [HT] enabling HT modes ath0: [HT] 1 stream STBC receive enabled ath0: [HT] 1 stream STBC transmit enabled ath0: [HT] 2 RX streams; 2 TX streams ath0: AR9280 mac 128.2 RF5133 phy 13.0 ath0: 2GHz radio: 0x0000; 5GHz radio: 0x00c0 ... Configuring WIFIG interface...done. Configuring WIFIP interface... Fatal trap 12: page fault while in kernel mode cpuid =3D 1; apic id =3D 01 fault virtual address =3D 0xffff fault code =3D supervisor read data, page not present instruction pointer =3D 0x20:0xffffffff80d5363d stack pointer =3D 0x28:0xfffffe0062769cd0 frame pointer =3D 0x28:0xfffffe0062769d00 code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags =3D interrupt enabled, resume, IOPL =3D 0 current process =3D 0 (ath0 net80211 taskq) rdi: 0000000000040000 rsi: 0000000000000001 rdx: 000000000000ffff rcx: 00000000500c2408 r8: 0000000000000000 r9: 0000000000000080 rax: fffff800b0eb6942 rbx: fffff800b0a71000 rbp: fffffe0062769d00 r10: 0000000000000000 r11: 000007fffffff000 r12: fffffe00629d6000 r13: fffff800b0eb6938 r14: fffff800b0a71000 r15: fffffe006d9d3000 trap number =3D 12 panic: page fault cpuid =3D 1 time =3D 1722197341 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe0062769= 9c0 vpanic() at vpanic+0x131/frame 0xfffffe0062769af0 panic() at panic+0x43/frame 0xfffffe0062769b50 trap_fatal() at trap_fatal+0x40b/frame 0xfffffe0062769bb0 trap_pfault() at trap_pfault+0x46/frame 0xfffffe0062769c00 calltrap() at calltrap+0x8/frame 0xfffffe0062769c00 --- trap 0xc, rip =3D 0xffffffff80d5363d, rsp =3D 0xfffffe0062769cd0, rbp = =3D 0xfffffe0062769d00 --- ieee80211_beacon_construct() at ieee80211_beacon_construct+0x7d/frame 0xfffffe0062769d00 ieee80211_beacon_alloc() at ieee80211_beacon_alloc+0xb3/frame 0xfffffe0062769d40 ath_beacon_alloc() at ath_beacon_alloc+0x84/frame 0xfffffe0062769d80 ath_newstate() at ath_newstate+0x3f2/frame 0xfffffe0062769df0 ieee80211_newstate_cb() at ieee80211_newstate_cb+0x1fc/frame 0xfffffe006276= 9e40 taskqueue_run_locked() at taskqueue_run_locked+0x182/frame 0xfffffe0062769e= c0 taskqueue_thread_loop() at taskqueue_thread_loop+0xc2/frame 0xfffffe0062769= ef0 fork_exit() at fork_exit+0x7f/frame 0xfffffe0062769f30 fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe0062769f30 --- trap 0, rip =3D 0, rsp =3D 0, rbp =3D 0 --- KDB: enter: panic [ thread pid 0 tid 100061 ] Stopped at kdb_enter+0x33: movq $0,0xfd9b22(%rip) db:0:kdb.enter.default> textdump set textdump set db:0:kdb.enter.default> capture on db:0:kdb.enter.default> run lockinfo db:1:lockinfo> show locks No such command; use "help" to list available commands db:1:lockinfo> show alllocks No such command; use "help" to list available commands db:1:lockinfo> show lockedvnods Locked vnodes db:0:kdb.enter.default> show pcpu cpuid =3D 1 dynamic pcpu =3D 0xfffffe0086ba0c40 curthread =3D 0xfffff8000380a000: pid 0 tid 100061 critnest 1 "ath0 net8= 0211 taskq" curpcb =3D 0xfffff8000380a520 fpcurthread =3D none idlethread =3D 0xfffff8000353e000: tid 100004 "idle: cpu1" self =3D 0xffffffff82611000 curpmap =3D 0xffffffff81b81670 tssp =3D 0xffffffff82611384 rsp0 =3D 0xfffffe006276a000 kcr3 =3D 0xffffffffffffffff ucr3 =3D 0xffffffffffffffff scr3 =3D 0x0 gs32p =3D 0xffffffff82611404 ldt =3D 0xffffffff82611444 tss =3D 0xffffffff82611434 curvnet =3D 0 --=20 You are receiving this mail because: You are the assignee for the bug.=