]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
mmap map_at_zero test: handle W^X
authorArka Sharma <arka_sharma@dell.com>
Fri, 18 Feb 2022 15:34:15 +0000 (09:34 -0600)
committerEric van Gyzen <vangyzen@FreeBSD.org>
Thu, 3 Mar 2022 14:20:07 +0000 (08:20 -0600)
commit6a73d96ac4def6ba03788ed0914aa994c037778a
tree333614f5d3d8db968849d1a814e86db9760eeafd
parentb8319d9f78f7456bb90b69d59403918e27b640d4
mmap map_at_zero test: handle W^X

Use kern.elfXX.allow_wx to decide whether to map W+X or W-only memory.

Future work could expand this test to add an "allow_wx" axis to the
test matrix, but I would argue that a separate test should be written,
since that's orthogonal to map_at_zero.

MFC after: 1 week
Sponsored by: Dell EMC Isilon

(cherry picked from commit 766c2466ff465b3c7c1a46be729b42a6da47de03)
tests/sys/vm/mmap_test.c