Projects
osmocom:nightly
open5gs
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 25
View file
open5gs_2.4.8.202207210002.dsc -> open5gs_2.4.8.202207220002.dsc
Changed
@@ -2,7 +2,7 @@ Source: open5gs Binary: open5gs-common, open5gs-mme, open5gs-sgwc, open5gs-smf, open5gs-amf, open5gs-sgwu, open5gs-upf, open5gs-hss, open5gs-pcrf, open5gs-nrf, open5gs-ausf, open5gs-udm, open5gs-pcf, open5gs-nssf, open5gs-bsf, open5gs-udr, open5gs, open5gs-dbg Architecture: any -Version: 2.4.8.202207210002 +Version: 2.4.8.202207220002 Maintainer: Harald Welte <laforge@gnumonks.org> Uploaders: Sukchan Lee <acetcom@gmail.com> Homepage: https://open5gs.org @@ -30,8 +30,8 @@ open5gs-udr deb net optional arch=any open5gs-upf deb net optional arch=any Checksums-Sha1: - 9aeb565535c5796ee2bcf8bac318791924653f35 11455792 open5gs_2.4.8.202207210002.tar.xz + b9efa502536ebab6ef50e36aa019d66b254e8eba 11456560 open5gs_2.4.8.202207220002.tar.xz Checksums-Sha256: - d57540b32d028b863b463708eb4591b568c9096b2e93b40b965c0bc56b55737e 11455792 open5gs_2.4.8.202207210002.tar.xz + ed1cafb29ea9c5520eac58f97f01622e6fd70b567d6506b2f7d93d4d8655b5d4 11456560 open5gs_2.4.8.202207220002.tar.xz Files: - e27e0d4b85f649c7ee146c02b822b449 11455792 open5gs_2.4.8.202207210002.tar.xz + 3e733ed0047a55252a9e5be45a3073d8 11456560 open5gs_2.4.8.202207220002.tar.xz
View file
open5gs_2.4.8.202207210002.tar.xz/debian/changelog -> open5gs_2.4.8.202207220002.tar.xz/debian/changelog
Changed
@@ -1,8 +1,8 @@ -open5gs (2.4.8.202207210002) UNRELEASED; urgency=medium +open5gs (2.4.8.202207220002) UNRELEASED; urgency=medium * Snapshot build - -- Sukchan Lee <acetcom@gmail.com> Thu, 21 Jul 2022 00:10:35 +0000 + -- Sukchan Lee <acetcom@gmail.com> Fri, 22 Jul 2022 00:09:03 +0000 open5gs (2.4.8) unstable; urgency=medium
View file
open5gs_2.4.8.202207210002.tar.xz/debian/control -> open5gs_2.4.8.202207220002.tar.xz/debian/control
Changed
@@ -31,7 +31,7 @@ Package: open5gs-common Architecture: any Multi-Arch: same -Depends: osmocom-nightly (= 1.0.0.202207210002), ${shlibs:Depends}, +Depends: osmocom-nightly (= 1.0.0.202207220002), ${shlibs:Depends}, ${misc:Depends} Description: 5G Core and EPC (Shared Files) Open5GS is a C-language implementation of 5G Core and EPC @@ -43,7 +43,7 @@ Package: open5gs-mme Architecture: any Multi-Arch: same -Depends: osmocom-nightly (= 1.0.0.202207210002), ${shlibs:Depends}, +Depends: osmocom-nightly (= 1.0.0.202207220002), ${shlibs:Depends}, ${misc:Depends}, open5gs-common (= ${binary:Version}) Description: MME (Mobility Management Entity) @@ -58,7 +58,7 @@ Package: open5gs-sgwc Architecture: any Multi-Arch: same -Depends: osmocom-nightly (= 1.0.0.202207210002), ${shlibs:Depends}, +Depends: osmocom-nightly (= 1.0.0.202207220002), ${shlibs:Depends}, ${misc:Depends}, open5gs-common (= ${binary:Version}) Description: SGW-C (Serving Gateway - Control Plane) @@ -72,7 +72,7 @@ Package: open5gs-smf Architecture: any Multi-Arch: same -Depends: osmocom-nightly (= 1.0.0.202207210002), ${shlibs:Depends}, +Depends: osmocom-nightly (= 1.0.0.202207220002), ${shlibs:Depends}, ${misc:Depends}, open5gs-common (= ${binary:Version}) Description: SMF (Session Management Function) @@ -84,7 +84,7 @@ Package: open5gs-amf Architecture: any Multi-Arch: same -Depends: osmocom-nightly (= 1.0.0.202207210002), ${shlibs:Depends}, +Depends: osmocom-nightly (= 1.0.0.202207220002), ${shlibs:Depends}, ${misc:Depends}, open5gs-common (= ${binary:Version}) Description: AMF (Access and Mobility Management Function) @@ -96,7 +96,7 @@ Package: open5gs-sgwu Architecture: any Multi-Arch: same -Depends: osmocom-nightly (= 1.0.0.202207210002), ${shlibs:Depends}, +Depends: osmocom-nightly (= 1.0.0.202207220002), ${shlibs:Depends}, ${misc:Depends}, open5gs-common (= ${binary:Version}) Description: SGW-U (Serving Gateway - User Plane) @@ -110,7 +110,7 @@ Package: open5gs-upf Architecture: any Multi-Arch: same -Depends: osmocom-nightly (= 1.0.0.202207210002), ${shlibs:Depends}, +Depends: osmocom-nightly (= 1.0.0.202207220002), ${shlibs:Depends}, ${misc:Depends}, udev, open5gs-common (= ${binary:Version}) @@ -123,7 +123,7 @@ Package: open5gs-hss Architecture: any Multi-Arch: same -Depends: osmocom-nightly (= 1.0.0.202207210002), ${shlibs:Depends}, +Depends: osmocom-nightly (= 1.0.0.202207220002), ${shlibs:Depends}, ${misc:Depends}, mongodb-org | mongodb, open5gs-common (= ${binary:Version}) @@ -140,7 +140,7 @@ Package: open5gs-pcrf Architecture: any Multi-Arch: same -Depends: osmocom-nightly (= 1.0.0.202207210002), ${shlibs:Depends}, +Depends: osmocom-nightly (= 1.0.0.202207220002), ${shlibs:Depends}, ${misc:Depends}, mongodb-org | mongodb, open5gs-common (= ${binary:Version}) @@ -156,7 +156,7 @@ Package: open5gs-nrf Architecture: any Multi-Arch: same -Depends: osmocom-nightly (= 1.0.0.202207210002), ${shlibs:Depends}, +Depends: osmocom-nightly (= 1.0.0.202207220002), ${shlibs:Depends}, ${misc:Depends}, open5gs-common (= ${binary:Version}) Description: NRF (Network Repository Function) @@ -168,7 +168,7 @@ Package: open5gs-ausf Architecture: any Multi-Arch: same -Depends: osmocom-nightly (= 1.0.0.202207210002), ${shlibs:Depends}, +Depends: osmocom-nightly (= 1.0.0.202207220002), ${shlibs:Depends}, ${misc:Depends}, open5gs-common (= ${binary:Version}) Description: AUSF (Authentication Server Function) @@ -180,7 +180,7 @@ Package: open5gs-udm Architecture: any Multi-Arch: same -Depends: osmocom-nightly (= 1.0.0.202207210002), ${shlibs:Depends}, +Depends: osmocom-nightly (= 1.0.0.202207220002), ${shlibs:Depends}, ${misc:Depends}, open5gs-common (= ${binary:Version}) Description: UDM (Unified Data Management) @@ -192,7 +192,7 @@ Package: open5gs-pcf Architecture: any Multi-Arch: same -Depends: osmocom-nightly (= 1.0.0.202207210002), ${shlibs:Depends}, +Depends: osmocom-nightly (= 1.0.0.202207220002), ${shlibs:Depends}, ${misc:Depends}, open5gs-common (= ${binary:Version}) Description: PCF (Policy Control Function) @@ -204,7 +204,7 @@ Package: open5gs-nssf Architecture: any Multi-Arch: same -Depends: osmocom-nightly (= 1.0.0.202207210002), ${shlibs:Depends}, +Depends: osmocom-nightly (= 1.0.0.202207220002), ${shlibs:Depends}, ${misc:Depends}, open5gs-common (= ${binary:Version}) Description: NSSF (Network Slice Selection Function) @@ -216,7 +216,7 @@ Package: open5gs-bsf Architecture: any Multi-Arch: same -Depends: osmocom-nightly (= 1.0.0.202207210002), ${shlibs:Depends}, +Depends: osmocom-nightly (= 1.0.0.202207220002), ${shlibs:Depends}, ${misc:Depends}, open5gs-common (= ${binary:Version}) Description: BSF (Binding Support Function) @@ -228,7 +228,7 @@ Package: open5gs-udr Architecture: any Multi-Arch: same -Depends: osmocom-nightly (= 1.0.0.202207210002), ${shlibs:Depends}, +Depends: osmocom-nightly (= 1.0.0.202207220002), ${shlibs:Depends}, ${misc:Depends}, open5gs-common (= ${binary:Version}) Description: UDR (Unified Data Repository) @@ -240,7 +240,7 @@ Package: open5gs Architecture: any Multi-Arch: same -Depends: osmocom-nightly (= 1.0.0.202207210002), ${misc:Depends}, +Depends: osmocom-nightly (= 1.0.0.202207220002), ${misc:Depends}, open5gs-common (= ${binary:Version}), open5gs-mme (= ${binary:Version}), open5gs-sgwc (= ${binary:Version}), @@ -266,7 +266,7 @@ Package: open5gs-dbg Architecture: any Multi-Arch: same -Depends: osmocom-nightly (= 1.0.0.202207210002), ${misc:Depends}, +Depends: osmocom-nightly (= 1.0.0.202207220002), ${misc:Depends}, open5gs (= ${binary:Version}) Description: Debug symbols for Open5GS Open5GS is a C-language implementation of 5G Core and EPC
View file
open5gs_2.4.8.202207210002.tar.xz/docker/docker-compose.test.yml -> open5gs_2.4.8.202207220002.tar.xz/docker/docker-compose.test.yml
Changed
@@ -15,4 +15,4 @@ sysctls: - net.ipv6.conf.all.disable_ipv6=0 hostname: open5gs-test - command: /bin/bash -c "/root/setup.sh; cd open5gs/build && meson test -v" + command: /bin/bash -c "/root/setup.sh; cd /open5gs/build && meson test -v"
View file
open5gs_2.4.8.202207210002.tar.xz/lib/sbi/context.c -> open5gs_2.4.8.202207220002.tar.xz/lib/sbi/context.c
Changed
@@ -1448,12 +1448,6 @@ ogs_assert(xact); - xact = ogs_pool_cycle(&xact_pool, xact); - if (!xact) { - ogs_error("SBI transaction has already been removed"); - return; - } - sbi_object = xact->sbi_object; ogs_assert(sbi_object); @@ -1477,6 +1471,11 @@ ogs_sbi_xact_remove(xact); } +ogs_sbi_xact_t *ogs_sbi_xact_cycle(ogs_sbi_xact_t *xact) +{ + return ogs_pool_cycle(&xact_pool, xact); +} + ogs_sbi_subscription_t *ogs_sbi_subscription_add(void) { ogs_sbi_subscription_t *subscription = NULL;
View file
open5gs_2.4.8.202207210002.tar.xz/lib/sbi/context.h -> open5gs_2.4.8.202207220002.tar.xz/lib/sbi/context.h
Changed
@@ -348,6 +348,7 @@ void (*timer_cb)(void *data)); void ogs_sbi_xact_remove(ogs_sbi_xact_t *xact); void ogs_sbi_xact_remove_all(ogs_sbi_object_t *sbi_object); +ogs_sbi_xact_t *ogs_sbi_xact_cycle(ogs_sbi_xact_t *xact); ogs_sbi_subscription_t *ogs_sbi_subscription_add(void); void ogs_sbi_subscription_set_id(
View file
open5gs_2.4.8.202207210002.tar.xz/src/amf/amf-sm.c -> open5gs_2.4.8.202207220002.tar.xz/src/amf/amf-sm.c
Changed
@@ -357,6 +357,14 @@ sbi_xact = e->sbi.data; ogs_assert(sbi_xact); + sbi_xact = ogs_sbi_xact_cycle(sbi_xact); + if (!sbi_xact) { + /* CLIENT_WAIT timer could remove SBI transaction + * before receiving SBI message */ + ogs_error("SBI transaction has already been removed"); + break; + } + amf_ue = (amf_ue_t *)sbi_xact->sbi_object; ogs_assert(amf_ue); @@ -380,6 +388,14 @@ sbi_xact = e->sbi.data; ogs_assert(sbi_xact); + sbi_xact = ogs_sbi_xact_cycle(sbi_xact); + if (!sbi_xact) { + /* CLIENT_WAIT timer could remove SBI transaction + * before receiving SBI message */ + ogs_error("SBI transaction has already been removed"); + break; + } + state = sbi_xact->state; ogs_sbi_xact_remove(sbi_xact); @@ -489,6 +505,14 @@ sbi_xact = e->sbi.data; ogs_assert(sbi_xact); + sbi_xact = ogs_sbi_xact_cycle(sbi_xact); + if (!sbi_xact) { + /* CLIENT_WAIT timer could remove SBI transaction + * before receiving SBI message */ + ogs_error("SBI transaction has already been removed"); + break; + } + sess = (amf_sess_t *)sbi_xact->sbi_object; ogs_assert(sess); @@ -584,7 +608,7 @@ } ogs_error("%s Cannot receive SBI message", amf_ue->suci); - ogs_assert(OGS_OK == + ogs_expect(OGS_OK == nas_5gs_send_gmm_reject_from_sbi(amf_ue, OGS_SBI_HTTP_STATUS_GATEWAY_TIMEOUT)); break; @@ -601,12 +625,12 @@ ogs_error("%d:%d Cannot receive SBI message", sess->psi, sess->pti); if (sess->payload_container_type) { - ogs_assert(OGS_OK == + ogs_expect(OGS_OK == nas_5gs_send_back_gsm_message(sess, OGS_5GMM_CAUSE_PAYLOAD_WAS_NOT_FORWARDED, AMF_NAS_BACKOFF_TIME)); } else { - ogs_assert(OGS_OK == + ogs_expect(OGS_OK == ngap_send_error_indication2(amf_ue, NGAP_Cause_PR_transport, NGAP_CauseTransport_transport_resource_unavailable) @@ -825,7 +849,7 @@ /* De-associate NG with NAS/EMM */ ran_ue_deassociate(amf_ue->ran_ue); - ogs_assert(OGS_OK == + ogs_expect(OGS_OK == ngap_send_ran_ue_context_release_command(amf_ue->ran_ue, NGAP_Cause_PR_nas, NGAP_CauseNas_normal_release, NGAP_UE_CTX_REL_NG_CONTEXT_REMOVE, 0));
View file
open5gs_2.4.8.202207210002.tar.xz/src/amf/event.c -> open5gs_2.4.8.202207220002.tar.xz/src/amf/event.c
Changed
@@ -21,23 +21,28 @@ #include "context.h" static OGS_POOL(pool, amf_event_t); +static ogs_thread_mutex_t amf_event_alloc_mutex; void amf_event_init(void) { ogs_pool_init(&pool, ogs_app()->pool.event); + ogs_thread_mutex_init(&amf_event_alloc_mutex); } void amf_event_final(void) { ogs_pool_final(&pool); + ogs_thread_mutex_destroy(&amf_event_alloc_mutex); } amf_event_t *amf_event_new(amf_event_e id) { amf_event_t *e = NULL; + ogs_thread_mutex_lock(&amf_event_alloc_mutex); ogs_pool_alloc(&pool, &e); - if (!e) return NULL; + ogs_thread_mutex_unlock(&amf_event_alloc_mutex); + ogs_assert(e); memset(e, 0, sizeof(*e)); e->id = id; @@ -48,7 +53,9 @@ void amf_event_free(amf_event_t *e) { ogs_assert(e); + ogs_thread_mutex_lock(&amf_event_alloc_mutex); ogs_pool_free(&pool, e); + ogs_thread_mutex_unlock(&amf_event_alloc_mutex); } const char *amf_event_get_name(amf_event_t *e)
View file
open5gs_2.4.8.202207210002.tar.xz/src/amf/nas-path.c -> open5gs_2.4.8.202207220002.tar.xz/src/amf/nas-path.c
Changed
@@ -24,13 +24,16 @@ int nas_5gs_send_to_gnb(amf_ue_t *amf_ue, ogs_pkbuf_t *pkbuf) { - ran_ue_t *ran_ue = NULL; + ogs_assert(pkbuf); - ogs_assert(amf_ue); - ran_ue = ran_ue_cycle(amf_ue->ran_ue); - ogs_expect_or_return_val(ran_ue, OGS_ERROR); + amf_ue = amf_ue_cycle(amf_ue); + if (!amf_ue) { + ogs_warn("UE(amf-ue) context has already been removed"); + ogs_pkbuf_free(pkbuf); + return OGS_ERROR; + } - return ngap_send_to_ran_ue(ran_ue, pkbuf); + return ngap_send_to_ran_ue(amf_ue->ran_ue, pkbuf); } int nas_5gs_send_to_downlink_nas_transport(amf_ue_t *amf_ue, ogs_pkbuf_t *pkbuf) @@ -40,22 +43,29 @@ ran_ue_t *ran_ue = NULL; ogs_assert(pkbuf); - ogs_assert(amf_ue); + + amf_ue = amf_ue_cycle(amf_ue); + if (!amf_ue) { + ogs_warn("UE(amf-ue) context has already been removed"); + ogs_pkbuf_free(pkbuf); + return OGS_ERROR; + } + ran_ue = ran_ue_cycle(amf_ue->ran_ue); if (!ran_ue) { ogs_warn("NG context has already been removed"); ogs_pkbuf_free(pkbuf); - return OGS_OK; - } else { - ngapbuf = ngap_build_downlink_nas_transport( - ran_ue, pkbuf, false, false); - ogs_expect_or_return_val(ngapbuf, OGS_ERROR); + return OGS_ERROR; + } - rv = nas_5gs_send_to_gnb(amf_ue, ngapbuf); - ogs_expect(rv == OGS_OK); + ngapbuf = ngap_build_downlink_nas_transport( + ran_ue, pkbuf, false, false); + ogs_expect_or_return_val(ngapbuf, OGS_ERROR); - return rv; - } + rv = nas_5gs_send_to_gnb(amf_ue, ngapbuf); + ogs_expect(rv == OGS_OK); + + return rv; } int nas_5gs_send_registration_accept(amf_ue_t *amf_ue)
View file
open5gs_2.4.8.202207210002.tar.xz/src/amf/ngap-build.c -> open5gs_2.4.8.202207220002.tar.xz/src/amf/ngap-build.c
Changed
@@ -313,9 +313,10 @@ NGAP_AllowedNSSAI_t *AllowedNSSAI = NULL; ogs_assert(gmmbuf); + ran_ue = ran_ue_cycle(ran_ue); ogs_assert(ran_ue); - - amf_ue = ran_ue->amf_ue; + amf_ue = amf_ue_cycle(ran_ue->amf_ue); + ogs_assert(amf_ue); ogs_debug("DownlinkNASTransport"); @@ -468,6 +469,7 @@ NGAP_MaskedIMEISV_t *MaskedIMEISV = NULL; NGAP_NAS_PDU_t *NAS_PDU = NULL; + amf_ue = amf_ue_cycle(amf_ue); ogs_assert(amf_ue); ran_ue = ran_ue_cycle(amf_ue->ran_ue); ogs_assert(ran_ue); @@ -787,7 +789,7 @@ NGAP_MaskedIMEISV_t *MaskedIMEISV = NULL; ogs_assert(sess); - amf_ue = sess->amf_ue; + amf_ue = amf_ue_cycle(sess->amf_ue); ogs_assert(amf_ue); ran_ue = ran_ue_cycle(amf_ue->ran_ue); ogs_assert(ran_ue); @@ -1076,6 +1078,7 @@ NGAP_UE_NGAP_IDs_t *UE_NGAP_IDs = NULL; NGAP_Cause_t *Cause = NULL; + ran_ue = ran_ue_cycle(ran_ue); ogs_assert(ran_ue); ogs_debug("UEContextReleaseCommand"); @@ -1151,6 +1154,7 @@ NGAP_PDUSessionResourceSetupListSUReq_t *PDUSessionList = NULL; NGAP_PDUSessionResourceSetupItemSUReq_t *PDUSessionItem = NULL; + amf_ue = amf_ue_cycle(amf_ue); ogs_assert(amf_ue); ran_ue = ran_ue_cycle(amf_ue->ran_ue); ogs_assert(ran_ue); @@ -1317,7 +1321,7 @@ ogs_assert(n2smbuf); ogs_assert(sess); - amf_ue = sess->amf_ue; + amf_ue = amf_ue_cycle(sess->amf_ue); ogs_assert(amf_ue); ran_ue = ran_ue_cycle(amf_ue->ran_ue); ogs_assert(ran_ue); @@ -1459,7 +1463,7 @@ ogs_assert(n2smbuf); ogs_assert(sess); - amf_ue = sess->amf_ue; + amf_ue = amf_ue_cycle(sess->amf_ue); ogs_assert(amf_ue); ran_ue = ran_ue_cycle(amf_ue->ran_ue); ogs_assert(ran_ue); @@ -1558,7 +1562,7 @@ ogs_assert(n2smbuf); ogs_assert(sess); - amf_ue = sess->amf_ue; + amf_ue = amf_ue_cycle(sess->amf_ue); ogs_assert(amf_ue); ran_ue = ran_ue_cycle(amf_ue->ran_ue); ogs_assert(ran_ue); @@ -1663,6 +1667,7 @@ NGAP_TAIListForPagingItem_t *TAIItem = NULL; NGAP_TAI_t *tAI = NULL; + amf_ue = amf_ue_cycle(amf_ue); ogs_assert(amf_ue); ogs_debug("Paging"); @@ -1785,6 +1790,7 @@ NGAP_PDUSessionResourceSwitchedList_t *PDUSessionResourceSwitchedList; NGAP_AllowedNSSAI_t *AllowedNSSAI = NULL; + amf_ue = amf_ue_cycle(amf_ue); ogs_assert(amf_ue); ran_ue = ran_ue_cycle(amf_ue->ran_ue); ogs_assert(ran_ue); @@ -1951,8 +1957,9 @@ *SourceToTarget_TransparentContainer = NULL; NGAP_GUAMI_t *GUAMI = NULL; + target_ue = ran_ue_cycle(target_ue); ogs_assert(target_ue); - amf_ue = target_ue->amf_ue; + amf_ue = amf_ue_cycle(target_ue->amf_ue); ogs_assert(amf_ue); ogs_debug("HandoverRequest"); @@ -2249,6 +2256,7 @@ NGAP_RAN_UE_NGAP_ID_t *RAN_UE_NGAP_ID = NULL; NGAP_Cause_t *Cause = NULL; + source_ue = ran_ue_cycle(source_ue); ogs_assert(source_ue); ogs_assert(cause); @@ -2332,8 +2340,9 @@ NGAP_TargetToSource_TransparentContainer_t *TargetToSource_TransparentContainer = NULL; + source_ue = ran_ue_cycle(source_ue); ogs_assert(source_ue); - amf_ue = source_ue->amf_ue; + amf_ue = amf_ue_cycle(source_ue->amf_ue); ogs_assert(amf_ue); ogs_debug("HandoverCommand"); @@ -2449,6 +2458,7 @@ NGAP_AMF_UE_NGAP_ID_t *AMF_UE_NGAP_ID = NULL; NGAP_RAN_UE_NGAP_ID_t *RAN_UE_NGAP_ID = NULL; + source_ue = ran_ue_cycle(source_ue); ogs_assert(source_ue); ogs_debug("HandoverCancelAcknowledge"); @@ -2513,6 +2523,7 @@ NGAP_RANStatusTransfer_TransparentContainer_t *RANStatusTransfer_TransparentContainer = NULL; + target_ue = ran_ue_cycle(target_ue); ogs_assert(target_ue); ogs_assert(transfer);
View file
open5gs_2.4.8.202207210002.tar.xz/src/amf/ngap-handler.c -> open5gs_2.4.8.202207220002.tar.xz/src/amf/ngap-handler.c
Changed
@@ -4022,7 +4022,8 @@ * where PartOfNG_interface was requested * REMOVED */ ogs_assert(gnb->ng_reset_ack); - ngap_send_to_gnb(gnb, gnb->ng_reset_ack, NGAP_NON_UE_SIGNALLING); + ogs_expect(OGS_OK == + ngap_send_to_gnb(gnb, gnb->ng_reset_ack, NGAP_NON_UE_SIGNALLING)); /* Clear NG-Reset Ack Buffer */ gnb->ng_reset_ack = NULL;
View file
open5gs_2.4.8.202207210002.tar.xz/src/amf/ngap-path.c -> open5gs_2.4.8.202207220002.tar.xz/src/amf/ngap-path.c
Changed
@@ -50,15 +50,15 @@ { char bufOGS_ADDRSTRLEN; - ogs_assert(gnb); + ogs_assert(pkbuf); + gnb = amf_gnb_cycle(gnb); if (!gnb) { ogs_warn("gNB has already been removed"); ogs_pkbuf_free(pkbuf); - return OGS_OK; + return OGS_ERROR; } - ogs_assert(pkbuf); ogs_assert(gnb->sctp.sock); if (gnb->sctp.sock->fd == INVALID_SOCKET) { ogs_fatal("gNB SCTP socket has already been destroyed"); @@ -83,13 +83,16 @@ int ngap_send_to_ran_ue(ran_ue_t *ran_ue, ogs_pkbuf_t *pkbuf) { - amf_gnb_t *gnb = NULL; + ogs_assert(pkbuf); - ogs_assert(ran_ue); - gnb = ran_ue->gnb; - ogs_assert(gnb); + ran_ue = ran_ue_cycle(ran_ue); + if (!ran_ue) { + ogs_warn("NG context has already been removed"); + ogs_pkbuf_free(pkbuf); + return OGS_ERROR; + } - return ngap_send_to_gnb(gnb, pkbuf, ran_ue->gnb_ostream_id); + return ngap_send_to_gnb(ran_ue->gnb, pkbuf, ran_ue->gnb_ostream_id); } int ngap_delayed_send_to_ran_ue(
View file
open5gs_2.4.8.202207210002.tar.xz/src/amf/nsmf-handler.c -> open5gs_2.4.8.202207220002.tar.xz/src/amf/nsmf-handler.c
Changed
@@ -667,8 +667,9 @@ * where PartOfNG_interface was requested * REMOVED */ ogs_assert(gnb->ng_reset_ack); - ngap_send_to_gnb( - gnb, gnb->ng_reset_ack, NGAP_NON_UE_SIGNALLING); + ogs_expect(OGS_OK == + ngap_send_to_gnb(gnb, + gnb->ng_reset_ack, NGAP_NON_UE_SIGNALLING)); /* Clear NG-Reset Ack Buffer */ gnb->ng_reset_ack = NULL;
View file
open5gs_2.4.8.202207210002.tar.xz/src/ausf/ausf-sm.c -> open5gs_2.4.8.202207220002.tar.xz/src/ausf/ausf-sm.c
Changed
@@ -279,6 +279,14 @@ sbi_xact = e->sbi.data; ogs_assert(sbi_xact); + sbi_xact = ogs_sbi_xact_cycle(sbi_xact); + if (!sbi_xact) { + /* CLIENT_WAIT timer could remove SBI transaction + * before receiving SBI message */ + ogs_error("SBI transaction has already been removed"); + break; + } + ausf_ue = (ausf_ue_t *)sbi_xact->sbi_object; ogs_assert(ausf_ue);
View file
open5gs_2.4.8.202207210002.tar.xz/src/pcf/pcf-sm.c -> open5gs_2.4.8.202207220002.tar.xz/src/pcf/pcf-sm.c
Changed
@@ -395,6 +395,14 @@ sbi_xact = e->sbi.data; ogs_assert(sbi_xact); + sbi_xact = ogs_sbi_xact_cycle(sbi_xact); + if (!sbi_xact) { + /* CLIENT_WAIT timer could remove SBI transaction + * before receiving SBI message */ + ogs_error("SBI transaction has already been removed"); + break; + } + pcf_ue = (pcf_ue_t *)sbi_xact->sbi_object; ogs_assert(pcf_ue); @@ -423,6 +431,14 @@ sbi_xact = e->sbi.data; ogs_assert(sbi_xact); + sbi_xact = ogs_sbi_xact_cycle(sbi_xact); + if (!sbi_xact) { + /* CLIENT_WAIT timer could remove SBI transaction + * before receiving SBI message */ + ogs_error("SBI transaction has already been removed"); + break; + } + sess = (pcf_sess_t *)sbi_xact->sbi_object; ogs_assert(sess); @@ -474,6 +490,14 @@ sbi_xact = e->sbi.data; ogs_assert(sbi_xact); + sbi_xact = ogs_sbi_xact_cycle(sbi_xact); + if (!sbi_xact) { + /* CLIENT_WAIT timer could remove SBI transaction + * before receiving SBI message */ + ogs_error("SBI transaction has already been removed"); + break; + } + sess = (pcf_sess_t *)sbi_xact->sbi_object; ogs_assert(sess);
View file
open5gs_2.4.8.202207210002.tar.xz/src/smf/smf-sm.c -> open5gs_2.4.8.202207220002.tar.xz/src/smf/smf-sm.c
Changed
@@ -739,6 +739,14 @@ sbi_xact = e->sbi.data; ogs_assert(sbi_xact); + sbi_xact = ogs_sbi_xact_cycle(sbi_xact); + if (!sbi_xact) { + /* CLIENT_WAIT timer could remove SBI transaction + * before receiving SBI message */ + ogs_error("SBI transaction has already been removed"); + break; + } + sess = (smf_sess_t *)sbi_xact->sbi_object; ogs_assert(sess);
View file
open5gs_2.4.8.202207210002.tar.xz/src/udm/udm-sm.c -> open5gs_2.4.8.202207220002.tar.xz/src/udm/udm-sm.c
Changed
@@ -313,6 +313,14 @@ sbi_xact = e->sbi.data; ogs_assert(sbi_xact); + sbi_xact = ogs_sbi_xact_cycle(sbi_xact); + if (!sbi_xact) { + /* CLIENT_WAIT timer could remove SBI transaction + * before receiving SBI message */ + ogs_error("SBI transaction has already been removed"); + break; + } + udm_ue = (udm_ue_t *)sbi_xact->sbi_object; ogs_assert(udm_ue);
View file
open5gs_2.4.8.202207210002.tar.xz/tests/af/af-sm.c -> open5gs_2.4.8.202207220002.tar.xz/tests/af/af-sm.c
Changed
@@ -294,6 +294,14 @@ sbi_xact = e->sbi.data; ogs_assert(sbi_xact); + sbi_xact = ogs_sbi_xact_cycle(sbi_xact); + if (!sbi_xact) { + /* CLIENT_WAIT timer could remove SBI transaction + * before receiving SBI message */ + ogs_error("SBI transaction has already been removed"); + break; + } + sess = (af_sess_t *)sbi_xact->sbi_object; ogs_assert(sess);
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.