New: hostapd: segfault when using RT5370
https://bugs.busybox.net/show_bug.cgi?id=7166
Summary: hostapd: segfault when using RT5370
Product: buildroot
Version: 2014.05
Platform: Macintosh
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
AssignedTo: unassigned at buildroot.uclibc.org
ReportedBy: jmavermeulen at gmail.com
CC: buildroot at uclibc.org
Estimated Hours: 0.0
hostapd crashes with segfault when using RT5370. This is because the driver reports Beacon RX prior to hostapd having completed the AP mode setup. This bug is reported and fixed here:
http://hostap.epitest.fi/cgit/hostap/commit/?id=334ec001bbd31c5bc83d6593e58dfbbf6b8785a2
I changed the source and version in the hostapd package to the mentioned commit on the git repository and everything works again. I don't think however that this is the right way of fixing this. Should I make a patch and file this or something? At least until hostapd is updated?
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 7166] hostapd: segfault when using RT5370
https://bugs.busybox.net/show_bug.cgi?id=7166
Peter Korsgaard <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
--- Comment #1 from Peter Korsgaard <[email protected]> 2014-06-04 06:45:57 UTC --- I don't know much about hostapd, but from the looks of it that patch seems trivial to backport to the 2.1 release, so we could add it as a patch in buildroot until the next hostapd release.
Care to send a patch doing that?
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 7166] hostapd: segfault when using RT5370
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=7166
Jonathan <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |NEW
--- Comment #2 from Jonathan <[email protected]> 2014-06-04 09:11:33 UTC --- (In reply to comment #1)
Quoted 5 lines
I don't know much about hostapd, but from the looks of it that patch seems trivial to backport to the 2.1 release, so we could add it as a patch in buildroot until the next hostapd release.
Care to send a patch doing that?
How can I make a patch based on the git diff? I'm really new to working with buildroot and compiling kernel/rootfs in general.
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 7166] hostapd: segfault when using RT5370
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=7166
Peter Korsgaard <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED--- Comment #3 from Peter Korsgaard <[email protected]> 2014-06-04 21:10:15 UTC --- In this particular case it is simple as the commit applies to the 2.1 release without problems, so something like:
git clone git://w1.fi/hostap.git && cd hostapd
git format-patch -s 334ec001bbd^..334ec001bbd 0001-Fix-Beacon-RX-before-AP-setup-completion.patch
cp 0001-*patch /path/to/buildroot/package/hostapd/hostapd-0001-Fix-Beacon-RX-before-AP-setup-completion.patch
I've committed this to git:
http://git.buildroot.net/buildroot/commit/?id=f3a12bc334d4673df
Could you please verify that it solves your issue?
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 7166] hostapd: segfault when using RT5370
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=7166
Jonathan <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |VERIFIED
--- Comment #4 from Jonathan <[email protected]> 2014-06-05 20:00:03 UTC --- Works perfectly!!
Thanks this fixes the issue at least until the next release!
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 7166] hostapd: segfault when using RT5370
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=7166
--- Comment #5 from Peter Korsgaard <[email protected]> 2014-06-05 20:15:54 UTC --- Great to hear. Notice that we have now moved to the recently released 2.2 version in git:
http://git.buildroot.net/buildroot/commit/?id=b912fff5500653856697cf8d339e
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.