From 7dd8624e318670370f8c07929d72e05d694b9b59 Mon Sep 17 00:00:00 2001 From: David Smith Date: Tue, 29 Oct 2013 16:35:40 -0500 Subject: [PATCH] Fix PR16096 by fixing nd_syscall.execve on i686. * tapset/linux/nd_syscalls.stp (nd_syscall.execve): Add 'asmlinkage()' call to get first argument right. --- tapset/linux/nd_syscalls.stp | 1 + 1 file changed, 1 insertion(+) diff --git a/tapset/linux/nd_syscalls.stp b/tapset/linux/nd_syscalls.stp index 8917a4b6a..5cb7ac26f 100644 --- a/tapset/linux/nd_syscalls.stp +++ b/tapset/linux/nd_syscalls.stp @@ -973,6 +973,7 @@ probe nd_syscall.execve = kprobe.function("sys_execve") // filename = user_string($filename) // args = __get_argv($argv, 0) // argstr = sprintf("%s %s", filename, __get_argv($argv, 1)) + asmlinkage() filename = user_string(pointer_arg(1)) args = __get_argv(pointer_arg(2), 0) argstr = sprintf("%s %s", filename, __get_argv(pointer_arg(2), 1)) -- 2.43.5