]> git.baikalelectronics.ru Git - kernel.git/commit
riscv: set the permission of vdso_data to read-only
authorVincent Chen <vincent.chen@sifive.com>
Tue, 9 Jun 2020 14:14:49 +0000 (22:14 +0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Thu, 11 Jun 2020 02:47:35 +0000 (19:47 -0700)
commitdda9a651e93bb061c5e3d227263ebdd374faf464
tree889dc2bf914443827c96e1d7a7f6f4b449e742a2
parent64b54cd2683d7b4ba878ccb3d1faf6b90c9b4c67
riscv: set the permission of vdso_data to read-only

The original vdso_data page is empty, so the permission of the vdso_data
page can be the same with the vdso text page. After introducing the vDSO
common flow, the vdso_data is not empty and the permission should be
changed to read-only.

Signed-off-by: Vincent Chen <vincent.chen@sifive.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/kernel/vdso.c