-
Notifications
You must be signed in to change notification settings - Fork 41
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
Segmentation fault when terminating upf #16
Comments
I do not get a kernel crash, but my entire VM hangs. I have also isolated the problem to "pdr_context_delete". I see the problem even when during PDU session release. I commented out the "pdr_context_delete" in the "gtp5g_del_pdr" call, and then the VM didn't hang. I think somehow the rcu calls are not proper? I use Ubuntu 20.04 I reviewed the code as well, the pdi kfree should be at the end, Since pdi is used after the kfree is called. |
@sumichaaan/@NAYANSEN90, There is some problem with releasing a gtp interface. We will fix it soon. |
Hi @sumichaaan, One more thing, I would like to update you, this repo is part of free5GC project. Now, this repo forked into free5GC and maintain it there only. |
Closing this issue due to no longer support this repo.' Please, consider opening the issues in https://github.com/free5gc/gtp5g |
…zOwO#16) * modify makefile to decide to match IP address(in F-TEID) or not * update DRV_VERSION Co-authored-by: ycchen <chen042531.cs03@nctu.edu.tw>
Currently, I've built gtp5g kernel module v0.2.0 in Fedora CoreOS 32 and Kernel 5.8.x.
In my environment, I've checked that gtp5g kernel module is read correctly and free5gc upf is up.
But a segmentation fault occur when terminating upf.
The log at that time is as follows.
Maybe I suspect a timing of kfree(pdr->pdi) in pdr_context_free() (line 1097, gtp5g.c) is a mistake.
So, I think this code should be written after run the lines related to freeing SDF fields (line 1100 to 1110.)
How do you think about this?
Best Regards.
The text was updated successfully, but these errors were encountered: