Skip to content
Success

#21478 (Apr 9, 2026, 3:11:16 PM)

Started 8 hr 9 min ago
Took 57 sec on build5-deb12build-ansible

Started by upstream project gerrit-osmo-sgsn build number 572
originally caused by:

This run spent:

  • 6.4 sec waiting;
  • 57 sec build duration;
  • 1 min 4 sec total from scheduled to completion.
Revision: 80dc0c9aeb39386f0c558c7e2de7288e89794478
Repository: $GERRIT_REPO_URL
  • master
sgsn_libgtp: fix NULL dereference in cb_delete_context()

sgsn_pdp_ctx_free() contains an abnormal path (with a backtrace log)
for the case where a PDP context is freed while its libgtp handle is
still attached.  In that path, lib->priv is set to NULL to prevent
other callbacks (e.g. cb_data_ind()) from dereferencing the already-
freed sgsn_pdp_ctx.

When libgtp subsequently calls cb_delete_context() as part of its own
teardown, pdp->priv is NULL, causing an immediate NULL dereference at
the pctx->lib = NULL assignment.

Guard against this by returning early when priv is NULL: the SGSN-side
context is already gone, so there is nothing left for the callback to do.

Change-Id: I7d800766b08d87b6f2b23a0cd45435925f9998ff
Vadim Yanitskiy at