[PATCH] arm64: ni_syscall should be similar to other archs

per.hallsmark at windriver.com per.hallsmark at windriver.com
Wed Feb 24 06:54:59 PST 2016


From: Per Hallsmark <per.hallsmark at windriver.com>

Today arm64 have it's own variant when a userspace app is doing a
non-implemented syscall in that it dumps on console process name,
registers and such. This makes a different behaviour on arm64 than
on all other archs.

This patch propose to get inline with other archs.

If we want to have a note on console, syslog or so when doing a
nonimplemented syscall, it would be better to add a variable
show_nonimplemented_syscalls and sense on it in the generic
kernel/sys_ni.c::sys_ni_syscall() which could dump info (and then
it would be generic for all archs). But that is another discussion
alltogether, lets first synchronize the archs to behave similar.

Signed-off-by: Per Hallsmark <per.hallsmark at windriver.com>
---
 arch/arm64/kernel/traps.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/arch/arm64/kernel/traps.c b/arch/arm64/kernel/traps.c
index cbedd72..980ff63 100644
--- a/arch/arm64/kernel/traps.c
+++ b/arch/arm64/kernel/traps.c
@@ -403,14 +403,6 @@ asmlinkage long do_ni_syscall(struct pt_regs *regs)
 	}
 #endif
 
-	if (show_unhandled_signals_ratelimited()) {
-		pr_info("%s[%d]: syscall %d\n", current->comm,
-			task_pid_nr(current), (int)regs->syscallno);
-		dump_instr("", regs);
-		if (user_mode(regs))
-			__show_regs(regs);
-	}
-
 	return sys_ni_syscall();
 }
 
-- 
2.5.0




More information about the linux-arm-kernel mailing list