svn commit: r335020 - head/sys/amd64/linux32
Brooks Davis
brooks at freebsd.org
Tue Jun 12 23:52:55 UTC 2018
On Tue, Jun 12, 2018 at 10:54:48PM +0000, Jung-uk Kim wrote:
> Author: jkim
> Date: Tue Jun 12 22:54:48 2018
> New Revision: 335020
> URL: https://svnweb.freebsd.org/changeset/base/335020
>
> Log:
> Fix number of auxargs entries to copy out for 32-bit Linuxulator.
>
> PR: 228790
>
> Modified:
> head/sys/amd64/linux32/linux32_sysvec.c
>
> Modified: head/sys/amd64/linux32/linux32_sysvec.c
> ==============================================================================
> --- head/sys/amd64/linux32/linux32_sysvec.c Tue Jun 12 22:52:27 2018 (r335019)
> +++ head/sys/amd64/linux32/linux32_sysvec.c Tue Jun 12 22:54:48 2018 (r335020)
> @@ -249,9 +249,10 @@ linux_fixup_elf(register_t **stack_base, struct image_
>
> free(imgp->auxargs, M_TEMP);
> imgp->auxargs = NULL;
> - KASSERT(pos - argarray <= AT_COUNT, ("Too many auxargs"));
> + KASSERT(pos - argarray <= LINUX_AT_COUNT, ("Too many auxargs"));
>
> - error = copyout(&argarray[0], auxbase, sizeof(*argarray) * AT_COUNT);
> + error = copyout(&argarray[0], auxbase,
> + sizeof(*argarray) * LINUX_AT_COUNT);
> free(argarray, M_TEMP);
> if (error != 0)
> return (error);
Thanks for tracking this down! Sorry for the breakage.
-- Brooks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-src-all/attachments/20180612/f9bdd250/attachment.sig>
More information about the svn-src-all
mailing list