Summary: | [run] [wlan] hostapd, kernel panic, wlan using run device, run0: RT3071, RF RT3022 | ||||||
---|---|---|---|---|---|---|---|
Product: | Base System | Reporter: | freebsd | ||||
Component: | wireless | Assignee: | freebsd-wireless (Nobody) <wireless> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Only Me | CC: | gabor.simon75, john, kevlo, marco, sbruno | ||||
Priority: | Normal | ||||||
Version: | 10.0-STABLE | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
freebsd
2014-05-07 02:40:01 UTC
Responsible Changed From-To: freebsd-bugs->freebsd-wireless Over to maintainer(s). Created attachment 144753 [details]
Proposed patch to prevent kernel panic in hostap mode.
rvp->beacon_mbuf was NULL in run_update_beacon
I also ran into this after migrating 9.2 to 10.0 via src build (the wifi was working fine on 9.2). The supplied patch appears to fix the problem on my machine. Adding a "me too" here. I'm currently running 10.1RC1. I noticed that the patch, which does fix things for me, has not made it into HEAD yet. The USB stick I use while running into this issue has the following details: - Asus USB-N66 Dual-band Wireless-N900 USB Adapter - ugen1.3: <802.11 n WLAN Ralink> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (450mA) It would be really cool if the proposed patch or similar would ultimately make it into release so I don't have to manually patch if_run.c on every update. Thanks! Kevin: Is this something you want to review or should I just commit this? Sean, Sorry I've been super busy lately so haven't had time to review it. In run_update_beacon(), it seems that this patch is not entirely correct. Give me a week to review this patch and fix that issue, thank you. Hi guys, Thank you very much for giving this attention, I really appreciate that. Of course I'd be willing to try patches, altho I really do prefer to stay on the 10.1 series on this system at this moment. I could scout for another chassis and try later versions in that if really necessary. While you guys are looking into this, this morning I ran into the issue described here: https://lists.freebsd.org/pipermail/freebsd-wireless/2011-July/000352.html Could you maybe have a look into that as well? Basically what I witnessed having is many "run0: device timeout" messages and everybody loosing connection. A simple "ifconfig wlan0 down ; ifconfig wlan0 up" fixed it. The documentation says the driver should reset the device when this happens. That would be cool if it would do that, or do a "down / up" equivalent. I am really sorry to add more work to this and appreciate what you're doing for this! Thanks! A commit references this bug: Author: kevlo Date: Wed Oct 22 03:32:27 UTC 2014 New revision: 273448 URL: https://svnweb.freebsd.org/changeset/base/273448 Log: Fix the kernel panic in hostap mode. rvp->beacon_mbuf was NULL in run_update_beacon(). PR: 189405 Submitted by: Gabor Simon <gabor.simon75 at gmail.com> MFC after: 3 days Changes: head/sys/dev/usb/wlan/if_run.c Hi there, Thank you very much for this! I'm currently testing your changes on my system. So far it's looking good. When things were not good, hostapd would panic the system within a couple of seconds. Thanks! A commit references this bug: Author: kevlo Date: Sat Oct 25 15:06:10 UTC 2014 New revision: 273636 URL: https://svnweb.freebsd.org/changeset/base/273636 Log: MFC r273448: Fix the kernel panic in hostap mode. rvp->beacon_mbuf was NULL in run_update_beacon(). PR: 189405 Submitted by: Gabor Simon <gabor.simon75 at gmail.com> Changes: _U stable/10/ stable/10/sys/dev/usb/wlan/if_run.c |