diff options
author | Kees Cook <keescook@chromium.org> | 2016-10-28 10:45:16 +0300 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2017-06-30 22:00:52 +0300 |
commit | 8acdf5055974e49d337d51ac7011449cfd7b7d05 (patch) | |
tree | 6a2f0911e7eff74141bed50c2a5db94cd2bce577 /arch/arm/include/asm/cacheflush.h | |
parent | 29e48ce87f1eaaa4b1fe3d9af90c586ac2d1fb74 (diff) | |
download | linux-8acdf5055974e49d337d51ac7011449cfd7b7d05.tar.xz |
randstruct: opt-out externally exposed function pointer structs
Some function pointer structures are used externally to the kernel, like
the paravirt structures. These should never be randomized, so mark them
as such, in preparation for enabling randstruct's automatic selection
of all-function-pointer structures.
These markings are verbatim from Brad Spengler/PaX Team's code in the
last public patch of grsecurity/PaX based on my understanding of the
code. Changes or omissions from the original code are mine and don't
reflect the original grsecurity/PaX code.
Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'arch/arm/include/asm/cacheflush.h')
-rw-r--r-- | arch/arm/include/asm/cacheflush.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/include/asm/cacheflush.h b/arch/arm/include/asm/cacheflush.h index d69bebf697e7..74504b154256 100644 --- a/arch/arm/include/asm/cacheflush.h +++ b/arch/arm/include/asm/cacheflush.h @@ -116,7 +116,7 @@ struct cpu_cache_fns { void (*dma_unmap_area)(const void *, size_t, int); void (*dma_flush_range)(const void *, const void *); -}; +} __no_randomize_layout; /* * Select the calling method |