Date: Sun, 14 Nov 2010 17:53:52 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/vm vm_map.c Message-ID: <201011141754.oAEHs0qr079382@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
kib 2010-11-14 17:53:52 UTC FreeBSD src repository Modified files: sys/vm vm_map.c Log: SVN rev 215307 on 2010-11-14 17:53:52Z by kib Implement a (soft) stack guard page for auto-growing stack mappings. The unmapped page separates the tip of the stack and possible adjanced segment, making some uses of stack overflow harder. The stack growing code refuses to expand the segment to the last page of the reseved region when sysctl security.bsd.stack_guard_page is set to 1. The default value for sysctl and accompanying tunable is 0. Please note that mmap(MAP_FIXED) still can place a mapping right up to the stack, making continuous region. Reviewed by: alc MFC after: 1 week Revision Changes Path 1.437 +13 -1 src/sys/vm/vm_map.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011141754.oAEHs0qr079382>