Project

General

Profile

Actions

Bug #3122

closed

fix subscr_conn fsm: safely catch all compl-l3 failures, properly handle all release situations

Added by neels about 6 years ago. Updated about 6 years ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
-
Target version:
-
Start date:
03/28/2018
Due date:
% Done:

100%

Resolution:
Spec Reference:

Description

Various reports and patches pop up with various people about the MSC's subscr_conn FSM not handling specific corner cases properly.

  • If anything goes wrong during compl-l3, the FSM might think that it is busy with auth+ciph. Need a separate state for auth+ciph; then at the end of msc_compl_l3() discard any conn that is still in state 'NEW'.
  • For failure situations causing premature conn release, properly handle release messages and receive responses in a separate 'RELEASING' state.
  • In the course of that, it may make sense to refactor:
    • closely tie the FSM with the struct gsm_subscriber_connection. Historically, the ownership was shared between libbsc and libmsc, complicating the ref-count in that the FSM was a separate entity. It should be possible to refactor the conn struct and the FSM as "a single entity", triggering a release event by the ref-count reaching zero, instead of needing explicit "release if unused" events.
    • CM Service Requests may actually overlap. The conn>received_cm_service_request however is a boolean, which means that we possibly lose the pending-ness of a second CM Service Request if a first one concludes at just the wrong time, or if two come in "consecutively".- -> #3156

That's a lot to ask for in a single issue, but it makes sense to tie all of these items into a refactoring of the subscr_conn FSM.


Related issues

Related to OsmoMSC - Bug #3062: osmo-msc crash while running osmo-gsm-tester voice:nanobtsResolvedneels03/13/2018

Actions
Related to OsmoMSC - Bug #3125: testcase for fixed "osmo-msc crashes while handling a call"Newneels03/29/2018

Actions
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)