From owner-svn-src-all@FreeBSD.ORG Tue Mar 6 10:51:53 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C2608106566C; Tue, 6 Mar 2012 10:51:53 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id AC7D88FC13; Tue, 6 Mar 2012 10:51:53 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q26Apr8x036074; Tue, 6 Mar 2012 10:51:53 GMT (envelope-from kib@svn.freebsd.org) Received: (from kib@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q26AprFh036072; Tue, 6 Mar 2012 10:51:53 GMT (envelope-from kib@svn.freebsd.org) Message-Id: <201203061051.q26AprFh036072@svn.freebsd.org> From: Konstantin Belousov Date: Tue, 6 Mar 2012 10:51:53 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r232597 - stable/8/sys/i386/linux X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Mar 2012 10:51:53 -0000 Author: kib Date: Tue Mar 6 10:51:53 2012 New Revision: 232597 URL: http://svn.freebsd.org/changeset/base/232597 Log: MFC r232143: Do not write to the user address directly, use suword(). Modified: stable/8/sys/i386/linux/linux_sysvec.c Directory Properties: stable/8/sys/ (props changed) Modified: stable/8/sys/i386/linux/linux_sysvec.c ============================================================================== --- stable/8/sys/i386/linux/linux_sysvec.c Tue Mar 6 10:45:23 2012 (r232596) +++ stable/8/sys/i386/linux/linux_sysvec.c Tue Mar 6 10:51:53 2012 (r232597) @@ -225,11 +225,11 @@ linux_fixup(register_t **stack_base, str argv = *stack_base; envp = *stack_base + (imgp->args->argc + 1); (*stack_base)--; - **stack_base = (intptr_t)(void *)envp; + suword(*stack_base, (intptr_t)(void *)envp); (*stack_base)--; - **stack_base = (intptr_t)(void *)argv; + suword(*stack_base, (intptr_t)(void *)argv); (*stack_base)--; - **stack_base = imgp->args->argc; + suword(*stack_base, imgp->args->argc); return (0); } @@ -285,7 +285,7 @@ elf_linux_fixup(register_t **stack_base, imgp->auxargs = NULL; (*stack_base)--; - **stack_base = (register_t)imgp->args->argc; + suword(*stack_base, (register_t)imgp->args->argc); return (0); }