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)
commit01f76386b0ac0b1c1094456c8f43ea6085fc49d2
tree889dc2bf914443827c96e1d7a7f6f4b449e742a2
parentad5d1122b82fbd6a816d1b9d26ee01a6dbc2d757
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