https://osmocom.org/https://osmocom.org/favicon.ico?16647414092021-03-27T17:50:11ZOpen Source Mobile CommunicationsOsmoGGSN (former OpenGGSN) - Bug #5097: osmo-ggsn segv when using static prefix apnhttps://osmocom.org/issues/5097?journal_id=217552021-03-27T17:50:11Zlaforge
<ul></ul><p>On Fri, Mar 26, 2021 at 09:15:37PM +0000, roh [REDMINE] wrote:</p>
<blockquote>
<p>just tried to use the static prefix on a custom apn, and it segfaultet on me a few seconds after startup.<br />am i missing some important config bits? anyhow - it should not segfault</p>
</blockquote>
<p>I am wondering why static can be selected at all, and how that would work.</p>
<p>Static IPs in 3GPP networks usually mean tha</p>
<p>a) the HLR stores a static IP address for each (subscriber, APN)<br />b) the GGSN talks to the HLR to obtain that subscription information</p>
<p>AFAICT, we have neither of the above, so it's not surprising that it fails.</p>
<p>As stated, the bit question is why one can configure it in the VTY...</p> OsmoGGSN (former OpenGGSN) - Bug #5097: osmo-ggsn segv when using static prefix apnhttps://osmocom.org/issues/5097?journal_id=217562021-03-27T17:51:48Zlaforge
<ul></ul><p>ok, so it's s lightly different than I recalled.</p>
<p>3GPP specs:</p>
<ul>
<li>HLR must store the static IP address per (subscriber, apn)</li>
<li>HLR provides this information during "insert subscriber data" <br />from HLR -> SGSN</li>
<li>SGSN must include the "PDP Address" field in the "End User Address IE" <br />during the PDP CTX ACT REQ from SGSN to GGSN.</li>
</ul>
<p>Looking at osmocom:</p>
<ul>
<li>osmo-hlr cannot store static IPs per (apn, subscriber)</li>
<li>GSUP doesn't have related IEs</li>
<li>libosmocore gsup code doesn't represent this in 'osmo_gsup_pdp_info'</li>
<li>osmo-sgsn consequently doesn't handle it nor sends it to GGSN</li>
<li>osmo-ggsn doesn't handle this in create_context_ind()</li>
</ul>
So what we should ASAP do (in the GGSN):
<ul>
<li>remove the VTY configuration for static IP pools</li>
<li>reject any PDP CTX ACT REQ for static IPs</li>
</ul> OsmoGGSN (former OpenGGSN) - Bug #5097: osmo-ggsn segv when using static prefix apnhttps://osmocom.org/issues/5097?journal_id=217572021-03-27T18:15:20Zlaforge
<ul></ul><ul>
<li><a class="external" href="https://gerrit.osmocom.org/c/osmo-ggsn/+/23516">https://gerrit.osmocom.org/c/osmo-ggsn/+/23516</a> ggsn: Reject PDP CTX ACT for static IP addresses [NEW]</li>
<li><a class="external" href="https://gerrit.osmocom.org/c/osmo-ggsn/+/23517">https://gerrit.osmocom.org/c/osmo-ggsn/+/23517</a> vty: Inform user that static IP addresses are not supported [NEW]</li>
</ul> OsmoGGSN (former OpenGGSN) - Bug #5097: osmo-ggsn segv when using static prefix apnhttps://osmocom.org/issues/5097?journal_id=218072021-03-30T13:58:46Zroh
<ul></ul><p>just tested a build with these and it rejects the static config fine without crashes (exits properly)</p> OsmoGGSN (former OpenGGSN) - Bug #5097: osmo-ggsn segv when using static prefix apnhttps://osmocom.org/issues/5097?journal_id=218952021-04-11T21:31:41Zlaforge
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Resolved</i></li><li><strong>Assignee</strong> set to <i>laforge</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul>