linux_dsm_epyc7002/drivers/infiniband/hw
Michael J. Ruhl 7709b0dc26 IB/hfi1: Remove overly conservative VM_EXEC flag check
Applications that use the stack for execution purposes cause userspace PSM
jobs to fail during mmap().

Both Fortran (non-standard format parsing) and C (callback functions
located in the stack) applications can be written such that stack
execution is required. The linker notes this via the gnu_stack ELF flag.

This causes READ_IMPLIES_EXEC to be set which forces all PROT_READ mmaps
to have PROT_EXEC for the process.

Checking for VM_EXEC bit and failing the request with EPERM is overly
conservative and will break any PSM application using executable stacks.

Cc: <stable@vger.kernel.org> #v4.14+
Fixes: 1222026764 ("IB/hfi: Protect against writable mmap")
Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2019-01-21 14:20:08 -07:00
..
bnxt_re cross-tree: phase out dma_zalloc_coherent() 2019-01-08 07:58:37 -05:00
cxgb3 cross-tree: phase out dma_zalloc_coherent() 2019-01-08 07:58:37 -05:00
cxgb4 cross-tree: phase out dma_zalloc_coherent() 2019-01-08 07:58:37 -05:00
hfi1 IB/hfi1: Remove overly conservative VM_EXEC flag check 2019-01-21 14:20:08 -07:00
hns cross-tree: phase out dma_zalloc_coherent() 2019-01-08 07:58:37 -05:00
i40iw cross-tree: phase out dma_zalloc_coherent() 2019-01-08 07:58:37 -05:00
mlx4 IB/mlx4: Fix using wrong function to destroy sqp AHs under SRIOV 2019-01-21 14:20:08 -07:00
mlx5 RDMA/mlx5: Fix check for supported user flags when creating a QP 2019-01-21 14:20:08 -07:00
mthca First 5.0 rc pull request 2019-01-18 17:17:20 +12:00
nes 4.21 merge window pull request 2018-12-28 14:57:10 -08:00
ocrdma cross-tree: phase out dma_zalloc_coherent() 2019-01-08 07:58:37 -05:00
qedr cross-tree: phase out dma_zalloc_coherent() 2019-01-08 07:58:37 -05:00
qib IB/{hfi1, qib}: Fix WC.byte_len calculation for UD_SEND_WITH_IMM 2019-01-21 14:20:08 -07:00
usnic IB/usnic: Fix potential deadlock 2018-12-19 16:30:16 -07:00
vmw_pvrdma First 5.0 rc pull request 2019-01-18 17:17:20 +12:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00