summaryrefslogtreecommitdiffstats
path: root/regress/sys/kern/stackpivot/pagefault/stackpivot.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2020-07-26 03:00:42 +0000
committerderaadt <deraadt@openbsd.org>2020-07-26 03:00:42 +0000
commit802163a16b27f525fc2afe5dae956e57fc08dbe6 (patch)
tree078d86d1daea7a7684ef19bb2c026fa94d5b3fae /regress/sys/kern/stackpivot/pagefault/stackpivot.c
parentremove unsused enum key_type, copied initialy from relays. (diff)
downloadwireguard-openbsd-802163a16b27f525fc2afe5dae956e57fc08dbe6.tar.xz
wireguard-openbsd-802163a16b27f525fc2afe5dae956e57fc08dbe6.zip
print the address of the "non-MAP_STACK stack", so it can be compared
against failure reported in dmesg (hmm, is it time to delete those fault messages?)
Diffstat (limited to 'regress/sys/kern/stackpivot/pagefault/stackpivot.c')
-rw-r--r--regress/sys/kern/stackpivot/pagefault/stackpivot.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/regress/sys/kern/stackpivot/pagefault/stackpivot.c b/regress/sys/kern/stackpivot/pagefault/stackpivot.c
index bf730df06f8..aeac48ebbd4 100644
--- a/regress/sys/kern/stackpivot/pagefault/stackpivot.c
+++ b/regress/sys/kern/stackpivot/pagefault/stackpivot.c
@@ -54,6 +54,7 @@ int main() {
/* set up a basic alt stack on the heap that does some work */
size_t *newstack = calloc(10, sizeof(size_t));
+ printf("non-MAP_STACK stack at %p\n", newstack);
newstack[0] = (size_t)dowork;
pivot(newstack);
return 0;