open5gs/src
Sukchan Lee cf4ad1f248 [PFCP] Session removal while waiting PFCP reply (#3040)
'node_timeout' and some other functions can remove a smf_sess_t
while that session is still waiting for a PFCP reply
and has an active PFCP xact.

In this case, xact->data points to the deleted session
and xact's timeout function (sess_5gc_timeout for example)
eventually refers to this already freed session.

This fix prevents duplicate deletes from occurring by checking to see
if the session context has already been deleted when the timeout occurs.

Additionally, it moves session deletions out of timer callbacks into
state machine by reselect_upf().

Due to the way 'ogs_timer_mgr_expire' calls timer callbacks,
one must not stop or expire timers from within a timer callback.

And now one must not remove sessions from within a timer callback.
2024-03-24 09:50:23 +09:00
..
amf [AMF] ran_ue can be NULL in IMPLICIT Dereg (#2999) 2024-03-22 06:51:09 +09:00
ausf [NRF] Fixed crash due to invalid PATCH body (#2735) 2023-11-25 22:03:28 +09:00
bsf [SEPP] Initial Update for 5G Roaming (#2739) 2023-11-19 19:34:51 +09:00
hss fix mismatch of parameters between prototype and declaration 2024-01-22 17:34:59 +09:00
mme [GTP/PFCP]] incorrect dst TEI=0/SEID=0 (#3043) 2024-03-23 10:06:16 +09:00
nrf UE context transfer (#3052) 2024-03-21 07:07:25 +09:00
nssf [SEPP] Initial Update for 5G Roaming (#2739) 2023-11-19 19:34:51 +09:00
pcf [ASN1C] Fixed asn1c library on 32bit (#2934) 2024-02-12 14:00:06 +09:00
pcrf Document Gx interface spec references 2024-01-25 07:05:33 +09:00
scp UE context transfer (#3052) 2024-03-21 07:07:25 +09:00
sepp fix mismatch of parameters between prototype and declaration 2024-01-22 17:34:59 +09:00
sgwc [PFCP] Session removal while waiting PFCP reply (#3040) 2024-03-24 09:50:23 +09:00
sgwu [PFCP] Session removal while waiting PFCP reply (#3040) 2024-03-24 09:50:23 +09:00
smf [PFCP] Session removal while waiting PFCP reply (#3040) 2024-03-24 09:50:23 +09:00
udm Introduce ability for multiple SDM_Subscriptions 2024-01-21 13:16:21 +09:00
udr [SEPP] Initial Update for 5G Roaming (#2739) 2023-11-19 19:34:51 +09:00
upf [PFCP] Session removal while waiting PFCP reply (#3040) 2024-03-24 09:50:23 +09:00
main.c Fixed dynamic-stack-buffer-overflow (#2578, #2577) 2023-09-05 21:58:05 +09:00
meson.build [SEPP] Initial Update for 5G Roaming (#2739) 2023-11-19 19:34:51 +09:00