osmo-hnbgw/src/osmo-hnbgw
Neels Hofmeyr 8eefcbee92 UE state leak: when HNB re-registers, discard previous UE state
User reports show leaked UE contexts over time, in a scenario where HNB
regularly disconnect and reconnect.

So far, when we receive a HNB REGISTER REQ, we log as "duplicated" and
continue to use the hnb_context unchanged. But it seems obvious that a
HNB that registers does not expect any UE state to remain. It will
obviously not tear down UE contexts (HNBAP or RUA) that have been
established before the HNB REGISTER REQUEST. These hence remain in
osmo-hnbgw indefinitely.

When receiving a HNB REGISTER REQUEST, release all its previous UE
state. Allow the HNB to register with a clean slate.

The aim is to alleviate the observed build-up of apparently orphaned UE
contexts, in order to avoid gradual memory exhaustion.

Related: SYS#6297
Change-Id: I7fa8a04cc3b2dfba263bda5b410961c77fbed332
2023-02-11 03:32:34 +01:00
..
Makefile.am Makefile.am: Drop duplicated LIBOSMOMGCPCLIENT_LIBS 2022-10-19 15:56:52 +02:00
context_map.c fix SCCP conn leak on non-graceful HNB shutdown 2023-01-20 20:30:03 +01:00
hnbgw.c UE state leak: when HNB re-registers, discard previous UE state 2023-02-11 03:32:34 +01:00
hnbgw_cn.c fix SCCP conn leak on non-graceful HNB shutdown 2023-01-20 20:30:03 +01:00
hnbgw_hnbap.c UE state leak: when HNB re-registers, discard previous UE state 2023-02-11 03:32:34 +01:00
hnbgw_pfcp.c add ps_rab_ass FSM to map GTP via UPF 2022-08-08 20:20:34 +00:00
hnbgw_ranap.c Initial structure + import code from osmo-iuh.git 2022-01-04 19:48:52 +01:00
hnbgw_rua.c coverity: hnbgw_rua.c: remove redundant check 2023-02-01 16:40:40 +01:00
hnbgw_vty.c vty: Fix timers not printed when dumping running-config 2022-11-02 20:12:54 +01:00
mgw_fsm.c fix msgb leak for RANAP RAB Ass. Req. 2023-01-17 23:40:00 +01:00
ps_rab_ass_fsm.c fix msgb leak for RANAP RAB Ass. Req. 2023-01-17 23:40:00 +01:00
ps_rab_fsm.c ps_rab_fsm: check use cb success 2022-08-17 14:33:33 +00:00
ranap_rab_ass.c ranap_rab_ass_req_encode(): return msgb 2022-07-27 15:45:18 +02:00
tdefs.c build: add --enable-pfcp, make PFCP dep optional 2022-08-09 17:57:43 +02:00