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)
Fixes: 40909f664d
("RDMA/efa: Add EFA verbs implementation")
Reported-by: Jason Gunthorpe <jgg@ziepe.ca>
Reviewed-by: Firas JahJah <firasj@amazon.com>
Reviewed-by: Yossi Leybovich <sleybo@amazon.com>
Signed-off-by: Gal Pressman <galpress@amazon.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
This commit is contained in:
parent
37eb86c450
commit
4f240dfec6
|
@ -1728,7 +1728,6 @@ int efa_mmap(struct ib_ucontext *ibucontext,
|
|||
ibdev_dbg(&dev->ibdev, "Mapping executable pages is not permitted\n");
|
||||
return -EPERM;
|
||||
}
|
||||
vma->vm_flags &= ~VM_MAYEXEC;
|
||||
|
||||
return __efa_mmap(dev, ucontext, vma, key, length);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue