mirror of
https://github.com/open5gs/open5gs.git
synced 2026-04-28 03:19:31 +00:00
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. |
||
|---|---|---|
| .. | ||
| abts-main.c | ||
| auth-test.c | ||
| crash-test.c | ||
| dereg-test.c | ||
| ecc-test.c | ||
| gmm-status-test.c | ||
| guti-test.c | ||
| identity-test.c | ||
| idle-test.c | ||
| meson.build | ||
| multi-ue-test.c | ||
| reset-test.c | ||
| simple-test.c | ||
| ue-context-test.c | ||