Attention is currently required from: laforge, keith.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-ggsn/+/27352 )
Change subject: libgtp: Define retransmit QUEUE_SIZE relative to PDP_MAX (increase)
......................................................................
Patch Set 1:
(1 comment)
Patchset:
PS1:
> I think there's one static such array per remote GSN so in real networks with many SGSNs this might […]
I'd expect a host targeting many SGSNs to really have enough memory to handle that.
--
To view, visit https://gerrit.osmocom.org/c/osmo-ggsn/+/27352
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-ggsn
Gerrit-Branch: master
Gerrit-Change-Id: I6034b0fab2b2e5962314c2fca2f893246ce5cf4f
Gerrit-Change-Number: 27352
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: keith <keith(a)rhizomatica.org>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Attention: keith <keith(a)rhizomatica.org>
Gerrit-Comment-Date: Mon, 28 Feb 2022 14:38:13 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: comment
Attention is currently required from: pespin, keith.
laforge has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-ggsn/+/27352 )
Change subject: libgtp: Define retransmit QUEUE_SIZE relative to PDP_MAX (increase)
......................................................................
Patch Set 1: Code-Review+1
(1 comment)
Patchset:
PS1:
I think there's one static such array per remote GSN so in real networks with many SGSNs this might become a problem.
--
To view, visit https://gerrit.osmocom.org/c/osmo-ggsn/+/27352
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-ggsn
Gerrit-Branch: master
Gerrit-Change-Id: I6034b0fab2b2e5962314c2fca2f893246ce5cf4f
Gerrit-Change-Number: 27352
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: keith <keith(a)rhizomatica.org>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: keith <keith(a)rhizomatica.org>
Gerrit-Comment-Date: Mon, 28 Feb 2022 13:43:04 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Attention is currently required from: pespin, keith.
laforge has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-ggsn/+/27351 )
Change subject: libgtp: Fix ggsn crash if pdp alloc array is full (PDP_MAX)
......................................................................
Patch Set 1: Code-Review+1
--
To view, visit https://gerrit.osmocom.org/c/osmo-ggsn/+/27351
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-ggsn
Gerrit-Branch: master
Gerrit-Change-Id: I0d94ffad97eb4fef477d981bf285bf99740592a3
Gerrit-Change-Number: 27351
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: keith <keith(a)rhizomatica.org>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: keith <keith(a)rhizomatica.org>
Gerrit-Comment-Date: Mon, 28 Feb 2022 13:41:35 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Attention is currently required from: laforge.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/docker-playground/+/27348 )
Change subject: ttcn3-ggsn: Modify configs to alloc bigger IPv4 pools
......................................................................
Patch Set 1:
(1 comment)
Patchset:
PS1:
> please make sure to also do those changes in the configs in osmo-ttcn3-hacks
I don't see any osmo-ggsn.cfg in ggsn_tests/ there, so I thought I leave whoever uses it without docker to fill in a proper config file which works for him.
--
To view, visit https://gerrit.osmocom.org/c/docker-playground/+/27348
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-Change-Id: If3344c8acc9bc3b43ed0a13af52807d2a6050a81
Gerrit-Change-Number: 27348
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Comment-Date: Mon, 28 Feb 2022 13:34:24 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: comment
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-ggsn/+/27352 )
Change subject: libgtp: Define retransmit QUEUE_SIZE relative to PDP_MAX (increase)
......................................................................
Patch Set 1:
(1 comment)
Patchset:
PS1:
With this patch, most probably meta-telephony.git/recipes-osmocom/osmo-ggsn/files/libgtp-queue_depth_32.patch needs to be updated.
It probably makes more sense to actually reduce PDP_MAX in there, since in those kind of embedded devices we expect to run only 1 BTS so we shouldn't need more than let's say 128 concurrent pdp contexts.
For a 2 TRX BTS, we could have up to 15 PDCH TS, at a maximum of 7 USFs per TS: 15 * 7 = 105
--
To view, visit https://gerrit.osmocom.org/c/osmo-ggsn/+/27352
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-ggsn
Gerrit-Branch: master
Gerrit-Change-Id: I6034b0fab2b2e5962314c2fca2f893246ce5cf4f
Gerrit-Change-Number: 27352
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Comment-Date: Mon, 28 Feb 2022 13:30:19 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ggsn/+/27351 )
Change subject: libgtp: Fix ggsn crash if pdp alloc array is full (PDP_MAX)
......................................................................
libgtp: Fix ggsn crash if pdp alloc array is full (PDP_MAX)
osmo-ggsn crashes when concurrent pdp context 1024 is created, due to
the gsn->pdpa array (of size PDP_MAX, 1024) being full.
The crash happens because return code of gtp_pdp_newpdp was not checked,
and hence a pointer "pdp" pointing to a temporary not-fully-allocated
object was being passed to gsn->cb_create_context_ind() callback.
Let's avoid crashing and instead reject the PDP context.
Related: OS#5469
Change-Id: I0d94ffad97eb4fef477d981bf285bf99740592a3
---
M gtp/gtp.c
1 file changed, 12 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ggsn refs/changes/51/27351/1
diff --git a/gtp/gtp.c b/gtp/gtp.c
index 59fd355..7c781de 100644
--- a/gtp/gtp.c
+++ b/gtp/gtp.c
@@ -1809,7 +1809,16 @@
}
}
- gtp_pdp_newpdp(gsn, &pdp, pdp->imsi, pdp->nsapi, pdp);
+ rc = gtp_pdp_newpdp(gsn, &pdp, pdp->imsi, pdp->nsapi, pdp);
+ if (rc != 0) {
+ GTP_LOGPKG(LOGL_ERROR, peer, pack, len,
+ "Failed creating a new PDP context, array full (%u)\n", PDP_MAX);
+ /* &pdp in gtp_pdp_newpdp is untouched if it failed: */
+ rc = gtp_create_pdp_resp(gsn, version, pdp, GTPCAUSE_NO_MEMORY);
+ /* Don't pass it to emit_cb_recovery, since allocation failed and it was already rejected: */
+ pdp = NULL;
+ goto recover_ret;
+ }
/* Callback function to validate login */
if (gsn->cb_create_context_ind != 0)
@@ -1820,6 +1829,8 @@
rc = gtp_create_pdp_resp(gsn, version, pdp,
GTPCAUSE_NOT_SUPPORTED);
}
+
+recover_ret:
if (recovery_recvd)
emit_cb_recovery(gsn, peer, pdp, recovery);
return rc;
--
To view, visit https://gerrit.osmocom.org/c/osmo-ggsn/+/27351
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-ggsn
Gerrit-Branch: master
Gerrit-Change-Id: I0d94ffad97eb4fef477d981bf285bf99740592a3
Gerrit-Change-Number: 27351
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: newchange