]> git.baikalelectronics.ru Git - kernel.git/commit
riscv: read-only pages should not be writable
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 28 May 2022 01:41:32 +0000 (03:41 +0200)
committerArd Biesheuvel <ardb@kernel.org>
Sat, 28 May 2022 09:39:31 +0000 (11:39 +0200)
commited860009cd142053900c8898a44bffeeb4db78c1
tree0740cd597fd3cf9325fdaffe1452f055c04688a3
parent10a95f9c788f55e8f09fe25e9a5adc791c86fce7
riscv: read-only pages should not be writable

If EFI pages are marked as read-only,
we should remove the _PAGE_WRITE flag.

The current code overwrites an unused value.

Fixes: b4f7f2cfcac14 ("RISC-V: Add EFI runtime services")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Link: https://lore.kernel.org/r/20220528014132.91052-1-heinrich.schuchardt@canonical.com
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
arch/riscv/kernel/efi.c