Thread (17 messages) 17 messages, 6 authors, 2022-11-15

Re: [PATCH v1 2/2] kselftest: vm: add tests for memory-deny-write-execute

From: Mark Brown <broonie@kernel.org>
Date: 2022-11-09 13:34:08
Also in: linux-mm, lkml

On Tue, Nov 08, 2022 at 05:33:03PM +0000, Joey Gouly wrote:
On Fri, Oct 28, 2022 at 06:03:18PM +0100, Mark Brown wrote:
quoted
On Wed, Oct 26, 2022 at 04:04:57PM +0100, Joey Gouly wrote:
quoted
quoted
+#ifdef __aarch64__
+#define PROT_BTI      0x10            /* BTI guarded page */
+#endif
quoted
We should get this from the kernel headers shouldn't we?  We generally
rely on things getting pulled in from there rather than locally
defining.
I believe the mman.h included is from the toolchain, not the kernel's uapi headers.
The toolchain I was using didn't have PROT_BTI defined in its mman.h
I'd expect that whatever we're doing in the build process ought to be
overriding the default headers provided by the toolchain, that's kind of
the point here...
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help