We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae1f05a commit 00547efCopy full SHA for 00547ef
mm/internal.h
@@ -538,14 +538,14 @@ static inline bool is_exec_mapping(vm_flags_t flags)
538
}
539
540
/*
541
- * Stack area - automatically grows in one direction
+ * Stack area (including shadow stacks)
542
*
543
* VM_GROWSUP / VM_GROWSDOWN VMAs are always private anonymous:
544
* do_mmap() forbids all other combinations.
545
*/
546
static inline bool is_stack_mapping(vm_flags_t flags)
547
{
548
- return (flags & VM_STACK) == VM_STACK;
+ return ((flags & VM_STACK) == VM_STACK) || (flags & VM_SHADOW_STACK);
549
550
551
0 commit comments