Bionic (4.15.0-43.46), x86: mprotect(..., PROT_NONE) failure for VM_PFNMAP VMAs (fixed in mainline)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Version:
Distributor ID: Ubuntu
Description: Ubuntu 18.04.1 LTS
Release: 18.04
Codename: bionic
Ubuntu 4.15.0-
This is a bug that has been fixed in mainline. When calling 'mprotect(..., PROT_NONE)' on a virtual memory area with VM_PFNMAP set it fails with a EACCESS (Permission denied) error even though it is a valid call. In my particular case this happens when calling mprotect(..., PROT_NONE) on a set of pages within the range of an Intel SGX enclave.
The bug is fully described on the Linux kernel mailing list here: https:/
The bug has been fixed in mainline in August, see https:/
According to https:/
This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:
apport-collect 1813179
and then change the status of the bug to 'Confirmed'.
If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.
This change has been made by an automated script, maintained by the Ubuntu Kernel Team.