3916 elfcore() can induce panic in bcopy()
Reviewed by: Robert Mustacchi <
[email protected]>
Reviewed by: Jason King <
[email protected]>
Reviewed by: Eric Schrock <
[email protected]>
Reviewed by: Marcel Telka <
[email protected]>
Approved by: Dan McDonald <
[email protected]>
--- a/usr/src/uts/common/exec/elf/elf.c Sat Jul 27 18:17:16 2013 -0700
+++ b/usr/src/uts/common/exec/elf/elf.c Sat Jul 27 11:11:23 2013 -0700
@@ -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 @@
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;