Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Fix the ktrace calls, the data is in user space.



details:   https://anonhg.NetBSD.org/src/rev/c3cfba797fa2
branches:  trunk
changeset: 1009310:c3cfba797fa2
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Apr 20 00:34:58 2020 +0000

description:
Fix the ktrace calls, the data is in user space.

diffstat:

 sys/kern/vfs_xattr.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r d8c4c33c7b6e -r c3cfba797fa2 sys/kern/vfs_xattr.c
--- a/sys/kern/vfs_xattr.c      Sun Apr 19 23:05:04 2020 +0000
+++ b/sys/kern/vfs_xattr.c      Mon Apr 20 00:34:58 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_xattr.c,v 1.33 2014/09/05 09:20:59 matt Exp $      */
+/*     $NetBSD: vfs_xattr.c,v 1.34 2020/04/20 00:34:58 christos Exp $  */
 
 /*-
  * Copyright (c) 2005, 2008 The NetBSD Foundation, Inc.
@@ -68,7 +68,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_xattr.c,v 1.33 2014/09/05 09:20:59 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_xattr.c,v 1.34 2020/04/20 00:34:58 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -251,7 +251,7 @@
        cnt = nbytes;
 
        ktrkuser("xattr-name", (void *)__UNCONST(attrname), strlen(attrname));
-       ktrkuser("xattr-val", __UNCONST(data), nbytes);
+       ktruser("xattr-val", __UNCONST(data), nbytes, 0);
 
        error = VOP_SETEXTATTR(vp, attrnamespace, attrname, &auio, l->l_cred);
        cnt -= auio.uio_resid;
@@ -314,7 +314,7 @@
                cnt -= auio.uio_resid;
                retval[0] = cnt;
 
-               ktrkuser("xattr-val", data, cnt);
+               ktruser("xattr-val", data, cnt, 0);
        } else
                retval[0] = size;
 
@@ -392,7 +392,7 @@
                cnt -= auio.uio_resid;
                retval[0] = cnt;
 
-               ktrkuser("xattr-list", data, cnt);
+               ktruser("xattr-list", data, cnt, 0);
        } else
                retval[0] = size;
 



Home | Main Index | Thread Index | Old Index