提交 4d13e400 编写于 作者: W Wei Li 提交者: Zheng Zengkai

kabi: Reserve syscall entries for kabi compatibility

hulk inclusion
category: feature
bugzilla: 186175, https://gitee.com/openeuler/kernel/issues/I4S77Z
CVE: NA

-------------------------------------------------

Reserve several syscall entries for kabi compatibility.
For arch arm32,ppc32,riscv64,ppc64,arm64,x86_64 currently.
Signed-off-by: NWei Li <liwei391@huawei.com>
Reviewed-by: NCheng Jian <cj.chengjian@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 3a8d752a
......@@ -454,3 +454,19 @@
438 common pidfd_getfd sys_pidfd_getfd
439 common faccessat2 sys_faccessat2
440 common process_madvise sys_process_madvise
441 common kabi_reserved441 sys_ni_syscall
442 common kabi_reserved442 sys_ni_syscall
443 common kabi_reserved443 sys_ni_syscall
444 common kabi_reserved444 sys_ni_syscall
445 common kabi_reserved445 sys_ni_syscall
446 common kabi_reserved446 sys_ni_syscall
447 common kabi_reserved447 sys_ni_syscall
448 common kabi_reserved448 sys_ni_syscall
449 common kabi_reserved449 sys_ni_syscall
450 common kabi_reserved450 sys_ni_syscall
451 common kabi_reserved451 sys_ni_syscall
452 common kabi_reserved452 sys_ni_syscall
453 common kabi_reserved453 sys_ni_syscall
454 common kabi_reserved454 sys_ni_syscall
455 common kabi_reserved455 sys_ni_syscall
456 common kabi_reserved456 sys_ni_syscall
......@@ -43,7 +43,7 @@
#define __ARM_NR_compat_set_tls (__ARM_NR_COMPAT_BASE + 5)
#define __ARM_NR_COMPAT_END (__ARM_NR_COMPAT_BASE + 0x800)
#define __NR_compat_syscalls 441
#define __NR_compat_syscalls 457
#endif
#define __ARCH_WANT_SYS_CLONE
......
......@@ -890,6 +890,39 @@ __SYSCALL(__NR_faccessat2, sys_faccessat2)
#define __NR_process_madvise 440
__SYSCALL(__NR_process_madvise, sys_process_madvise)
#define __NR_kabi_reserved441 441
__SYSCALL(__NR_kabi_reserved441, sys_ni_syscall)
#define __NR_kabi_reserved442 442
__SYSCALL(__NR_kabi_reserved442, sys_ni_syscall)
#define __NR_kabi_reserved443 443
__SYSCALL(__NR_kabi_reserved443, sys_ni_syscall)
#define __NR_kabi_reserved444 444
__SYSCALL(__NR_kabi_reserved444, sys_ni_syscall)
#define __NR_kabi_reserved445 445
__SYSCALL(__NR_kabi_reserved445, sys_ni_syscall)
#define __NR_kabi_reserved446 446
__SYSCALL(__NR_kabi_reserved446, sys_ni_syscall)
#define __NR_kabi_reserved447 447
__SYSCALL(__NR_kabi_reserved447, sys_ni_syscall)
#define __NR_kabi_reserved448 448
__SYSCALL(__NR_kabi_reserved448, sys_ni_syscall)
#define __NR_kabi_reserved449 449
__SYSCALL(__NR_kabi_reserved449, sys_ni_syscall)
#define __NR_kabi_reserved450 450
__SYSCALL(__NR_kabi_reserved450, sys_ni_syscall)
#define __NR_kabi_reserved451 451
__SYSCALL(__NR_kabi_reserved451, sys_ni_syscall)
#define __NR_kabi_reserved452 452
__SYSCALL(__NR_kabi_reserved452, sys_ni_syscall)
#define __NR_kabi_reserved453 453
__SYSCALL(__NR_kabi_reserved453, sys_ni_syscall)
#define __NR_kabi_reserved454 454
__SYSCALL(__NR_kabi_reserved454, sys_ni_syscall)
#define __NR_kabi_reserved455 455
__SYSCALL(__NR_kabi_reserved455, sys_ni_syscall)
#define __NR_kabi_reserved456 456
__SYSCALL(__NR_kabi_reserved456, sys_ni_syscall)
/*
* Please add new compat syscalls above this comment and update
* __NR_compat_syscalls in asm/unistd.h.
......
......@@ -530,3 +530,19 @@
438 common pidfd_getfd sys_pidfd_getfd
439 common faccessat2 sys_faccessat2
440 common process_madvise sys_process_madvise
441 common kabi_reserved441 sys_ni_syscall
442 common kabi_reserved442 sys_ni_syscall
443 common kabi_reserved443 sys_ni_syscall
444 common kabi_reserved444 sys_ni_syscall
445 common kabi_reserved445 sys_ni_syscall
446 common kabi_reserved446 sys_ni_syscall
447 common kabi_reserved447 sys_ni_syscall
448 common kabi_reserved448 sys_ni_syscall
449 common kabi_reserved449 sys_ni_syscall
450 common kabi_reserved450 sys_ni_syscall
451 common kabi_reserved451 sys_ni_syscall
452 common kabi_reserved452 sys_ni_syscall
453 common kabi_reserved453 sys_ni_syscall
454 common kabi_reserved454 sys_ni_syscall
455 common kabi_reserved455 sys_ni_syscall
456 common kabi_reserved456 sys_ni_syscall
......@@ -445,3 +445,19 @@
438 i386 pidfd_getfd sys_pidfd_getfd
439 i386 faccessat2 sys_faccessat2
440 i386 process_madvise sys_process_madvise
441 i386 kabi_reserved441 sys_ni_syscall
442 i386 kabi_reserved442 sys_ni_syscall
443 i386 kabi_reserved443 sys_ni_syscall
444 i386 kabi_reserved444 sys_ni_syscall
445 i386 kabi_reserved445 sys_ni_syscall
446 i386 kabi_reserved446 sys_ni_syscall
447 i386 kabi_reserved447 sys_ni_syscall
448 i386 kabi_reserved448 sys_ni_syscall
449 i386 kabi_reserved449 sys_ni_syscall
450 i386 kabi_reserved450 sys_ni_syscall
451 i386 kabi_reserved451 sys_ni_syscall
452 i386 kabi_reserved452 sys_ni_syscall
453 i386 kabi_reserved453 sys_ni_syscall
454 i386 kabi_reserved454 sys_ni_syscall
455 i386 kabi_reserved455 sys_ni_syscall
456 i386 kabi_reserved456 sys_ni_syscall
......@@ -362,6 +362,22 @@
438 common pidfd_getfd sys_pidfd_getfd
439 common faccessat2 sys_faccessat2
440 common process_madvise sys_process_madvise
441 common kabi_reserved441 sys_ni_syscall
442 common kabi_reserved442 sys_ni_syscall
443 common kabi_reserved443 sys_ni_syscall
444 common kabi_reserved444 sys_ni_syscall
445 common kabi_reserved445 sys_ni_syscall
446 common kabi_reserved446 sys_ni_syscall
447 common kabi_reserved447 sys_ni_syscall
448 common kabi_reserved448 sys_ni_syscall
449 common kabi_reserved449 sys_ni_syscall
450 common kabi_reserved450 sys_ni_syscall
451 common kabi_reserved451 sys_ni_syscall
452 common kabi_reserved452 sys_ni_syscall
453 common kabi_reserved453 sys_ni_syscall
454 common kabi_reserved454 sys_ni_syscall
455 common kabi_reserved455 sys_ni_syscall
456 common kabi_reserved456 sys_ni_syscall
#
# Due to a historical design error, certain syscalls are numbered differently
......
......@@ -860,8 +860,41 @@ __SYSCALL(__NR_faccessat2, sys_faccessat2)
#define __NR_process_madvise 440
__SYSCALL(__NR_process_madvise, sys_process_madvise)
#define __NR_kabi_reserved441 441
__SYSCALL(__NR_kabi_reserved441, sys_ni_syscall)
#define __NR_kabi_reserved442 442
__SYSCALL(__NR_kabi_reserved442, sys_ni_syscall)
#define __NR_kabi_reserved443 443
__SYSCALL(__NR_kabi_reserved443, sys_ni_syscall)
#define __NR_kabi_reserved444 444
__SYSCALL(__NR_kabi_reserved444, sys_ni_syscall)
#define __NR_kabi_reserved445 445
__SYSCALL(__NR_kabi_reserved445, sys_ni_syscall)
#define __NR_kabi_reserved446 446
__SYSCALL(__NR_kabi_reserved446, sys_ni_syscall)
#define __NR_kabi_reserved447 447
__SYSCALL(__NR_kabi_reserved447, sys_ni_syscall)
#define __NR_kabi_reserved448 448
__SYSCALL(__NR_kabi_reserved448, sys_ni_syscall)
#define __NR_kabi_reserved449 449
__SYSCALL(__NR_kabi_reserved449, sys_ni_syscall)
#define __NR_kabi_reserved450 450
__SYSCALL(__NR_kabi_reserved450, sys_ni_syscall)
#define __NR_kabi_reserved451 451
__SYSCALL(__NR_kabi_reserved451, sys_ni_syscall)
#define __NR_kabi_reserved452 452
__SYSCALL(__NR_kabi_reserved452, sys_ni_syscall)
#define __NR_kabi_reserved453 453
__SYSCALL(__NR_kabi_reserved453, sys_ni_syscall)
#define __NR_kabi_reserved454 454
__SYSCALL(__NR_kabi_reserved454, sys_ni_syscall)
#define __NR_kabi_reserved455 455
__SYSCALL(__NR_kabi_reserved455, sys_ni_syscall)
#define __NR_kabi_reserved456 456
__SYSCALL(__NR_kabi_reserved456, sys_ni_syscall)
#undef __NR_syscalls
#define __NR_syscalls 441
#define __NR_syscalls 457
/*
* 32 bit systems traditionally used different
......
......@@ -860,8 +860,41 @@ __SYSCALL(__NR_faccessat2, sys_faccessat2)
#define __NR_process_madvise 440
__SYSCALL(__NR_process_madvise, sys_process_madvise)
#define __NR_kabi_reserved441 441
__SYSCALL(__NR_kabi_reserved441, sys_ni_syscall)
#define __NR_kabi_reserved442 442
__SYSCALL(__NR_kabi_reserved442, sys_ni_syscall)
#define __NR_kabi_reserved443 443
__SYSCALL(__NR_kabi_reserved443, sys_ni_syscall)
#define __NR_kabi_reserved444 444
__SYSCALL(__NR_kabi_reserved444, sys_ni_syscall)
#define __NR_kabi_reserved445 445
__SYSCALL(__NR_kabi_reserved445, sys_ni_syscall)
#define __NR_kabi_reserved446 446
__SYSCALL(__NR_kabi_reserved446, sys_ni_syscall)
#define __NR_kabi_reserved447 447
__SYSCALL(__NR_kabi_reserved447, sys_ni_syscall)
#define __NR_kabi_reserved448 448
__SYSCALL(__NR_kabi_reserved448, sys_ni_syscall)
#define __NR_kabi_reserved449 449
__SYSCALL(__NR_kabi_reserved449, sys_ni_syscall)
#define __NR_kabi_reserved450 450
__SYSCALL(__NR_kabi_reserved450, sys_ni_syscall)
#define __NR_kabi_reserved451 451
__SYSCALL(__NR_kabi_reserved451, sys_ni_syscall)
#define __NR_kabi_reserved452 452
__SYSCALL(__NR_kabi_reserved452, sys_ni_syscall)
#define __NR_kabi_reserved453 453
__SYSCALL(__NR_kabi_reserved453, sys_ni_syscall)
#define __NR_kabi_reserved454 454
__SYSCALL(__NR_kabi_reserved454, sys_ni_syscall)
#define __NR_kabi_reserved455 455
__SYSCALL(__NR_kabi_reserved455, sys_ni_syscall)
#define __NR_kabi_reserved456 456
__SYSCALL(__NR_kabi_reserved456, sys_ni_syscall)
#undef __NR_syscalls
#define __NR_syscalls 441
#define __NR_syscalls 457
/*
* 32 bit systems traditionally used different
......
......@@ -530,3 +530,19 @@
438 common pidfd_getfd sys_pidfd_getfd
439 common faccessat2 sys_faccessat2
440 common process_madvise sys_process_madvise
441 common kabi_reserved441 sys_ni_syscall
442 common kabi_reserved442 sys_ni_syscall
443 common kabi_reserved443 sys_ni_syscall
444 common kabi_reserved444 sys_ni_syscall
445 common kabi_reserved445 sys_ni_syscall
446 common kabi_reserved446 sys_ni_syscall
447 common kabi_reserved447 sys_ni_syscall
448 common kabi_reserved448 sys_ni_syscall
449 common kabi_reserved449 sys_ni_syscall
450 common kabi_reserved450 sys_ni_syscall
451 common kabi_reserved451 sys_ni_syscall
452 common kabi_reserved452 sys_ni_syscall
453 common kabi_reserved453 sys_ni_syscall
454 common kabi_reserved454 sys_ni_syscall
455 common kabi_reserved455 sys_ni_syscall
456 common kabi_reserved456 sys_ni_syscall
......@@ -362,6 +362,22 @@
438 common pidfd_getfd sys_pidfd_getfd
439 common faccessat2 sys_faccessat2
440 common process_madvise sys_process_madvise
441 common kabi_reserved441 sys_ni_syscall
442 common kabi_reserved442 sys_ni_syscall
443 common kabi_reserved443 sys_ni_syscall
444 common kabi_reserved444 sys_ni_syscall
445 common kabi_reserved445 sys_ni_syscall
446 common kabi_reserved446 sys_ni_syscall
447 common kabi_reserved447 sys_ni_syscall
448 common kabi_reserved448 sys_ni_syscall
449 common kabi_reserved449 sys_ni_syscall
450 common kabi_reserved450 sys_ni_syscall
451 common kabi_reserved451 sys_ni_syscall
452 common kabi_reserved452 sys_ni_syscall
453 common kabi_reserved453 sys_ni_syscall
454 common kabi_reserved454 sys_ni_syscall
455 common kabi_reserved455 sys_ni_syscall
456 common kabi_reserved456 sys_ni_syscall
#
# Due to a historical design error, certain syscalls are numbered differently
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册