Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1201344
| From | Leonid Yegoshin <Leonid.Yegoshin@imgtec.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v4 3/3] MIPS: set stack/data protection as non-executable |
| Date | 2015-08-06 01:50 +0200 |
| Message-ID | <pUgBA-84f-11@gated-at.bofh.it> (permalink) |
| References | <pUgBz-84f-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
This is a last step of 3 patches which shift FPU emulation out of stack into protected area. So, it disables a default executable stack. Additionally, it sets a default data area non-executable protection. Signed-off-by: Leonid Yegoshin <Leonid.Yegoshin@imgtec.com> --- arch/mips/include/asm/page.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/include/asm/page.h b/arch/mips/include/asm/page.h index 89dd7fed1a57..0b6cec4a1b80 100644 --- a/arch/mips/include/asm/page.h +++ b/arch/mips/include/asm/page.h @@ -228,7 +228,7 @@ extern int __virt_addr_valid(const volatile void *kaddr); #define virt_addr_valid(kaddr) \ __virt_addr_valid((const volatile void *) (kaddr)) -#define VM_DATA_DEFAULT_FLAGS (VM_READ | VM_WRITE | VM_EXEC | \ +#define VM_DATA_DEFAULT_FLAGS (VM_READ | VM_WRITE | \ VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC) #define UNCAC_ADDR(addr) ((addr) - PAGE_OFFSET + UNCAC_BASE) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH v4 3/3] MIPS: set stack/data protection as non-executable Leonid Yegoshin <Leonid.Yegoshin@imgtec.com> - 2015-08-06 01:50 +0200
Re: [PATCH v4 3/3] MIPS: set stack/data protection as non-executable Paul Burton <paul.burton@imgtec.com> - 2015-08-06 02:00 +0200
Re: [PATCH v4 3/3] MIPS: set stack/data protection as non-executable Leonid Yegoshin <Leonid.Yegoshin@imgtec.com> - 2015-08-06 02:10 +0200
Re: [PATCH v4 3/3] MIPS: set stack/data protection as non-executable Leonid Yegoshin <Leonid.Yegoshin@imgtec.com> - 2015-08-06 02:30 +0200
Re: [PATCH v4 3/3] MIPS: set stack/data protection as non-executable Paul Burton <paul.burton@imgtec.com> - 2015-08-06 02:50 +0200
Re: [PATCH v4 3/3] MIPS: set stack/data protection as non-executable Leonid Yegoshin <Leonid.Yegoshin@imgtec.com> - 2015-08-06 02:50 +0200
csiph-web