Mercurial > illumos > illumos-gate
changeset 14112:065756628914
3916 elfcore() can induce panic in bcopy()
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Jason King <jason.brian.king@gmail.com>
Reviewed by: Eric Schrock <eric.schrock@delphix.com>
Reviewed by: Marcel Telka <marcel@telka.sk>
Approved by: Dan McDonald <danmcd@nexenta.com>
author | Bryan Cantrill <bryan@joyent.com> |
---|---|
date | Sat, 27 Jul 2013 11:11:23 -0700 |
parents | eae3d706a928 |
children | 01cb14af742b |
files | usr/src/uts/common/exec/elf/elf.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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;