diff options
author | Randy Dunlap <rdunlap@infradead.org> | 2022-08-08 00:09:34 +0200 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2022-08-21 00:17:45 +0200 |
commit | a8faed3a02eeb75857a3b5d660fa80fe79db77a3 (patch) | |
tree | ccb097ee92df042c981fa2dce7384983f1f166f3 /mm | |
parent | mm/gup: fix FOLL_FORCE COW security issue and remove FOLL_COW (diff) | |
download | linux-a8faed3a02eeb75857a3b5d660fa80fe79db77a3.tar.xz linux-a8faed3a02eeb75857a3b5d660fa80fe79db77a3.zip |
kernel/sys_ni: add compat entry for fadvise64_64
When CONFIG_ADVISE_SYSCALLS is not set/enabled and CONFIG_COMPAT is
set/enabled, the riscv compat_syscall_table references
'compat_sys_fadvise64_64', which is not defined:
riscv64-linux-ld: arch/riscv/kernel/compat_syscall_table.o:(.rodata+0x6f8):
undefined reference to `compat_sys_fadvise64_64'
Add 'fadvise64_64' to kernel/sys_ni.c as a conditional COMPAT function so
that when CONFIG_ADVISE_SYSCALLS is not set, there is a fallback function
available.
Link: https://lkml.kernel.org/r/20220807220934.5689-1-rdunlap@infradead.org
Fixes: d3ac21cacc24 ("mm: Support compiling out madvise and fadvise")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Suggested-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Cc: Josh Triplett <josh@joshtriplett.org>
Cc: Paul Walmsley <paul.walmsley@sifive.com>
Cc: Palmer Dabbelt <palmer@dabbelt.com>
Cc: Albert Ou <aou@eecs.berkeley.edu>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions