commit | 334cf8759f986fd1d6b191cc12a4134cb912974f | [log] [tgz] |
---|---|---|
author | Daniel Willmann <dwillmann@sysmocom.de> | Wed Nov 10 16:44:56 2021 +0100 |
committer | Daniel Willmann <dwillmann@sysmocom.de> | Thu Nov 11 16:50:01 2021 +0100 |
tree | 03aeaadd549b217f7806799e5a4f834bf2faa87b | |
parent | 6b5a533f4d44e75356e3f1c006e311215611541d [diff] |
ns2: Avoid use-after-free when SGSN-side non-persistent SNS-NSE fails alive_timeout_handler() changes the state to RECOVERING which calls ns2_st_alive_onenter()->ns2_nse_notify_unblocked(unblocked=false)-> ns2_sns_notify_alive(unblocked=false) When all (signalling) NSVCs have failed and gss->role is SGSN and not persistent sns_failed() calls gprs_ns2_free_nse() which talloc_free()s the nse before returning. The next line in ns2_nse_notify_unblocked() tries to read nse->alive which then causes the use-after-free. Change-Id: I0486a77fd3e21fd3904bd19e4e0225ffbf654935 Related: OS#5302
This repository contains a set of C-language libraries that form the core infrastructure of many Osmocom Open Source Mobile Communications projects.
Historically, a lot of this code was developed as part of the OpenBSC project, but which are of a more generic nature and thus useful to (at least) other programs that we develop in the sphere of Free Software / Open Source mobile communications.
There is no clear scope of it. We simply move all shared code between the various Osmocom projects in this library to avoid code duplication.
The libosmocore.git repository build multiple libraries:
The official homepage of the project is https://osmocom.org/projects/libosmocore/wiki/Libosmocore
You can clone from the official libosmocore.git repository using
git clone git://git.osmocom.org/libosmocore.git
There is a cgit interface at https://git.osmocom.org/libosmocore/
Doxygen-generated API documentation is generated during the build process, but also available online for each of the sub-libraries at https://ftp.osmocom.org/api/latest/libosmocore/
Discussions related to libosmocore are happening on the openbsc@lists.osmocom.org mailing list, please see https://lists.osmocom.org/mailman/listinfo/openbsc for subscription options and the list archive.
Please observe the Osmocom Mailing List Rules when posting.
Our coding standards are described at https://osmocom.org/projects/cellular-infrastructure/wiki/Coding_standards
We us a gerrit based patch submission/review process for managing contributions. Please see https://osmocom.org/projects/cellular-infrastructure/wiki/Gerrit for more details
The current patch queue for libosmocore can be seen at https://gerrit.osmocom.org/#/q/project:libosmocore+status:open