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)
Unified · Split
| @@ -1728,7 +1728,6 @@ int efa_mmap(struct ib_ucontext *ibucontext, · 1727 unmodified lines | ||
| 1728 | 1728 | ibdev_dbg(&dev->ibdev, "Mapping executable pages is not permitted\n"); |
| 1729 | 1729 | return -EPERM; |
| 1730 | 1730 | } |
| 1731 | − vma->vm_flags &= ~VM_MAYEXEC; | |
| 1732 | 1731 | |
| 1733 | 1732 | return __efa_mmap(dev, ucontext, vma, key, length); |
| 1734 | 1733 | } |