Date: Mon, 22 Nov 2010 17:01:41 +0000 (UTC) From: Nathan Whitehorn <nwhitehorn@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r215689 - stable/8/sys/powerpc/aim Message-ID: <201011221701.oAMH1fk2098656@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: nwhitehorn Date: Mon Nov 22 17:01:40 2010 New Revision: 215689 URL: http://svn.freebsd.org/changeset/base/215689 Log: MFC r214610: Map userland copyin/copyout segment no-execute while it is mapped into the kernel. Modified: stable/8/sys/powerpc/aim/copyinout.c Directory Properties: stable/8/sys/ (props changed) stable/8/sys/amd64/include/xen/ (props changed) stable/8/sys/cddl/contrib/opensolaris/ (props changed) stable/8/sys/contrib/dev/acpica/ (props changed) stable/8/sys/contrib/pf/ (props changed) stable/8/sys/dev/xen/xenpci/ (props changed) Modified: stable/8/sys/powerpc/aim/copyinout.c ============================================================================== --- stable/8/sys/powerpc/aim/copyinout.c Mon Nov 22 16:58:07 2010 (r215688) +++ stable/8/sys/powerpc/aim/copyinout.c Mon Nov 22 17:01:40 2010 (r215689) @@ -76,6 +76,9 @@ static __inline void set_user_sr(register_t vsid) { + /* Mark segment no-execute */ + vsid |= SR_N; + isync(); __asm __volatile ("mtsr %0,%1" :: "n"(USER_SR), "r"(vsid)); isync();
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011221701.oAMH1fk2098656>