Attention is currently required from: neels, pespin.
fixeria has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/30823 )
Change subject: bsc: Use c_l3_payload instead of random octetstring as l3 payload
......................................................................
Patch Set 1: Code-Review+2
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/30823
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: I012dbdc673ff98a6647280ce3d0245abff86cfa4
Gerrit-Change-Number: 30823
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Attention: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Mon, 02 Jan 2023 17:20:47 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-bsc/+/30821 )
Change subject: bsc: Fix crash if PagingResponse with invalid MobileIdentity is received
......................................................................
bsc: Fix crash if PagingResponse with invalid MobileIdentity is received
It was found in a BSC on the field that an MS sending an incorrect
MobileIdentity IE (wrong length) in PagingResponse was generating a
crash on the BSC.
When the MobileIdentity cannot be parsed right now we keep on instead of
rejecting the conn. This should change in the future, but it needs
further improvements in our TTCN3 tests. For now let's simply validate
the subscriber is not NULL; since recently paging optimizations made
paging_request_stop() require the subscriber to be non-null.
Fixes: 27cb5d3e24d0e39d09bddcbea5c059dfe5bbcf3d
Related: SYS#6280
Change-Id: If8b439ff74c5dd690d637d3e3278c75d6cd6b928
---
M src/osmo-bsc/gsm_08_08.c
1 file changed, 2 insertions(+), 1 deletion(-)
Approvals:
fixeria: Looks good to me, but someone else must approve
laforge: Looks good to me, but someone else must approve
neels: Looks good to me, but someone else must approve
pespin: Looks good to me, approved
Jenkins Builder: Verified
diff --git a/src/osmo-bsc/gsm_08_08.c b/src/osmo-bsc/gsm_08_08.c
index 37e00f3..3e0683c 100644
--- a/src/osmo-bsc/gsm_08_08.c
+++ b/src/osmo-bsc/gsm_08_08.c
@@ -440,7 +440,8 @@
paged_from_msc = NULL;
paging_reasons = BSC_PAGING_NONE;
if (pdisc == GSM48_PDISC_RR && mtype == GSM48_MT_RR_PAG_RESP) {
- paging_request_stop(&paged_from_msc, &paging_reasons, bts, conn->bsub);
+ if (conn->bsub)
+ paging_request_stop(&paged_from_msc, &paging_reasons, bts, conn->bsub);
if (!paged_from_msc) {
/* This looks like an unsolicited Paging Response. It is required to pick any MSC, because any
* MT-CSFB calls were Paged by the MSC via SGs, and hence are not listed in the BSC. */
--
To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/30821
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: If8b439ff74c5dd690d637d3e3278c75d6cd6b928
Gerrit-Change-Number: 30821
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: merged
pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/30823 )
Change subject: bsc: Use c_l3_payload instead of random octetstring as l3 payload
......................................................................
bsc: Use c_l3_payload instead of random octetstring as l3 payload
OsmoBSC does some minimal parsing of l3 content to select MSC target,
match paging response to paging request, etc.
Since tests right now use potentially invalid data, osmo-bsc is not
rejecting conns providing invalid l3 content.
This commit is another step towards passing proper l3 data to osmo-bsc
in TTCN3 tests.
Related: SYS#6280
Change-Id: I012dbdc673ff98a6647280ce3d0245abff86cfa4
---
M bsc/BSC_Tests.ttcn
1 file changed, 10 insertions(+), 14 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/23/30823/1
diff --git a/bsc/BSC_Tests.ttcn b/bsc/BSC_Tests.ttcn
index af55efa..574d138 100644
--- a/bsc/BSC_Tests.ttcn
+++ b/bsc/BSC_Tests.ttcn
@@ -2581,17 +2581,16 @@
/* Check if we get SAPI N Reject on receipt of unexpected RLL RELease INDication */
testcase TC_rll_rel_ind_sapi_n_reject() runs on test_CT {
- var octetstring rnd_data := f_rnd_octstring(16);
var RSL_Message rx_rsl;
var DchanTuple dt;
f_init(1);
/* MS establishes a SAPI=0 link on DCCH */
- dt := f_est_dchan(f_rnd_ra_cs(), 23, rnd_data);
+ dt := f_est_dchan(f_rnd_ra_cs(), 23, c_l3_payload);
/* MSC sends some data on (not yet established) SAPI=3 link */
- BSSAP.send(ts_BSSAP_DATA_req(dt.sccp_conn_id, ts_BSSAP_DTAP(rnd_data, '03'O)));
+ BSSAP.send(ts_BSSAP_DATA_req(dt.sccp_conn_id, ts_BSSAP_DTAP(c_l3_payload, '03'O)));
/* BSC attempts to establish a SAPI=3 link on DCCH */
rx_rsl := f_exp_ipa_rx(tr_RSL_EST_REQ(dt.rsl_chan_nr, tr_RslLinkID_DCCH(3)));
@@ -2609,17 +2608,16 @@
/* Check if we get SAPI N Reject on receipt of unexpected RLL ERROR INDication */
testcase TC_rll_err_ind_sapi_n_reject() runs on test_CT {
- var octetstring rnd_data := f_rnd_octstring(16);
var RSL_Message rx_rsl;
var DchanTuple dt;
f_init(1);
/* MS establishes a SAPI=0 link on DCCH */
- dt := f_est_dchan(f_rnd_ra_cs(), 23, rnd_data);
+ dt := f_est_dchan(f_rnd_ra_cs(), 23, c_l3_payload);
/* MSC sends some data on (not yet established) SAPI=3 link */
- BSSAP.send(ts_BSSAP_DATA_req(dt.sccp_conn_id, ts_BSSAP_DTAP(rnd_data, '03'O)));
+ BSSAP.send(ts_BSSAP_DATA_req(dt.sccp_conn_id, ts_BSSAP_DTAP(c_l3_payload, '03'O)));
/* BSC attempts to establish a SAPI=3 link on DCCH */
rx_rsl := f_exp_ipa_rx(tr_RSL_EST_REQ(dt.rsl_chan_nr, tr_RslLinkID_DCCH(3)));
@@ -2637,17 +2635,16 @@
/* Check if we get SAPI N Reject due to a SAPI=3 link establishment timeout */
testcase TC_rll_timeout_sapi_n_reject() runs on test_CT {
- var octetstring rnd_data := f_rnd_octstring(16);
var RSL_Message rx_rsl;
var DchanTuple dt;
f_init(1);
/* MS establishes a SAPI=0 link on DCCH */
- dt := f_est_dchan(f_rnd_ra_cs(), 23, rnd_data);
+ dt := f_est_dchan(f_rnd_ra_cs(), 23, c_l3_payload);
/* MSC sends some data on (not yet established) SAPI=3 link */
- BSSAP.send(ts_BSSAP_DATA_req(dt.sccp_conn_id, ts_BSSAP_DTAP(rnd_data, '03'O)));
+ BSSAP.send(ts_BSSAP_DATA_req(dt.sccp_conn_id, ts_BSSAP_DTAP(c_l3_payload, '03'O)));
/* BSC attempts to establish a SAPI=3 link on DCCH */
rx_rsl := f_exp_ipa_rx(tr_RSL_EST_REQ(dt.rsl_chan_nr, tr_RslLinkID_DCCH(3)));
@@ -2663,17 +2660,16 @@
/* Check DLCI CC (Control Channel type) bits in SAPI N Reject */
testcase TC_rll_sapi_n_reject_dlci_cc() runs on test_CT {
- var octetstring rnd_data := f_rnd_octstring(16);
var RSL_Message rx_rsl;
var DchanTuple dt;
f_init(1);
/* MS establishes a SAPI=0 link on DCCH */
- dt := f_est_dchan(f_rnd_ra_cs(), 23, rnd_data);
+ dt := f_est_dchan(f_rnd_ra_cs(), 23, c_l3_payload);
/* MSC sends some data on (not yet established) SAPI=3 link */
- BSSAP.send(ts_BSSAP_DATA_req(dt.sccp_conn_id, ts_BSSAP_DTAP(rnd_data, '03'O)));
+ BSSAP.send(ts_BSSAP_DATA_req(dt.sccp_conn_id, ts_BSSAP_DTAP(c_l3_payload, '03'O)));
/* BSC attempts to establish a SAPI=3 link on DCCH */
rx_rsl := f_exp_ipa_rx(tr_RSL_EST_REQ(dt.rsl_chan_nr, tr_RslLinkID_DCCH(3)));
@@ -9619,7 +9615,7 @@
* NOTE: only 3 SDCCH/4 channels are available on CCCH+SDCCH4+CBCH */
for (var integer i := 0; i < 3; i := i + 1) {
/* Establish a dedicated channel, so we can trigger (late) TCH assignment */
- var DchanTuple dt := f_est_dchan(f_rnd_ra_cs(), 23, f_rnd_octstring(16));
+ var DchanTuple dt := f_est_dchan(f_rnd_ra_cs(), 23, c_l3_payload);
/* Send a BSSMAP Assignment Command, expect CHANnel ACTIVation */
BSSAP.send(ts_BSSAP_DATA_req(dt.sccp_conn_id, ass_cmd));
@@ -9685,7 +9681,7 @@
var DchanTuple dt;
/* Establish a dedicated channel, so we can trigger handover */
- dt := f_est_dchan(f_rnd_ra_cs(), 23, f_rnd_octstring(16));
+ dt := f_est_dchan(f_rnd_ra_cs(), 23, c_l3_payload);
f_sleep(0.5);
/* Trigger handover from BTS0 to BTS1 */
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/30823
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: I012dbdc673ff98a6647280ce3d0245abff86cfa4
Gerrit-Change-Number: 30823
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: newchange
Attention is currently required from: neels, fixeria.
Hello Jenkins Builder, neels, fixeria,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/30822
to look at the new patch set (#2).
Change subject: bsc: Move hardcoded octetstring to single constant field
......................................................................
bsc: Move hardcoded octetstring to single constant field
This makes it easier changing it to be a valid l3 payload in the future.
Related: SYS#6280
Change-Id: I888bcc42d4b68bac4c12dfbbf3c74e1734318699
---
M bsc/BSC_Tests.ttcn
M bsc/BSC_Tests_CBSP.ttcn
M bsc/BSC_Tests_VAMOS.ttcn
3 files changed, 66 insertions(+), 76 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/22/30822/2
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/30822
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: I888bcc42d4b68bac4c12dfbbf3c74e1734318699
Gerrit-Change-Number: 30822
Gerrit-PatchSet: 2
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Attention: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-MessageType: newpatchset
Attention is currently required from: fixeria.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/osmocom-bb/+/30812 )
Change subject: layer23/sysinfo: implement decoding of SI13 Rest Octets
......................................................................
Patch Set 4:
(1 comment)
File src/host/layer23/include/osmocom/bb/common/sysinfo.h:
https://gerrit.osmocom.org/c/osmocom-bb/+/30812/comment/72f72c1c_1ef9e268
PS2, Line 74: uint8_t supported;
> I do use bool wherever possible too. […]
You are touching code adding new fields, I don't see what's the problem with using bools whenever adding a new bool field.
Using 0 and !0 is not confusing AFTER you spend time figuring out that unsigned integer is actually used as a boolean by looking at how the field is used all over the code.
--
To view, visit https://gerrit.osmocom.org/c/osmocom-bb/+/30812
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: Ia6ff7d4e37816c6321b54c1f7f8d7110e557f8c5
Gerrit-Change-Number: 30812
Gerrit-PatchSet: 4
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-CC: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Comment-Date: Mon, 02 Jan 2023 17:00:04 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: fixeria <vyanitskiy(a)sysmocom.de>
Comment-In-Reply-To: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: comment
Attention is currently required from: pespin.
fixeria has posted comments on this change. ( https://gerrit.osmocom.org/c/osmocom-bb/+/30812 )
Change subject: layer23/sysinfo: implement decoding of SI13 Rest Octets
......................................................................
Patch Set 4:
(1 comment)
File src/host/layer23/include/osmocom/bb/common/sysinfo.h:
https://gerrit.osmocom.org/c/osmocom-bb/+/30812/comment/0f0842d0_d0b878bb
PS2, Line 74: uint8_t supported;
> > Yes, but <stdbool.h> in not used this file. […]
I do use bool wherever possible too. But here we're touching old code from 2010 and it's rather typical to see integers used to store boolean values. Not sure what exactly confuses you so much: 0 is false, anything else is true. As I said I prefer to stay consistent with the existing fields in this file. Feel free to submit patch(es) refactoring everything to use bool, if you have time.
--
To view, visit https://gerrit.osmocom.org/c/osmocom-bb/+/30812
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: Ia6ff7d4e37816c6321b54c1f7f8d7110e557f8c5
Gerrit-Change-Number: 30812
Gerrit-PatchSet: 4
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-CC: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Mon, 02 Jan 2023 16:57:00 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: pespin <pespin(a)sysmocom.de>
Comment-In-Reply-To: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-MessageType: comment
Attention is currently required from: neels.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-bsc/+/30821 )
Change subject: bsc: Fix crash if PagingResponse with invalid MobileIdentity is received
......................................................................
Patch Set 1: Code-Review+2
(1 comment)
File src/osmo-bsc/gsm_08_08.c:
https://gerrit.osmocom.org/c/osmo-bsc/+/30821/comment/81daa178_b1c7f49d
PS1, Line 443: if (conn->bsub)
> in general osmo-bsc code assumes that the subscriber is non-NULL, we can work around like this, but […]
We definetly need to find the subscriber since the paging requests are now stored in a list per subscriber (eg if a subscriber is paged for the entire BSS and you have 200 BTS, then you have 200 paging requests per subscriber).
Having them reachable per subscriber is hence really saving lots of CPU time.
Hence it really makes no sense to call paging_request_stop() if bsub is NULL now, since anyway nothing would be done in that case.
--
To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/30821
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: If8b439ff74c5dd690d637d3e3278c75d6cd6b928
Gerrit-Change-Number: 30821
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Comment-Date: Mon, 02 Jan 2023 16:45:13 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: neels <nhofmeyr(a)sysmocom.de>
Gerrit-MessageType: comment
Attention is currently required from: pespin.
Hello Jenkins Builder, fixeria,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/libosmo-gprs/+/30813
to look at the new patch set (#3).
Change subject: tests/llc: Test gprs_llc_is_retransmit()
......................................................................
tests/llc: Test gprs_llc_is_retransmit()
Imported from osmo-sgsn.git 4398ac073b7fc8363882b5f7414470b73d4f446a
./tests/gprs/gprs_test.c.
Change-Id: I4104ee9cc458b7d169ee9761e02369442058675a
---
M tests/llc/Makefile.am
A tests/llc/llc_test.c
A tests/llc/llc_test.err
A tests/llc/llc_test.ok
M tests/testsuite.at
5 files changed, 122 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/libosmo-gprs refs/changes/13/30813/3
--
To view, visit https://gerrit.osmocom.org/c/libosmo-gprs/+/30813
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-gprs
Gerrit-Branch: master
Gerrit-Change-Id: I4104ee9cc458b7d169ee9761e02369442058675a
Gerrit-Change-Number: 30813
Gerrit-PatchSet: 3
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: newpatchset