]> git.baikalelectronics.ru Git - kernel.git/commit
riscv: Constify sys_call_table
authorJisheng Zhang <jszhang@kernel.org>
Mon, 29 Mar 2021 18:23:24 +0000 (02:23 +0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Mon, 26 Apr 2021 15:25:09 +0000 (08:25 -0700)
commita86fca65009de7a8512c8c734662c71a72055d3f
treed5a7e610acdcd462632a79dd58e498f149433f73
parent60f83df1da5cbb6f55309c9cdf56eab17d4de927
riscv: Constify sys_call_table

Constify the sys_call_table so that it will be placed in the .rodata
section. This will cause attempts to modify the table to fail when
strict page permissions are in place.

Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/include/asm/syscall.h
arch/riscv/kernel/syscall_table.c