# HG changeset patch # User Bryan Cantrill # Date 1374948683 25200 # Node ID 065756628914cdf5056e02dd65d8adbf84b70748 # Parent eae3d706a928c04d2df31bbe0ef6a659091eb48e 3916 elfcore() can induce panic in bcopy() Reviewed by: Robert Mustacchi Reviewed by: Jason King Reviewed by: Eric Schrock Reviewed by: Marcel Telka Approved by: Dan McDonald diff -r eae3d706a928 -r 065756628914 usr/src/uts/common/exec/elf/elf.c --- 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 @@ -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;