[PATCH] Send TERMINATING event to Framework upon crash
Wed Mar 18 13:44:25 PDT 2015
On Wed, Mar 18, 2015 at 06:40:05PM +0100, abdoulaye berthe wrote:
> This sends a terminating event to Android Framework to report
> wpa_supplicant crash. It is done by saving the initial crash handler
> and regitering a new one. When a crash occurs, the new handler sends
> a TERMINATE CTRL-EVENT to Android Framework and call the saved handler.
> The TERMINATE CTRL-EVENT allows Android to detect supplicant crash.
Is this really a safe thing to do? If the process crashes and ends up in
SIGSEGV handler, I would not trust on the ctrl_iface socket or its file
descriptor being in valid state and as such, I would not really want to
write there since who knows where that would go if another file
descriptor is selected accidentally due to some corruption in memory.
Jouni Malinen PGP id EFC895FA
More information about the Hostap