open5gs/tests/non3gpp
Sukchan Lee d1c5ece759 [mme] Use bitmap-based EBI management to avoid bearer allocation crash
When bearer contexts are migrated between MME-UE objects during UE
context relocation (OLD UE -> NEW UE), the existing ogs_pool-based
EBI tracking could become inconsistent.

In mme_ue_set_imsi(), bearer->ebi_node was freed from the old UE pool
without reserving the same EBI in the new UE context. This allowed
duplicate allocations and eventually exhausted the EBI pool (5..15),
triggering a fatal assertion in mme_bearer_add().

This patch replaces the pool-node based EBI handling with a bitmap
allocator, which is safe across UE context migration and supports
explicit EBI reservation.

Also update related test cases to match the new allocation order.

Fixes: #4294
2026-02-02 22:22:56 +09:00
..
abts-main.c [SEPP] Initial Update for 5G Roaming (#2739) 2023-11-19 19:34:51 +09:00
diameter-s6b-path.c diameter: split stats and logger modules 2024-09-03 22:20:19 +09:00
diameter-swx-path.c diameter: split stats and logger modules 2024-09-03 22:20:19 +09:00
epdg-test.c [mme] Use bitmap-based EBI management to avoid bearer allocation crash 2026-02-02 22:22:56 +09:00
gtp-path.c Revert "[GTP/PFCP]] incorrect dst TEI=0/SEID=0 (#3043)" 2024-03-26 08:04:26 +09:00
gtp-path.h [EPC] Support ePDG Interface (#1039) 2021-06-21 22:36:38 +09:00
meson.build Prometheus metrics set to default 2022-11-21 22:06:29 +09:00
s2b-build.c [ePDG] Add Node-Identifier IE support in GTPv2 S2b Create-Session-Request for SMF Diameter S6b Routing (#3507) 2024-10-31 22:22:25 +09:00
s2b-build.h [EPC] Support ePDG Interface (#1039) 2021-06-21 22:36:38 +09:00
s2b-handler.c [SMF] Memory leak in Handling APCO IE (#3010) 2024-02-28 20:51:20 +09:00
s2b-handler.h Rename GTPv2C specifics to gtp2 prefix (#1485) 2022-04-13 07:07:39 +09:00
test-fd-path.c [ALL] Removing trailing whitespace and tab 2022-09-02 23:38:39 +09:00
test-fd-path.h [EPC] Support ePDG Interface (#1039) 2021-06-21 22:36:38 +09:00