]> 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)
commit01c0b3794237acb83835fe14a503f1b49a2163f8
treed5a7e610acdcd462632a79dd58e498f149433f73
parent27d8cf41ce20afb621399b1a8a4a93fe92d6da08
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