git: ce5d4af8bce6 - stable/13 - vm_map: do not allow to merge stack gap entries
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 25 Aug 2023 01:08:34 UTC
The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=ce5d4af8bce6701e8c1370a45146edfca447a618 commit ce5d4af8bce6701e8c1370a45146edfca447a618 Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2023-07-25 18:48:57 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2023-08-25 01:06:44 +0000 vm_map: do not allow to merge stack gap entries (cherry picked from commit 9d7ea6cff7a7edc0f3d4fa8d54e6345ee027e754) --- sys/vm/vm_map.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c index 09e78b3e18f9..076528126e44 100644 --- a/sys/vm/vm_map.c +++ b/sys/vm/vm_map.c @@ -2287,7 +2287,8 @@ vm_map_find_min(vm_map_t map, vm_object_t object, vm_ooffset_t offset, * another entry. */ #define MAP_ENTRY_NOMERGE_MASK (MAP_ENTRY_GROWS_DOWN | MAP_ENTRY_GROWS_UP | \ - MAP_ENTRY_IN_TRANSITION | MAP_ENTRY_IS_SUB_MAP | MAP_ENTRY_VN_EXEC) + MAP_ENTRY_IN_TRANSITION | MAP_ENTRY_IS_SUB_MAP | MAP_ENTRY_VN_EXEC | \ + MAP_ENTRY_STACK_GAP_UP | MAP_ENTRY_STACK_GAP_DN) static bool vm_map_mergeable_neighbors(vm_map_entry_t prev, vm_map_entry_t entry)