audio issues in CopperheadOS Nougat due to seccomp policy violation #419

Closed
thestinger opened this Issue Sep 6, 2016 · 1 comment

Comments

Projects
None yet
1 participant
@thestinger
Contributor

thestinger commented Sep 6, 2016

Our OpenBSD malloc port uses mremap to replace mquery + mmap in OpenBSD, and mremap isn't on the system call whitelists since jemalloc doesn't use it.

@thestinger thestinger added the Type: bug label Sep 6, 2016

@thestinger thestinger closed this Sep 6, 2016

@thestinger

This comment has been minimized.

Show comment Hide comment
@thestinger

thestinger Sep 6, 2016

Contributor

This has been fixed by disabling the mremap code in OpenBSD malloc for the time being. We'll consider approaching it differently, but we're fine with doing this. It only used mremap with flags set to 0 anyway, to match the existing OpenBSD malloc behavior. That isn't particularly useful, as it's MREMAP_MAYMOVE which offers the really useful functionality: moving very large allocations without copying the data, by copying only the page tables.

Contributor

thestinger commented Sep 6, 2016

This has been fixed by disabling the mremap code in OpenBSD malloc for the time being. We'll consider approaching it differently, but we're fine with doing this. It only used mremap with flags set to 0 anyway, to match the existing OpenBSD malloc behavior. That isn't particularly useful, as it's MREMAP_MAYMOVE which offers the really useful functionality: moving very large allocations without copying the data, by copying only the page tables.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment