Skip to content

Linux 4.15> does not allow mmap with a large address #10

Description

@soramichi

Maybe related to #9 but a different issue.

Since linux 4.15, mmap checks if the addresses given as parameters are not harmful in the sense that they do not intentionally set flag bits embedded in the addresses (such as NX bit-related ones).
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/commit/arch/x86/mm/mmap.c?h=v4.15.8&id=be62a32044061cb4a3b70a10598e093f1319102e

Due to this change, mc-mapping with the -x option does not work for linux 4.15> because 0x1000000080000000 used as the offset parameter of mmap is condemned by this check and the mmap returns EINVAL.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions