Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hostapd: SIGSEGV when trying to send ubus messages for BSS Transition Management responses #10332

Open
stevenj opened this issue Jul 24, 2022 · 3 comments

Comments

@stevenj
Copy link

stevenj commented Jul 24, 2022

When a BSS Transition Management response is received by hostapd, that is NOT the WNM_BSS_TM_ACCEPT status, the bss target variable remains uninitialized and causes the ubus message marshaling to access invalid memory, which results in a segfault. This is reported by the kernel like so:

do_page_fault(): sending SIGSEGV to hostapd for invalid read access from 00000005
epc = 555d4775 in wpad[555cd000+103000]
ra = 555d4775 in wpad[555cd000+103000]

hostapd terminates, and brings the WiFi down which is highly disruptive to all devices connected on WiFi.

This is only seen when a band steering service is running, because it is a response to their operation. I have seen it with dawn and I believe usteer will also trigger this segfault if it uses these messages.

@stevenj
Copy link
Author

stevenj commented Jul 24, 2022

This is fixed by: http://lists.openwrt.org/pipermail/openwrt-devel/2022-July/039097.html

@Ramon-0011
Copy link

I am suffering from this bug in 21.02, so please cherry pick for 21.02 an 22.03 branches as well!

@Ramon-0011
Copy link

Note I am currently using usteer, so yes usteer triggers this as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants