summaryrefslogtreecommitdiffstats
path: root/arch/nios2/kernel/sys_nios2.c
Commit message (Collapse)AuthorAgeFilesLines
* Take mmap lock in cacheflush syscallJann Horn2021-02-191-2/+9
| | | | | | | | | | We need to take the mmap lock around find_vma() and subsequent use of the VMA. Otherwise, we can race with concurrent operations like munmap(), which can lead to use-after-free accesses to freed VMAs. Fixes: 1000197d8013 ("nios2: System calls handling") Signed-off-by: Jann Horn <jannh@google.com> Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
* nios2: System calls handlingLey Foon Tan2014-12-081-0/+53
This patch adds support for system calls from userspaces. It uses the asm-generic/unistd.h definitions with architecture spcific syscall. The sys_call_table is just an array defined in a C file and it contains pointers to the syscall functions. Signed-off-by: Ley Foon Tan <lftan@altera.com>