From f90fafea3c5f1acd7b9bc8e720b417e2dba1d92d Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Tue, 16 Dec 2014 00:20:36 +0100 Subject: add new syscall numbers for bpf and kexec_file_load these syscalls are new in linux v3.18, bpf is present on all supported archs except sh, kexec_file_load is only allocted for x86_64 and x32 yet. bpf was added in linux commit 99c55f7d47c0dc6fc64729f37bf435abf43f4c60 kexec_file_load syscall number was allocated in commit f0895685c7fd8c938c91a9d8a6f7c11f22df58d2 --- arch/arm/bits/syscall.h | 2 ++ arch/i386/bits/syscall.h | 2 ++ arch/microblaze/bits/syscall.h | 2 ++ arch/mips/bits/syscall.h | 2 ++ arch/or1k/bits/syscall.h | 2 ++ arch/powerpc/bits/syscall.h | 2 ++ arch/x32/bits/syscall.h | 4 ++++ arch/x86_64/bits/syscall.h | 4 ++++ 8 files changed, 20 insertions(+) (limited to 'arch') diff --git a/arch/arm/bits/syscall.h b/arch/arm/bits/syscall.h index df23b83e..95b95769 100644 --- a/arch/arm/bits/syscall.h +++ b/arch/arm/bits/syscall.h @@ -339,6 +339,7 @@ #define __NR_seccomp 383 #define __NR_getrandom 384 #define __NR_memfd_create 385 +#define __NR_bpf 386 #define __ARM_NR_breakpoint 0x0f0001 #define __ARM_NR_cacheflush 0x0f0002 @@ -689,3 +690,4 @@ #define SYS_seccomp 383 #define SYS_getrandom 384 #define SYS_memfd_create 385 +#define SYS_bpf 386 diff --git a/arch/i386/bits/syscall.h b/arch/i386/bits/syscall.h index 7584f30d..2378053b 100644 --- a/arch/i386/bits/syscall.h +++ b/arch/i386/bits/syscall.h @@ -355,6 +355,7 @@ #define __NR_seccomp 354 #define __NR_getrandom 355 #define __NR_memfd_create 356 +#define __NR_bpf 357 /* Repeated with SYS_ prefix */ @@ -716,3 +717,4 @@ #define SYS_seccomp 354 #define SYS_getrandom 355 #define SYS_memfd_create 356 +#define SYS_bpf 357 diff --git a/arch/microblaze/bits/syscall.h b/arch/microblaze/bits/syscall.h index f0ed204b..ea8e864f 100644 --- a/arch/microblaze/bits/syscall.h +++ b/arch/microblaze/bits/syscall.h @@ -381,6 +381,7 @@ #define __NR_seccomp 384 #define __NR_getrandom 385 #define __NR_memfd_create 386 +#define __NR_bpf 387 /* Repeated with SYS_ prefix */ @@ -768,3 +769,4 @@ #define SYS_seccomp 384 #define SYS_getrandom 385 #define SYS_memfd_create 386 +#define SYS_bpf 387 diff --git a/arch/mips/bits/syscall.h b/arch/mips/bits/syscall.h index 03a4926c..7cb7e353 100644 --- a/arch/mips/bits/syscall.h +++ b/arch/mips/bits/syscall.h @@ -352,6 +352,7 @@ #define __NR_seccomp 4352 #define __NR_getrandom 4353 #define __NR_memfd_create 4354 +#define __NR_bpf 4355 /* Repeated with SYS_ prefix */ @@ -709,3 +710,4 @@ #define SYS_seccomp 4352 #define SYS_getrandom 4353 #define SYS_memfd_create 4354 +#define SYS_bpf 4355 diff --git a/arch/or1k/bits/syscall.h b/arch/or1k/bits/syscall.h index 4e3b5c98..b854bcaa 100644 --- a/arch/or1k/bits/syscall.h +++ b/arch/or1k/bits/syscall.h @@ -263,6 +263,7 @@ #define __NR_seccomp 277 #define __NR_getrandom 278 #define __NR_memfd_create 279 +#define __NR_bpf 280 #define SYS_io_setup __NR_io_setup #define SYS_io_destroy __NR_io_destroy @@ -529,3 +530,4 @@ #define SYS_seccomp __NR_seccomp #define SYS_getrandom __NR_getrandom #define SYS_memfd_create __NR_memfd_create +#define SYS_bpf __NR_bpf diff --git a/arch/powerpc/bits/syscall.h b/arch/powerpc/bits/syscall.h index 6d96acde..0512eb3b 100644 --- a/arch/powerpc/bits/syscall.h +++ b/arch/powerpc/bits/syscall.h @@ -374,6 +374,7 @@ #define __NR_seccomp 358 #define __NR_getrandom 359 #define __NR_memfd_create 360 +#define __NR_bpf 361 /* * repeated with SYS prefix @@ -754,3 +755,4 @@ #define SYS_seccomp 358 #define SYS_getrandom 359 #define SYS_memfd_create 360 +#define SYS_bpf 361 diff --git a/arch/x32/bits/syscall.h b/arch/x32/bits/syscall.h index fc4146e9..67330c27 100644 --- a/arch/x32/bits/syscall.h +++ b/arch/x32/bits/syscall.h @@ -277,6 +277,8 @@ #define __NR_seccomp (__X32_SYSCALL_BIT + 317) #define __NR_getrandom (__X32_SYSCALL_BIT + 318) #define __NR_memfd_create (__X32_SYSCALL_BIT + 319) +#define __NR_kexec_file_load (__X32_SYSCALL_BIT + 320) +#define __NR_bpf (__X32_SYSCALL_BIT + 321) #define __NR_rt_sigaction (__X32_SYSCALL_BIT + 512) #define __NR_rt_sigreturn (__X32_SYSCALL_BIT + 513) @@ -604,6 +606,8 @@ #define SYS_seccomp __NR_seccomp #define SYS_getrandom __NR_getrandom #define SYS_memfd_create __NR_memfd_create +#define SYS_kexec_file_load __NR_kexec_file_load +#define SYS_bpf __NR_bpf #define SYS_rt_sigaction __NR_rt_sigaction #define SYS_rt_sigreturn __NR_rt_sigreturn diff --git a/arch/x86_64/bits/syscall.h b/arch/x86_64/bits/syscall.h index 245d6471..0f9168c3 100644 --- a/arch/x86_64/bits/syscall.h +++ b/arch/x86_64/bits/syscall.h @@ -318,6 +318,8 @@ #define __NR_seccomp 317 #define __NR_getrandom 318 #define __NR_memfd_create 319 +#define __NR_kexec_file_load 320 +#define __NR_bpf 321 #undef __NR_fstatat @@ -654,6 +656,8 @@ #define SYS_seccomp 317 #define SYS_getrandom 318 #define SYS_memfd_create 319 +#define SYS_kexec_file_load 320 +#define SYS_bpf 321 #undef SYS_fstatat #undef SYS_pread -- cgit v1.2.1