]> git.baikalelectronics.ru Git - kernel.git/commit
efi/x86: Mark kernel rodata non-executable for mixed mode
authorArvind Sankar <nivedita@alum.mit.edu>
Fri, 17 Jul 2020 19:45:26 +0000 (15:45 -0400)
committerArd Biesheuvel <ardb@kernel.org>
Thu, 20 Aug 2020 09:18:36 +0000 (11:18 +0200)
commit2f4b9b3e050ab2f216d0836ba692b24e1d3fe37e
treee3c61984672bb8fa25d4026e228be29cd99ec66c
parentdd44bddf04c5fd83529b139fbfac0a5372c1a87d
efi/x86: Mark kernel rodata non-executable for mixed mode

When remapping the kernel rodata section RO in the EFI pagetables, the
protection flags that were used for the text section are being reused,
but the rodata section should not be marked executable.

Cc: <stable@vger.kernel.org>
Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Link: https://lore.kernel.org/r/20200717194526.3452089-1-nivedita@alum.mit.edu
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
arch/x86/platform/efi/efi_64.c