May be this information will be helpful. I have faced with kernel oops when using hostapd on Jetson TX2. Howto reproduce:
Start ‘hostapd’ and then kill it with -9 signal (or simulate sigsegv, etc).
In this case hostapd doesn’t switch wlan0 to ‘station’ mode.
Next two starts of ‘hostapd’ will cause above oops.
I have prepared simple patch to avoid this crash:
Please apply it upstream if this patch looks ok.
I’m running hostapd inside docker container. In some situations ‘docker stop’ will use ‘kill -9’ (if no response in 10 sec) and cause above crash when following ‘docker run’ called.