Date: Tue, 4 Aug 2015 12:18:02 +0200 From: Oliver Pinter <oliver.pinter@hardenedbsd.org> To: Konstantin Belousov <kib@freebsd.org> Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r285046 - head/sys/vm Message-ID: <CAPQ4ffsxsfWPFwGpBbD%2BdT_G0tXV0bFQET0bcN5rtn_QsEzWQQ@mail.gmail.com> In-Reply-To: <201507021522.t62FMEQY008049@repo.freebsd.org> References: <201507021522.t62FMEQY008049@repo.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 7/2/15, Konstantin Belousov <kib@freebsd.org> wrote: > Author: kib > Date: Thu Jul 2 15:22:13 2015 > New Revision: 285046 > URL: https://svnweb.freebsd.org/changeset/base/285046 > > Log: > Account for the main process stack being one page below the highest > user address when ABI uses shared page. > > Note that the change is no-op for correctness, since shared page does > not fault. The mapping for the shared page is installed at the > address space creation, the page is unmanaged and its pte/pv entry > cannot be reclaimed. > > Submitted by: Oliver Pinter > Review: https://reviews.freebsd.org/D2954 > MFC after: 1 week Hi Kostik! As same MFC this? Oliver > > Modified: > head/sys/vm/vm_map.c > > Modified: head/sys/vm/vm_map.c > ============================================================================== > --- head/sys/vm/vm_map.c Thu Jul 2 15:17:30 2015 (r285045) > +++ head/sys/vm/vm_map.c Thu Jul 2 15:22:13 2015 (r285046) > @@ -3640,7 +3640,8 @@ Retry: > return (KERN_NO_SPACE); > } > > - is_procstack = (addr >= (vm_offset_t)vm->vm_maxsaddr) ? 1 : 0; > + is_procstack = (addr >= (vm_offset_t)vm->vm_maxsaddr && > + addr < (vm_offset_t)p->p_sysent->sv_usrstack) ? 1 : 0; > > /* > * If this is the main process stack, see if we're over the stack > _______________________________________________ > svn-src-head@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/svn-src-head > To unsubscribe, send any mail to "svn-src-head-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAPQ4ffsxsfWPFwGpBbD%2BdT_G0tXV0bFQET0bcN5rtn_QsEzWQQ>