Change in osmo-ttcn3-hacks[master]: MSC_Tests.ttcn: introduce TC_mm_id_resp_no_identity

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

fixeria gerrit-no-reply at lists.osmocom.org
Sat Jan 4 11:50:15 UTC 2020


fixeria has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/16684 )

Change subject: MSC_Tests.ttcn: introduce TC_mm_id_resp_no_identity
......................................................................

MSC_Tests.ttcn: introduce TC_mm_id_resp_no_identity

While investigating OS#4340, it was discovered that a malformed
MM Identity Request with MI Type '111'B crashes OsmoMSC.

Unfortunately, I could not find a way to encode such an invalid
message in TITAN (because value '111'B is reserved), so I
figured out that '000'B also crashes OsmoMSC.

MM Identity Request is triggered by initiating an Update Location
Request with reserved TMSI value 'FFFFFFFF'O (unknown to the MSC).

Change-Id: I62f23355eb91df2edf9dc837c928cb86b530b743
Related: OS#4340
---
M msc/MSC_Tests.ttcn
1 file changed, 38 insertions(+), 0 deletions(-)

Approvals:
  laforge: Looks good to me, approved
  pespin: Looks good to me, but someone else must approve
  Jenkins Builder: Verified



diff --git a/msc/MSC_Tests.ttcn b/msc/MSC_Tests.ttcn
index e0d9c7f..c2a5bbb 100644
--- a/msc/MSC_Tests.ttcn
+++ b/msc/MSC_Tests.ttcn
@@ -5778,6 +5778,43 @@
 	vc_conn.done;
 }
 
+friend function f_tc_mm_id_resp_no_identity(charstring id, BSC_ConnHdlrPars pars)
+runs on BSC_ConnHdlr {
+	pars.tmsi := 'FFFFFFFF'O;
+	f_init_handler(pars);
+
+	f_create_gsup_expect(hex2str(g_pars.imsi));
+
+	/* Initiate Location Updating using an unknown TMSI */
+	f_bssap_compl_l3(f_build_lu_tmsi(pars.tmsi));
+
+	/* Expect an Identity Request, send response with no identity */
+	BSSAP.receive(tr_PDU_DTAP_MT(tr_ML3_MT_MM_ID_Req(CM_ID_TYPE_IMSI)));
+	BSSAP.send(ts_PDU_DTAP_MO(ts_ML3_MO_MM_ID_Rsp({
+		lengthIndicator := 1,
+		mobileIdentityV := {
+			typeOfIdentity := '000'B,
+			oddEvenInd_identity := {
+				no_identity := {
+					oddevenIndicator := '0'B,
+					fillerDigits := '00000'H
+				}
+			}
+		}
+	})));
+
+	f_expect_lu_reject();
+	f_expect_clear();
+}
+testcase TC_mm_id_resp_no_identity() runs on MTC_CT {
+	var BSC_ConnHdlr vc_conn;
+
+	f_init();
+
+	vc_conn := f_start_handler(refers(f_tc_mm_id_resp_no_identity), 7);
+	vc_conn.done;
+}
+
 control {
 	execute( TC_cr_before_reset() );
 	execute( TC_lu_imsi_noauth_tmsi() );
@@ -5910,6 +5947,7 @@
 		execute( TC_lu_and_mt_call_osmux() );
 	}
 	execute( TC_invalid_mgcp_crash() );
+	execute( TC_mm_id_resp_no_identity() );
 }
 
 

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/16684
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I62f23355eb91df2edf9dc837c928cb86b530b743
Gerrit-Change-Number: 16684
Gerrit-PatchSet: 3
Gerrit-Owner: fixeria <axilirator at gmail.com>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <axilirator at gmail.com>
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200104/64124e27/attachment.htm>


More information about the gerrit-log mailing list