Page MenuHome GnuPG

libgcrypt: HAVE_BROKEN_MLOCK
Open, HighPublic

Description

Building with address sanitizer, HAVE_BROKEN_MLOCK is enabled.
In this case secmem does not work (as it's incompatible to address sanitizer). Current code assumes that HAVE_BROKEN_MLOCK is for some particular OS like HP/UX or AIX, so, we need some fix to address address sanitizer case.

Event Timeline

gniibe triaged this task as High priority.
gniibe created this task.

There's GCRYPT_IN_ASAN_TEST environment variable check in tests/t-secmen.c and tests/t-sexp.c. Are those check needed after this change? Could they be removed?

@jukivili
Thanks for your feedback.

Are those check needed after this change? Could they be removed?

Those checks are not needed any more, as secmem pretends working with HAVE_BROKEN_MLOCK.
Please remove them.

Note that:
If we consider backporting this to 1.10/1.11 branch, we also need to apply: rCdef1d4ea8f66: random:jent: Fix build with address sanitizer.