[PATCH] Send TERMINATING event to Framework upon crash

Jouni Malinen j at w1.fi
Wed Mar 18 16:44:25 EDT 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 mailing list