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
17281728 ibdev_dbg(&dev->ibdev, "Mapping executable pages is not permitted\n");
17291729 return -EPERM;
17301730 }
1731− vma->vm_flags &= ~VM_MAYEXEC;
17321731
17331732 return __efa_mmap(dev, ucontext, vma, key, length);
17341733 }

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