summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan Cantrill <bryan@joyent.com>2013-07-16 06:32:44 +0000
committerBryan Cantrill <bryan@joyent.com>2013-07-16 06:32:44 +0000
commitf292b0ed623323e3120528ca36c58631e41cf2a0 (patch)
treeaf6063a8ab83033e7322d7401e88bc6b5f42b5a4
parenta0bda88c32e1ace5ddcb0d9f6a2cb71d37a7ed63 (diff)
downloadillumos-joyent-f292b0ed623323e3120528ca36c58631e41cf2a0.tar.gz
OS-2373 elfcore() can induce panic in bcopy()
-rw-r--r--usr/src/uts/common/exec/elf/elf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/uts/common/exec/elf/elf.c b/usr/src/uts/common/exec/elf/elf.c
index e5a5294233..7d89db1575 100644
--- a/usr/src/uts/common/exec/elf/elf.c
+++ b/usr/src/uts/common/exec/elf/elf.c
@@ -26,7 +26,7 @@
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/*
- * Copyright (c) 2012, Joyent, Inc. All rights reserved.
+ * Copyright (c) 2013, Joyent, Inc. All rights reserved.
*/
#include <sys/types.h>
@@ -2048,7 +2048,7 @@ exclude:
if (sq != NULL) {
bcopy(&sq->sq_info, &killinfo.prk_info,
- sizeof (killinfo.prk_info));
+ sizeof (sq->sq_info));
} else {
killinfo.prk_info.si_signo = lwp->lwp_cursig;
killinfo.prk_info.si_code = SI_NOINFO;