-
Notifications
You must be signed in to change notification settings - Fork 599
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
Crash when switch to iwd (ubuntu 22.10) #441
Comments
This kind of error usualy kills the system: [za apr 8 19:40:38 2023] BUG: kernel NULL pointer dereference, address: 0000000000000000 I added a statement that should prevent this, but I have no idea if it will work. |
Hello Larry thanks for quick response. just tried it with the update, but same seems to happen while inserting. cmd summary
dmesg -TW
Trying to get source of crash, performed:
Finding location of cfg80211_rtw_scan and adding offset from kernel crash
relevant code snippet from disassembled code
points to ioctl_cfg80211.c:2384
But don't see a memcmp in there. Looks like i lost track to find the crash location. |
Small update with my latest findings: Added a check if address where *ssids point is is nonzero. ioctl_cfg80211.c in section starting at line 2289
when adding a printk for ssid like:
it sprints
in slow pace, but "never" something else. |
Yes, the code was reaching this point before it was fully up. I used a different test than yours, but it should do the same thing. |
tested your latest commit from few hours back (b5d6467), and I can confirm working with that/no kernel panics. While i briefly tested as client and hotspot and all looks working as before trying iwd, i noticed another alert in the dmesg output. (after fresh reload kernel/fresh compiled driver) dmesg during boot (wlan1 is rtl8188):
As far i can see this wasn't triggered when system was using wpasupplicant. |
No, a new issue is not needed. I think this is likely a case where the driver tried to get the station status report before the station was fully available. Frankly, I see no need for the warning, and I will remove it. I will now close this issue. |
Hi Larry ea,
Running ubuntu 22.10 and the v5.2.2.4 to run a hotspot on my realtek micro usb rtl8188
This worked perfectly fine until i switched from wpa_supplicant to more
recent iwd.
The summary of the issue is: while having iwd running fine with one wireless
adapter (AX200), then inserting the RTL8188 usb adapter results in a kernel
crash dump, and also leaves iwd in unusable state.
I'm not sure if this is an iwd or driver issue, or combination.
Using your v5.2.2.4 driver from git
iwd (iwctl) is running/operating just fine
The oops/call trace at the moment of inserting
Check which module was loaded:
iwctl does not longer see/work with iwd after crash
I had the system to reboot always after, either due to console/screen frozen, or no longer reachable though ssh.
The issue is reproducible for 100% for me.
Could you have a look please?
Regards,
The text was updated successfully, but these errors were encountered: