open5gs/tests/registration
Sukchan Lee 73676a73e6 amf: ignore late SDM_SUBSCRIPTIONS DELETE during re-registration
Fix an AMF crash when a UE sends a new Registration Request immediately
after UE-initiated Deregistration.

In this scenario, SM Context release and SDM subscription DELETE requests
are triggered during deregistration, but their SBI responses may arrive
later while the AMF is already handling a subsequent Registration Request
(Integrity Protected).

Previously, late SDM_SUBSCRIPTIONS DELETE responses were processed in
unexpected GMM states (registered, authentication, initial-context-setup),
leading to ogs_assert_if_reached() and AMF crashes.

This commit changes the behavior to explicitly ignore late
SDM_SUBSCRIPTIONS DELETE responses in such states, treating them as stale
and non-actionable. Fatal assertions in these paths are replaced with
warnings to prevent crashes caused by valid out-of-order SBI responses.

The fix is covered by a new regression test reproducing issue #4209,
including scenarios with and without active PDU sessions.
2026-01-23 11:24:06 +09:00
..
abts-main.c [AMF] Fixed crash in no context setup (#2999) 2024-03-04 21:03:07 +09:00
auth-test.c amf,mme: Reject authentication after repeated synch failures 2026-01-14 16:01:43 +09:00
crash-test.c [AMF] Fix crash on malformed NGSetupRequest PLMNIdentity 2025-09-23 23:08:42 +09:00
dereg-test.c amf: ignore late SDM_SUBSCRIPTIONS DELETE during re-registration 2026-01-23 11:24:06 +09:00
ecc-test.c [AMF] Registation status update and tests 2024-09-03 22:09:56 +09:00
gmm-status-test.c [AMF] Registation status update and tests 2024-09-03 22:09:56 +09:00
guti-test.c amf: Preserve RAN-UE association across asynchronous SBI responses 2025-11-26 17:17:16 +09:00
identity-test.c [AMF] Registation status update and tests 2024-09-03 22:09:56 +09:00
idle-test.c [AMF] Registation status update and tests 2024-09-03 22:09:56 +09:00
meson.build [AMF] Fixed crash in no context setup (#2999) 2024-03-04 21:03:07 +09:00
multi-ue-test.c [AMF] Registation status update and tests 2024-09-03 22:09:56 +09:00
reset-test.c Merge branch 'main' into home-routed 2025-04-06 18:36:57 +09:00
simple-test.c Implement PDU Session Release for Home-Routed Roaming and fix N4 step ordering in 4.3.4.2 2025-05-02 21:28:25 +09:00
ue-context-test.c [AMF] Registation status update and tests 2024-09-03 22:09:56 +09:00