mirror of
https://github.com/torvalds/linux.git
synced 2024-12-27 21:33:00 +00:00
9ccaf77cf0
This removes the CONFIG_DEBUG_RODATA option and makes it always enabled. This simplifies the code and also makes it clearer that read-only mapped memory is just as fundamental a security feature in kernel-space as it is in user-space. Suggested-by: Ingo Molnar <mingo@kernel.org> Signed-off-by: Kees Cook <keescook@chromium.org> Cc: Andy Lutomirski <luto@amacapital.net> Cc: Arnd Bergmann <arnd@arndb.de> Cc: Borislav Petkov <bp@alien8.de> Cc: Brian Gerst <brgerst@gmail.com> Cc: David Brown <david.brown@linaro.org> Cc: Denys Vlasenko <dvlasenk@redhat.com> Cc: Emese Revfy <re.emese@gmail.com> Cc: H. Peter Anvin <hpa@zytor.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Mathias Krause <minipli@googlemail.com> Cc: Michael Ellerman <mpe@ellerman.id.au> Cc: PaX Team <pageexec@freemail.hu> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: kernel-hardening@lists.openwall.com Cc: linux-arch <linux-arch@vger.kernel.org> Link: http://lkml.kernel.org/r/1455748879-21872-4-git-send-email-keescook@chromium.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
15 lines
324 B
C
15 lines
324 B
C
#ifndef _ASM_X86_SECTIONS_H
|
|
#define _ASM_X86_SECTIONS_H
|
|
|
|
#include <asm-generic/sections.h>
|
|
#include <asm/uaccess.h>
|
|
|
|
extern char __brk_base[], __brk_limit[];
|
|
extern struct exception_table_entry __stop___ex_table[];
|
|
|
|
#if defined(CONFIG_X86_64)
|
|
extern char __end_rodata_hpage_align[];
|
|
#endif
|
|
|
|
#endif /* _ASM_X86_SECTIONS_H */
|