[PATCH 15/26] clone: Use kernel_ulong_t as type of flags parameter of unshare call

Eugene Syromyatnikov evgsyr at gmail.com
Mon Oct 24 03:01:52 UTC 2016


Kernel declares flags parameter as long and looks like x32 and n32
implement no compat for this call.

* clone.c (SYS_FUNC(unshare)): Use getarg_ull and printflags64 for
obtaining and parsing flags parameter.
---
 clone.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/clone.c b/clone.c
index c2832c1..0f2d32c 100644
--- a/clone.c
+++ b/clone.c
@@ -153,7 +153,7 @@ SYS_FUNC(setns)
 
 SYS_FUNC(unshare)
 {
-	printflags_long(unshare_flags, tcp->u_arg[0], "CLONE_???");
+	printflags64(unshare_flags, getarg_ull(tcp, 0), "CLONE_???");
 	return RVAL_DECODED;
 }
 
-- 
1.7.10.4





More information about the Strace-devel mailing list