Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 21 files as a function:
- arch/alpha/include/asm/syscall.h, line 31 (as a function)
- arch/arc/include/asm/syscall.h, line 18 (as a function)
- arch/arm/include/asm/syscall.h, line 22 (as a function)
- arch/arm64/include/asm/syscall.h, line 20 (as a function)
- arch/csky/include/asm/syscall.h, line 14 (as a function)
- arch/hexagon/include/asm/syscall.h, line 23 (as a function)
- arch/loongarch/include/asm/syscall.h, line 23 (as a function)
- arch/m68k/include/asm/syscall.h, line 11 (as a function)
- arch/microblaze/include/asm/syscall.h, line 11 (as a function)
- arch/mips/include/asm/syscall.h, line 38 (as a function)
- arch/nios2/include/asm/syscall.h, line 13 (as a function)
- arch/openrisc/include/asm/syscall.h, line 23 (as a function)
- arch/parisc/include/asm/syscall.h, line 14 (as a function)
- arch/powerpc/include/asm/syscall.h, line 28 (as a function)
- arch/riscv/include/asm/syscall.h, line 27 (as a function)
- arch/s390/include/asm/syscall.h, line 19 (as a function)
- arch/sh/include/asm/syscall_32.h, line 12 (as a function)
- arch/sparc/include/asm/syscall.h, line 20 (as a function)
- arch/um/include/asm/syscall-generic.h, line 18 (as a function)
- arch/x86/include/asm/syscall.h, line 28 (as a function)
- arch/xtensa/include/asm/syscall.h, line 25 (as a function)
Referenced in 15 files:
- arch/alpha/kernel/ptrace.c
- arch/arc/kernel/ptrace.c, line 350
- arch/arm/kernel/ptrace.c
- arch/csky/kernel/ptrace.c, line 330
- arch/x86/kernel/ptrace.c, line 933
- arch/x86/kernel/signal.c
- arch/xtensa/kernel/ptrace.c, line 562
- include/linux/entry-common.h
- include/trace/events/syscalls.h, line 56
- kernel/entry/syscall-common.c
- kernel/entry/syscall_user_dispatch.c, line 31
- kernel/ptrace.c, line 950
- kernel/seccomp.c
- kernel/trace/trace_syscalls.c
- lib/syscall.c, line 29
Smatch caller information:
lib/syscall.c collect_syscall() -> syscall_get_nr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | task | 4096-ptr_max |
| PARAM_VALUE | 1 | regs | 4096-ptr_max |
| CAPPED_DATA | 0 | task | 1 |
| DATA_SOURCE | 0 | task | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &m->lock | ||
| LOCK2 | 0 | &task->signal->exec_update_lock | |
| TYPE_LOCK | (struct seq_file)->lock | ||
| TYPE_LOCK | (struct signal_struct)->exec_update_lock |
kernel/ptrace.c ptrace_get_syscall_info_entry() -> syscall_get_nr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | task | 4096-ptr_max |
| PARAM_VALUE | 1 | regs | 4096-ptr_max |
| DATA_SOURCE | 0 | task | $0 |
| DATA_SOURCE | 1 | regs | $1 |
kernel/trace/trace_syscalls.c trace_get_syscall_nr() -> syscall_get_nr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | task | $0 |
| DATA_SOURCE | 1 | regs | $1 |
| PREEMPT_ADD |
arch/x86/kernel/ptrace.c putreg32() -> syscall_get_nr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | task | 4096-ptr_max |
| PARAM_VALUE | 1 | regs | 4096-ptr_max |
| PARAM_VALUE | 1 | regs->orig_ax | 0-u32max |
| DATA_SOURCE | 0 | task | $0 |
kernel/entry/syscall-common.c do_perf_trace_sys_exit() -> syscall_get_nr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 1 | regs | $1 |
| PREEMPT_ADD |
kernel/entry/syscall-common.c do_trace_event_raw_event_sys_exit() -> syscall_get_nr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 1 | regs | $1 |
| PREEMPT_ADD |
kernel/entry/syscall-common.c syscall_enter_audit() -> syscall_get_nr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | regs | 4096-ptr_max |
| DATA_SOURCE | 1 | regs | $0 |
kernel/entry/syscall-common.c trace_syscall_enter() -> syscall_get_nr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | regs | 4096-ptr_max |
| DATA_SOURCE | 1 | regs | $0 |
arch/x86/kernel/process.c syscall_exit_to_user_mode_work() -> syscall_get_nr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 1 | regs | $0 |
kernel/entry/syscall_user_dispatch.c trigger_sigsys() -> syscall_get_nr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | regs | 4096-ptr_max |
| DATA_SOURCE | 1 | regs | $0 |
arch/x86/entry/syscall_32.c syscall_enter_from_user_mode_work() -> syscall_get_nr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | regs | 4096-ptr_max |
| CAPPED_DATA | 1 | regs | 1 |
| DATA_SOURCE | 1 | regs | $0 |
arch/x86/entry/syscall_32.c syscall_exit_to_user_mode_work() -> syscall_get_nr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | regs | 4096-ptr_max |
| CAPPED_DATA | 1 | regs | 1 |
| DATA_SOURCE | 1 | regs | $0 |
arch/x86/entry/syscall_64.c syscall_enter_from_user_mode_work() -> syscall_get_nr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | regs | 4096-ptr_max |
| CAPPED_DATA | 1 | regs | 1 |
| DATA_SOURCE | 1 | regs | $0 |
arch/x86/entry/syscall_64.c syscall_exit_to_user_mode_work() -> syscall_get_nr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | regs | 4096-ptr_max |
| CAPPED_DATA | 1 | regs | 1 |
| DATA_SOURCE | 1 | regs | $0 |
arch/x86/kernel/signal.c arch_do_signal_or_restart() -> syscall_get_nr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | regs | 4096-ptr_max |
| DATA_SOURCE | 1 | regs | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | regs->ip | 0-u64max |
| NO_OVERFLOW_SIMPLE | 1 | regs->dx |
arch/x86/kernel/signal.c handle_signal() -> syscall_get_nr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | regs | 4096-ptr_max |
| DATA_SOURCE | 1 | regs | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | regs->ip | 0-u64max |
| NO_OVERFLOW_SIMPLE | 1 | regs->dx |
kernel/seccomp.c __seccomp_filter() -> syscall_get_nr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING |
kernel/seccomp.c __seccomp_permit_syscall() -> syscall_get_nr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING |
kernel/seccomp.c populate_seccomp_data() -> syscall_get_nr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | task | 4096-ptr_max |
| DATA_SOURCE | 0 | task | r get_current |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING |