aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/c++/clang.cpp
diff options
context:
space:
mode:
authorMichael J. Ruhl <[email protected]>2019-01-17 20:42:04 +0000
committerJason Gunthorpe <[email protected]>2019-01-21 21:20:08 +0000
commit7709b0dc265f28695487712c45f02bbd1f98415d (patch)
treed641beaa4633bdbd60c65c73c129c6050e3dd8b5 /tools/perf/util/c++/clang.cpp
parentIB/{hfi1, qib}: Fix WC.byte_len calculation for UD_SEND_WITH_IMM (diff)
downloadkernel-7709b0dc265f28695487712c45f02bbd1f98415d.tar.gz
kernel-7709b0dc265f28695487712c45f02bbd1f98415d.zip
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: <[email protected]> #v4.14+ Fixes: 12220267645c ("IB/hfi: Protect against writable mmap") Reviewed-by: Mike Marciniszyn <[email protected]> Reviewed-by: Dennis Dalessandro <[email protected]> Reviewed-by: Ira Weiny <[email protected]> Signed-off-by: Michael J. Ruhl <[email protected]> Signed-off-by: Dennis Dalessandro <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/util/c++/clang.cpp')
0 files changed, 0 insertions, 0 deletions