Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lizhongxiao
OpenXG-RAN
Commits
f2c11fc4
Commit
f2c11fc4
authored
Nov 09, 2023
by
okabetakayuki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix DoS vulnerability of RA procedure
Signed-off-by:
okabetakayuki
<
okabe_takayuki@jp.fujitsu.com
>
parent
790c3b99
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
+8
-0
No files found.
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
View file @
f2c11fc4
...
...
@@ -2905,7 +2905,15 @@ void nr_mac_update_timers(module_id_t module_id,
UE
->
ra_timer
--
;
if
(
UE
->
ra_timer
==
0
)
{
LOG_W
(
NR_MAC
,
"Removing UE %04x because RA timer expired
\n
"
,
UE
->
rnti
);
const
rnti_t
rnti
=
UE
->
rnti
;
mac_remove_nr_ue
(
mac
,
UE
->
rnti
);
NR_COMMON_channels_t
*
cc
=
&
mac
->
common_channels
[
0
];
for
(
int
i
=
0
;
i
<
NR_NB_RA_PROC_MAX
;
i
++
)
{
if
(
cc
->
ra
[
i
].
rnti
==
rnti
)
{
LOG_E
(
NR_MAC
,
"free RA process %d for rnti %04x
\n
"
,
i
,
rnti
);
nr_clear_ra_proc
(
module_id
,
0
,
frame
,
&
cc
->
ra
[
i
]);
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment