nrUE NAS: decode the IEs of the Service Accept #983
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.33) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.33 · 149 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.300
Real PR Conversation Timeline
1 comments
"Review active on #983"
general
weight: 0.35
antcybersec
On develop the UE never decodes the IEs of a Service Accept:
handle_service_accept()passed the whole NAS PDU todecode_fgs_service_accept(), which expects only the message body, so decoding stopped at the first header octet (0x7e). It now skips the security protected header, if any, and the 5GMM header first, ashandle_service_reject()does (from #783).decode_pdu_session_ie()checked for 4 octets after the IEI instead of 3 (length and 2 content octets), rejecting a PDU session status or reactivation result IE at the end of the message (OAI CN5G places reactivation result last).Also logs each reactivation error cause instead of repeating the first, and frees the decoded message.
Testing:
test_service_accept()also decodes its encoded message cut after the PDU session reactivation result, so that it is the last IE (fails without thefgmm_lib.cchange).handle_service_accept()gives the expected IEs on the 18-octet protected Service Accept from CI (7e 02 3a b9 45 b3 03 7e 00 4e 50 02 02 00 26 02 00 00).nr_nas_msg.candnas_lib_testbuild without warnings; clang-format is clean.Could a maintainer add the
nrUElabel?