boehmgc: disable SOFT_VDB on powerpc64le for version 8.2.2#199978
Merged
AndersonTorres merged 3 commits intomasterfrom Nov 14, 2022
unknown repository
Merged
boehmgc: disable SOFT_VDB on powerpc64le for version 8.2.2#199978AndersonTorres merged 3 commits intomasterfrom unknown repository
AndersonTorres merged 3 commits intomasterfrom
unknown repository
Conversation
Upstream has not yet fixed the bug: bdwgc/bdwgc#376 bdwgc/bdwgc#479 However there is a recommended workaround: bdwgc/bdwgc#479 (comment) This adds `CFLAGS_EXTRA=-DNO_SOFT_VDB` to the `makeFlags`, which prevents direct accesses to `/proc` being used for tracking dirtied pages (which must be rescanned): https://github.com/ivmai/bdwgc/blob/54522af853de28f45195044dadfd795c4e5942aa/include/private/gcconfig.h#L741 The collector will fall back to using mprotect() to trigger page faults on writes to clean pages and maintain its own dirty bits, which is slightly less efficient but (in this case) more reliable. Unreliable page-dirtiness bits can lead to use-after-free() corruption; this is not a situation where disabling the tests is a good idea.
14 tasks
jiegec
approved these changes
Nov 7, 2022
AndersonTorres
suggested changes
Nov 13, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of changes
Upstream has not yet fixed the bug:
bdwgc/bdwgc#376
bdwgc/bdwgc#479
However there is a recommended workaround:
bdwgc/bdwgc#479 (comment)
This adds
CFLAGS_EXTRA=-DNO_SOFT_VDBto themakeFlags, which prevents direct accesses to/procbeing used for tracking dirtied pages (which must be rescanned):https://github.com/ivmai/bdwgc/blob/54522af853de28f45195044dadfd795c4e5942aa/include/private/gcconfig.h#L741
The collector will fall back to using mprotect() to trigger page faults on writes to clean pages and maintain its own dirty bits, which is slightly less efficient but (in this case) more reliable. Unreliable page-dirtiness bits can lead to use-after-free() corruption; this is not a situation where disabling the tests is a good idea.
CC: @trofi @jiegec
Things done
nix(with tests enabled)