lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <BLU436-SMTP27AA578921979B851338FDB9B70@phx.gbl>
Date:	Mon, 1 Jun 2015 05:57:10 +0800
From:	Chen Gang <xili_gchen_5257@...mail.com>
To:	dhowells@...hat.com, yasutake.koichi@...panasonic.com
CC:	Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
	linux-am33-list@...hat.com,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: [PATCH] mn10300: Wire up all missing implemented syscalls

And still left the missing unimplemented syscalls as warnings (only bpf
and seccomp).

The related warnings for missing implemented syscalls:

    CALL    scripts/checksyscalls.sh
  <stdin>:1190:2: warning: #warning syscall fanotify_init not implemented [-Wcpp]
  <stdin>:1193:2: warning: #warning syscall fanotify_mark not implemented [-Wcpp]
  <stdin>:1196:2: warning: #warning syscall prlimit64 not implemented [-Wcpp]
  <stdin>:1199:2: warning: #warning syscall name_to_handle_at not implemented [-Wcpp]
  <stdin>:1202:2: warning: #warning syscall open_by_handle_at not implemented [-Wcpp]
  <stdin>:1205:2: warning: #warning syscall clock_adjtime not implemented [-Wcpp]
  <stdin>:1208:2: warning: #warning syscall syncfs not implemented [-Wcpp]
  <stdin>:1211:2: warning: #warning syscall sendmmsg not implemented [-Wcpp]
  <stdin>:1217:2: warning: #warning syscall process_vm_readv not implemented [-Wcpp]
  <stdin>:1220:2: warning: #warning syscall process_vm_writev not implemented [-Wcpp]
  <stdin>:1223:2: warning: #warning syscall kcmp not implemented [-Wcpp]
  <stdin>:1226:2: warning: #warning syscall finit_module not implemented [-Wcpp]
  <stdin>:1229:2: warning: #warning syscall sched_setattr not implemented [-Wcpp]
  <stdin>:1232:2: warning: #warning syscall sched_getattr not implemented [-Wcpp]
  <stdin>:1235:2: warning: #warning syscall renameat2 not implemented [-Wcpp]
  <stdin>:1241:2: warning: #warning syscall getrandom not implemented [-Wcpp]
  <stdin>:1244:2: warning: #warning syscall memfd_create not implemented [-Wcpp]
  <stdin>:1250:2: warning: #warning syscall execveat not implemented [-Wcpp]
  <stdin>:1253:2: warning: #warning syscall userfaultfd not implemented [-Wcpp]

Signed-off-by: Chen Gang <gang.chen.5i5j@...il.com>
---
 arch/mn10300/include/asm/unistd.h      |  3 +--
 arch/mn10300/include/uapi/asm/unistd.h | 19 +++++++++++++++++++
 arch/mn10300/kernel/entry.S            | 20 +++++++++++++++++++-
 3 files changed, 39 insertions(+), 3 deletions(-)

diff --git a/arch/mn10300/include/asm/unistd.h b/arch/mn10300/include/asm/unistd.h
index 0522468..0c7b841 100644
--- a/arch/mn10300/include/asm/unistd.h
+++ b/arch/mn10300/include/asm/unistd.h
@@ -13,8 +13,7 @@
 
 #include <uapi/asm/unistd.h>
 
-
-#define NR_syscalls 340
+#define NR_syscalls 359
 
 /*
  * specify the deprecated syscalls we want to support on this arch
diff --git a/arch/mn10300/include/uapi/asm/unistd.h b/arch/mn10300/include/uapi/asm/unistd.h
index e28ac3f..c64ed6b 100644
--- a/arch/mn10300/include/uapi/asm/unistd.h
+++ b/arch/mn10300/include/uapi/asm/unistd.h
@@ -350,5 +350,24 @@
 #define __NR_perf_event_open	337
 #define __NR_recvmmsg		338
 #define __NR_setns		339
+#define __NR_fanotify_init	340
+#define __NR_fanotify_mark	341
+#define __NR_prlimit64		342
+#define __NR_name_to_handle_at	343
+#define __NR_open_by_handle_at	344
+#define __NR_clock_adjtime	345
+#define __NR_syncfs		346
+#define __NR_sendmmsg		347
+#define __NR_process_vm_readv	348
+#define __NR_process_vm_writev	349
+#define __NR_kcmp		350
+#define __NR_finit_module	351
+#define __NR_sched_setattr	352
+#define __NR_sched_getattr	353
+#define __NR_renameat2		354
+#define __NR_getrandom		355
+#define __NR_memfd_create	356
+#define __NR_execveat		357
+#define __NR_userfaultfd	358
 
 #endif /* _UAPI_ASM_UNISTD_H */
diff --git a/arch/mn10300/kernel/entry.S b/arch/mn10300/kernel/entry.S
index 177d61d..f696c88 100644
--- a/arch/mn10300/kernel/entry.S
+++ b/arch/mn10300/kernel/entry.S
@@ -767,6 +767,24 @@ ENTRY(sys_call_table)
 	.long sys_perf_event_open
 	.long sys_recvmmsg
 	.long sys_setns
-
+	.long sys_fanotify_init		/* 340 */
+	.long sys_fanotify_mark
+	.long sys_prlimit64
+	.long sys_name_to_handle_at
+	.long sys_open_by_handle_at
+	.long sys_clock_adjtime		/* 345 */
+	.long sys_syncfs
+	.long sys_sendmmsg
+	.long sys_process_vm_readv
+	.long sys_process_vm_writev
+	.long sys_kcmp			/* 350 */
+	.long sys_finit_module
+	.long sys_sched_setattr
+	.long sys_sched_getattr
+	.long sys_renameat2
+	.long sys_getrandom		/* 355 */
+	.long sys_memfd_create
+	.long sys_execveat
+	.long sys_userfaultfd
 
 nr_syscalls=(.-sys_call_table)/4
-- 
1.9.3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ