summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerry Jelinek <jerry.jelinek@joyent.com>2014-10-17 22:04:02 +0000
committerJerry Jelinek <jerry.jelinek@joyent.com>2014-10-17 22:04:02 +0000
commit0f68aee9e6c39d16c3c3fd0683af2a37da1c77a0 (patch)
tree3449f3d60fe4e0b87d0bad8e9be67c534b340eb7
parentd541160f82299ea525edd5dd4c62ddd225c9c7fe (diff)
downloadillumos-joyent-0f68aee9e6c39d16c3c3fd0683af2a37da1c77a0.tar.gz
OS-3436 lxbrand 64bit native libc can use incorrect thread pointer via %fs:0
-rw-r--r--usr/src/uts/common/brand/lx/os/lx_misc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr/src/uts/common/brand/lx/os/lx_misc.c b/usr/src/uts/common/brand/lx/os/lx_misc.c
index 66421722d6..192f31e7bb 100644
--- a/usr/src/uts/common/brand/lx/os/lx_misc.c
+++ b/usr/src/uts/common/brand/lx/os/lx_misc.c
@@ -110,6 +110,10 @@ lx_exec()
lx_pid_reassign(curthread);
}
+ /* clear the fsbase values until the app. can reinitialize them */
+ lwpd->br_lx_fsbase = NULL;
+ lwpd->br_ntv_fsbase = NULL;
+
installctx(lwptot(lwp), lwp, lx_save, lx_restore, NULL, NULL, lx_save,
NULL);