History

RDMA/efa: Remove MAYEXEC flag check from mmap flow

MAYEXEC test was mistakenly added, remove it. Checking MAYEXEC in the driver prevents it from working with userspace that uses things like EXEC STACK. (ie some Fortran and other runtimes)

Gal Pressman committed 7 years ago

Commit 4f240df1 parent 37eb86c1 file · +0 −1Browse files

Unified · Split

drivers/infiniband/hw/efa/efa_verbs.c+0−1
@@ -1728,7 +1728,6 @@ int efa_mmap(struct ib_ucontext *ibucontext, · 1727 unmodified lines
1728 ibdev_dbg(&dev->ibdev, "Mapping executable pages is not permitted\n");1728 ibdev_dbg(&dev->ibdev, "Mapping executable pages is not permitted\n");
1729 return -EPERM;1729 return -EPERM;
1730 }1730 }
1731 vma->vm_flags &= ~VM_MAYEXEC;
1732 1731
1733 return __efa_mmap(dev, ucontext, vma, key, length);1732 return __efa_mmap(dev, ucontext, vma, key, length);
1734}1733}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t