Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guard pdr::far and far::fwd_param by RCU macros #75

Merged
merged 1 commit into from
May 1, 2023

Conversation

ShouheiNishi
Copy link
Contributor

In current codes, if the field far in struct pdr was changed to NULL during packet forwarding process, NULL access occurs.
To avoid this, rcu_derefernce() macro was used for reading field *far in struct pdr, reading result is reused subroutines.
The field fwd_param in struct far is treated in the same way.

@ShouheiNishi ShouheiNishi marked this pull request as ready for review April 25, 2023 06:50
@tim-ywliu tim-ywliu merged commit 8c159e8 into free5gc:master May 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants