PERFORCE change 219774 for review
Robert Watson
rwatson at FreeBSD.org
Tue Nov 13 22:34:34 UTC 2012
http://p4web.freebsd.org/@@219774?ac=10
Change 219774 by rwatson at rwatson_zenith_cl_cam_ac_uk on 2012/11/13 22:34:24
In a cheritest sandbox, invoke getpid() to make sure that the
kernel's syscall blocking counter is incremented properly.
Affected files ...
.. //depot/projects/ctsrd/cheribsd/src/libexec/cheritest-helper/cheritest-helper.c#5 edit
Differences ...
==== //depot/projects/ctsrd/cheribsd/src/libexec/cheritest-helper/cheritest-helper.c#5 (text+ko) ====
@@ -58,5 +58,12 @@
}
MD5End(&md5context, buf);
memcpy_tocap(2, buf, 0, sizeof(buf));
+
+ /*
+ * Invoke getpid() to trigger kernel protection features. Should
+ * mostly be a nop.
+ */
+ __asm__ __volatile__ ("syscall 20");
+
return (123456);
}
More information about the p4-projects
mailing list