Project

General

Profile

Actions

Feature #2610

open

optimize GnuTLS fallback

Added by msuraev over 5 years ago. Updated almost 5 years ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
-
Target version:
-
Start date:
11/02/2017
Due date:
% Done:

0%

Spec Reference:

Description

The osmo_get_rand_id() uses GnuTLS as a fallback in case of getrandom is unavailable or fails.

It's been suggested to use static variable to cache the failure of getrandom and always use GnuTLS fallback after first getrandom failure.

The getrandom calls are compiled-time option and used only if available.

To test this properly we first have to merge osmo_get_rand_id() support into osmo-*, than create test suite which measures the impact of getrandom calls. This requires following:
  • getrandom support is compiled-in (default if available)
  • gnutls fallback is enabled (default unless embedded build is used)
  • getrandom always fails (not sure how to make this happen)

Related issues

Related to libosmocore - Bug #1694: integrate debian patchesResolvedmsuraev04/22/2016

Actions
Related to libosmocore - Bug #3909: osmo_get_rand_id() fails in containerised environmentNew04/07/2019

Actions
Actions #1

Updated by msuraev over 5 years ago

  • Related to Bug #1694: integrate debian patches added
Actions #2

Updated by laforge almost 5 years ago

  • Priority changed from Normal to Low
Actions #3

Updated by laforge over 3 years ago

  • Related to Bug #3909: osmo_get_rand_id() fails in containerised environment added
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)