From nobody Wed Jul 19 22:11:45 2023 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 4R5qmK2wTfz4mxDb for ; Wed, 19 Jul 2023 22:11:45 +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 4R5qmK0BJ2z3tTs for ; Wed, 19 Jul 2023 22:11:45 +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=1689804705; 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=ifbrHi9Bck4CA1r6tPH7OcFiy/uoL/VpDDX5Z+eyrPo=; b=Na2w4wIXqGbQVELij2Hqvvk2Rp1fhb47rvj2pE7c1rwG+TNVmRti56rr9R3vkbWUVWzWCt yXMy5FJZfRalifUcYuq5xBCnViZoDg/FcuEO8QIh2R4yD4kFP+D4T6t01vOT1sy4OCBTab 6BAktzumPfbr/RVK/Zx3LvDrYlgFXXm+FODP/cDRmKgOFlWVVDwBXIgFrYmOJxEdJdzKya xYEJmYtwoY02iq5JsTP0mY8Ba0lRney1llekK+mD8cpr8KgRdMyjAjFDWO8FtGqrc01huX 3OfdkjQP666ECE7LKwsswqhrnlYZJIOrd9cde/8d+4TrsBcxX8lyTg8973/CBA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1689804705; a=rsa-sha256; cv=none; b=IR1I8WG83GzTBoNL9OgG/UZ9DmqHtlibLWUcYtYjYGOMXSwZ0tCfZ2XqgqsS7Rso5tUfsv VBHdt9//C4c8p6/q7xs4O9OGbCouoxiCuEQ4sApgJx5oe3qkvEj3coUh9gmeQtdrQgGOee KD7rqb4tLIhJT2SKyvVm6At+rmZzUringoAxKz7397B71FhBZop2xDWBjEZ20SxpnGXxwR 1ujCpaOD62LQgMuoM/zcySGoY9MDR7GlgeHLUxlogn5I2/P96/wbajqC6KewIBWjBcnUM8 2QzwqREBsbzJQCh8nLUn7kUdsqdPkVzvtFwTVp5o3OY/z9mVaufFLm99ngm4QA== 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 4R5qmJ6PNWz14Zx for ; Wed, 19 Jul 2023 22:11:44 +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 36JMBi1g060246 for ; Wed, 19 Jul 2023 22:11:44 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 36JMBi1J060216 for wireless@FreeBSD.org; Wed, 19 Jul 2023 22:11:44 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 272607] iwlwifi: 'service netif stop' causes kernel panic when wrong setting in wpa_supplicant.conf Date: Wed, 19 Jul 2023 22:11:45 +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: 13.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: karl.levik@gmail.com 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 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: Sender: owner-freebsd-wireless@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272607 Bug ID: 272607 Summary: iwlwifi: 'service netif stop' causes kernel panic when wrong setting in wpa_supplicant.conf Product: Base System Version: 13.2-STABLE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: wireless Assignee: wireless@FreeBSD.org Reporter: karl.levik@gmail.com Overview:=20 I was attempting to connect my laptop to the eduroam wifi network. I discovered I could reliably cause a kernel panic every time I executed 'ser= vice netif stop' or '/etc/rc.d/netif stop'. At this point I had not yet been abl= e to connect to the network. Later I found that one of my settings in /etc/wpa_supplicant.conf was wrong. I had "network {... eap=3DTTLS ...}" wh= ereas the correct setting was apparently "network {... "eap=3DPEAP" ...}". Once t= his was corrected, I was able to connect to the network, and I could no longer trigger a kernel panic.=20 Steps to Reproduce: 1. Use an /etc/wpa_supplicant.conf file similar to below. 2. Execute 'service netif stop' /etc/wpa_supplicant.conf: ctrl_interface=3D/var/run/wpa_supplicant network=3D{ ssid=3D"eduroam" scan_ssid=3D1 key_mgmt=3DWPA-EAP eap=3DTTLS identity=3D"your_id@yourdomain.tld" anonymous_identity=3D"anonymous_id@yourdomain.tld" password=3D"your_password" phase2=3D"auth=3DMSCHAPV2" ca_cert=3D"/usr/local/etc/ssl/certs/yourNetworkingRootCA.pem" } Actual Results: The system crashes with a kernel panic (page fault) with messages as sh= own below in excerpts from relevant log files. /var/log/messages: Jul 19 15:04:32 valhalla syslogd: last message repeated 2 times Jul 19 15:04:50 valhalla syslogd: last message repeated 1 times Jul 19 15:04:55 valhalla ntpd[1666]: error resolving pool 0.freebsd.pool.ntp.org: Name does not resolve (8) Jul 19 15:05:00 valhalla ntpd[1666]: error resolving pool 2.freebsd.pool.ntp.org: Name does not resolve (8) Jul 19 15:05:24 valhalla dhclient[1782]: Interface wlan1 is down, dhclient exiting Jul 19 15:05:24 valhalla dhclient[1782]: connection closed Jul 19 15:05:24 valhalla dhclient[1782]: exiting. Jul 19 15:05:38 valhalla wpa_supplicant[289]: wlan1: CTRL-EVENT-SSID-REENAB= LED id=3D1 ssid=3D"eduroam" Jul 19 15:06:59 valhalla syslogd: kernel boot file is /boot/kernel/kernel Jul 19 15:06:59 valhalla kernel: panic: page fault Jul 19 15:06:59 valhalla kernel: cpuid =3D 10 Jul 19 15:06:59 valhalla kernel: time =3D 1689775572 Jul 19 15:06:59 valhalla kernel: KDB: stack backtrace: Jul 19 15:06:59 valhalla kernel: #0 0xffffffff80c54185 at kdb_backtrace+0x65 Jul 19 15:06:59 valhalla kernel: #1 0xffffffff80c07ac2 at vpanic+0x152 Jul 19 15:06:59 valhalla kernel: #2 0xffffffff80c07963 at panic+0x43 Jul 19 15:06:59 valhalla kernel: #3 0xffffffff810bfde7 at trap_fatal+0x387 Jul 19 15:06:59 valhalla kernel: #4 0xffffffff810bfe3f at trap_pfault+0x4f Jul 19 15:06:59 valhalla kernel: #5 0xffffffff81096ce8 at calltrap+0x8 Jul 19 15:06:59 valhalla kernel: #6 0xffffffff80d8f5a3 at ieee80211_node_psq_drain+0xf3 Jul 19 15:06:59 valhalla kernel: #7 0xffffffff80d836c6 at node_cleanup+0xa6 Jul 19 15:06:59 valhalla kernel: #8 0xffffffff80d835e5 at node_free+0x25 Jul 19 15:06:59 valhalla kernel: #9 0xffffffff80d84b72 at ieee80211_sta_join1+0xc2 Jul 19 15:06:59 valhalla kernel: #10 0xffffffff80d85aaa at ieee80211_sta_join+0x42a Jul 19 15:06:59 valhalla kernel: #11 0xffffffff80d79e01 at ieee80211_ioctl_setmlme+0x111 Jul 19 15:06:59 valhalla kernel: #12 0xffffffff80d779ce at ieee80211_ioctl_set80211+0x5de Jul 19 15:06:59 valhalla kernel: #13 0xffffffff80d76541 at ieee80211_ioctl+0x311 Jul 19 15:06:59 valhalla kernel: #14 0xffffffff80d1f63d at ifioctl+0x98d Jul 19 15:06:59 valhalla kernel: #15 0xffffffff80c74cb7 at kern_ioctl+0x257 Jul 19 15:06:59 valhalla kernel: #16 0xffffffff80c749eb at sys_ioctl+0x12b Jul 19 15:06:59 valhalla kernel: #17 0xffffffff810c06dc at amd64_syscall+0x= 10c Jul 19 15:06:59 valhalla kernel: Uptime: 4m6s --- /var/run/dmesg.boot: wlan1: link state changed to UP wlan1: link state changed to DOWN wlan1: link state changed to UP wlan1: link state changed to DOWN wlan1: link state changed to UP wlan1: link state changed to DOWN Fatal trap 12: page fault while in kernel mode cpuid =3D 10; apic id =3D 0a fault virtual address =3D 0x440 fault code =3D supervisor read data, page not present instruction pointer =3D 0x20:0xffffffff80be476d stack pointer =3D 0x28:0xfffffe013ee29870 frame pointer =3D 0x28:0xfffffe013ee298f0 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 289 (wpa_supplicant) trap number =3D 12 panic: page fault cpuid =3D 10 time =3D 1689775572 KDB: stack backtrace: #0 0xffffffff80c54185 at kdb_backtrace+0x65 #1 0xffffffff80c07ac2 at vpanic+0x152 #2 0xffffffff80c07963 at panic+0x43 #3 0xffffffff810bfde7 at trap_fatal+0x387 #4 0xffffffff810bfe3f at trap_pfault+0x4f #5 0xffffffff81096ce8 at calltrap+0x8 #6 0xffffffff80d8f5a3 at ieee80211_node_psq_drain+0xf3 #7 0xffffffff80d836c6 at node_cleanup+0xa6 #8 0xffffffff80d835e5 at node_free+0x25 #9 0xffffffff80d84b72 at ieee80211_sta_join1+0xc2 #10 0xffffffff80d85aaa at ieee80211_sta_join+0x42a #11 0xffffffff80d79e01 at ieee80211_ioctl_setmlme+0x111 #12 0xffffffff80d779ce at ieee80211_ioctl_set80211+0x5de #13 0xffffffff80d76541 at ieee80211_ioctl+0x311 #14 0xffffffff80d1f63d at ifioctl+0x98d #15 0xffffffff80c74cb7 at kern_ioctl+0x257 #16 0xffffffff80c749eb at sys_ioctl+0x12b #17 0xffffffff810c06dc at amd64_syscall+0x10c Uptime: 4m6s --- Expected Results: The service should stop without causing a system crash. Build Date & Hardware: * Kernel and world built on 7th July. * FreeBSD valhalla 13.2-STABLE FreeBSD 13.2-STABLE stable/13-n255791-a81d4240b346 VALHALLA amd64 --=20 You are receiving this mail because: You are the assignee for the bug.=