Date: Wed, 14 Aug 2019 09:51:45 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r351022 - stable/11/sys/vm Message-ID: <201908140951.x7E9pjqm078211@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Wed Aug 14 09:51:44 2019 New Revision: 351022 URL: https://svnweb.freebsd.org/changeset/base/351022 Log: MFC r350758: Fix stack grow for init. Modified: stable/11/sys/vm/vm_map.c Directory Properties: stable/11/ (props changed) Modified: stable/11/sys/vm/vm_map.c ============================================================================== --- stable/11/sys/vm/vm_map.c Wed Aug 14 09:49:28 2019 (r351021) +++ stable/11/sys/vm/vm_map.c Wed Aug 14 09:51:44 2019 (r351022) @@ -3726,7 +3726,8 @@ vm_map_growstack(vm_map_t map, vm_offset_t addr, vm_ma * debugger or AIO daemon. The reason is that the wrong * resource limits are applied. */ - if (map != &p->p_vmspace->vm_map || p->p_textvp == NULL) + if (p != initproc && (map != &p->p_vmspace->vm_map || + p->p_textvp == NULL)) return (KERN_FAILURE); MPASS(!map->system_map);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201908140951.x7E9pjqm078211>