]> granicus.if.org Git - strace/commitdiff
clone: use kernel_ulong_t as type of flags parameter of unshare call
authorEugene Syromyatnikov <evgsyr@gmail.com>
Wed, 19 Oct 2016 18:12:51 +0000 (21:12 +0300)
committerEugene Syromyatnikov <evgsyr@gmail.com>
Fri, 28 Oct 2016 23:54:01 +0000 (02:54 +0300)
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

diff --git a/clone.c b/clone.c
index c2832c1944f487edff4510a55c4cea4114a5728c..0f2d32c2f6938c5accc5438fcd6f82da40b49930 100644 (file)
--- 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;
 }