From nobody Thu Dec 29 06:44:28 2022 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 4NjJld0vY0z2c9ch for ; Thu, 29 Dec 2022 06:44:29 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NjJlc5gTmz4Scd for ; Thu, 29 Dec 2022 06:44:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672296268; 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: in-reply-to:in-reply-to:references:references; bh=UCEdsePPqvzlmCyOcXLnxaJTpGSgkvC+LPau545e0ws=; b=uJhoa8OzhDBLGSg5Lw/6EoxeVxfZ1iuhwyIUN8zbEyDwKS+hvQhO87aVqd7BonRsPitDt6 /I5lHbujvZEqeAifSopN2z3DhEsbVgrJSJ86wzvRcjd7k/HFOiZG8V3UcHY2hnJManWbaH NUlolO/dgeDUcLK4cvSEoAiBI4VOPK5orV+uuva9Rd3GzI5Xvv5W0b0Bh3dnp9JrpsBDkQ kA3xSOo2xb6pJiBvGdMnK4aj8fcJsaoHN33VC+2zcA3V+BiMC9XzAn+JmZVF951EkTdope PcrzMw3OkHNbeCXIYDg/LG86WLPXUbXYBGAhVDPY0vUQwKfB6cy2CGTcmR70rw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1672296268; a=rsa-sha256; cv=none; b=X3CccmUG+wDkifc8iI1b9vtRoHeiRUPK/M44aY0Zzch+Bd33Mp9NP1i8DSAwNDnf/JYWyL NqAdxP2BwRwviW1doT+OAesXSPmi+RfM/Lwx2X54r32+Fp7yybivC0EXmSsj3h04Bh/bRr 14LlXRwlG4ydGOw4MwYKa3Baa9YKlXgo6VIFwdASr2me+jag+sEezoCHuz1udcHRKpE8ww NktEBQTqxyTziknl4w+lFm09HdYBYKI2KIs1aWR5nOzBv1gu7CEvfYJSk1K9AHHYyB192d m0Jms/ng0e7zyIAeJIybSQt8a+YflrgtJavvcsrjT9GMNctlN8nRN6uSEHR8CA== 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 4NjJlc4dmmzKSL for ; Thu, 29 Dec 2022 06:44:28 +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 2BT6iS8U037278 for ; Thu, 29 Dec 2022 06:44:28 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2BT6iSF3037277 for wireless@FreeBSD.org; Thu, 29 Dec 2022 06:44:28 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 268565] panic after "killall wpa_supplicant" followed by "/etc/rc.d/netif start" with rtw880 Date: Thu, 29 Dec 2022 06:44:28 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: wireless X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: crash X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: misha@freebsd.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: wireless@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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: Sender: owner-freebsd-wireless@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268565 --- Comment #3 from Mikhail Pchelin --- (In reply to Bjoern A. Zeeb from comment #2) My initial report must have contained more details, fixing it: I'm connected to WPA2 SSID, ping is working, then I do "killall wpa_supplic= ant" followed by "/etc/rc.d/netif start" and get the panic. needed part of rc.conf: wlans_rtw880=3D"wlan0" ifconfig_wlan0=3D"WPA DHCP" wpa_supplicant.conf: network=3D{ ssid=3D"" psk=3D"" } When I issue "killall wpa_supplicant" following series of actions happens: ieee80211_newstate_cb lkpi_iv_newstate (nstate=3DIEEE80211_S_INIT) lkpi_sta_run_to_init lkpi_lsta_remove (this is where we ni->ni_drv_data being set to NULL) According to comments near "sta_state_fsm[]" transition from IEEE80211_S_RU= N to IEEE80211_S_INIT is done when DISASSOC frame is sent. When I do "/etc/rc.d/netif start" I get the backtrace from original message: 80211 stack is trying to issue active scan and send probe request, but ni_drv_data is NULL and therefor I get the panic. Currently I'm not sure how to fix this except checking lsta in raw_xmit and manually allocating it if fails. If the patch looks fishy, can you point the direction where to dig this further? --=20 You are receiving this mail because: You are the assignee for the bug.=