[PATCH 1/2] src/eapol.c: fix of SEGV in eapol_rx_packets at receipt of EAPOL M1 msg at legacy roaming after ft_auth-/ft_reassoc-timeout when using mwifiex / NXP 88W9098 driver
Dierk Modrow <[email protected]> Mon, 13 Jul 2026 13:29:24 +0200
| Newsgroups | dev.linux.lists.iwd |
|---|---|
| Message-ID | <[email protected]> |
From: DEMODDIE <[email protected]> --- src/eapol.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/eapol.c b/src/eapol.c index 372549c6..c2dc4e4c 100644 --- a/src/eapol.c +++ b/src/eapol.c @@ -2824,6 +2824,10 @@ void eapol_register(struct eapol_sm *sm) l_queue_push_head(state_machines, sm); + /* workaround against SEGV on fct. eapol_rx_packet by avoiding for = two different eapol_frame_watches with different ids, but same eapol_sm ptr= */ + if ((sm->watch_id > 0) && eapol_frame_watch_remove(sm->watch_id)) { + l_debug("existing frame_watch for sm=3D%p with id=3D%u succ= essfully removed", sm, sm->watch_id); + } sm->watch_id =3D eapol_frame_watch_add(sm->handshake->ifindex, rx_handler, sm); sm->protocol_version =3D sm->handshake->proto_version; -- 2.53.0.windows.2 ________________________________ SEW-EURODRIVE GmbH & Co KG Kommanditgesellschaft, Sitz: Bruchsal, RG Mannheim HRA 230970 Komplement=E4rin: SEW-EURODRIVE Verwaltungs-GmbH, Sitz: Bruchsal, RG Mannhe= im HRB 230207 Gesch=E4ftsf=FChrender Gesellschafter: J=FCrgen Blickle Gesch=E4ftsf=FChrung: J=FCrgen Blickle (Vorsitzender), Dr. J=F6rg Hermes, D= r. Hans Krattenmacher, Michael Luz, Christian Mayer, Dr. Markus W=F6pperman= n