Defined in 1 files as a prototype:
Defined in 2 files as a function:
Referenced in 3 files:
Smatch caller information:
mm/mprotect.c mprotect_fixup() -> may_expand_vm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | vma_flags | 2002330160899121152 |
| PARAM_VALUE | 2 | npages | 0-4503599627370495 |
| USER_DATA | 2 | npages | 1-4503599627370495[c] |
| UNITS | 0 | mm | unit_byte |
| UNITS | 2 | npages | unit_page |
| HALF_LOCKED2 | &mm->mmap_lock | ||
| HALF_LOCKED2 | &tsk->signal->exec_update_lock |
mm/mprotect.c mprotect_fixup() -> may_expand_vm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mm | 4096-ptr_max |
| PARAM_VALUE | 1 | vma_flags | 8243283500085485568 |
| PARAM_VALUE | 2 | npages | 0-4503599627370495 |
| USER_DATA | 2 | npages | 1-4503599627370495[c] |
| UNITS | 0 | mm | unit_byte |
| UNITS | 2 | npages | unit_page |
| HALF_LOCKED2 | &mm->mmap_lock | ||
| HALF_LOCKED2 | &tsk->signal->exec_update_lock |
mm/mremap.c check_prep_vma() -> may_expand_vm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | vma_flags | 4096-ptr_max |
| PARAM_VALUE | 2 | npages | 0-4503599627370495 |
| USER_DATA | 2 | npages | 0-4503599627370495[c] |
| UNITS | 0 | mm | unit_byte |
| UNITS | 2 | npages | unit_page |
| LOCK2 | &mm->mmap_lock | ||
| TYPE_LOCK | (struct mm_struct)->mmap_lock |
mm/mremap.c mremap_to() -> may_expand_vm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | vma_flags | 6755433354470010880 |
| PARAM_VALUE | 2 | npages | 0-4503599627370495 |
| USER_DATA | 2 | npages | 0-4503599627370495[c] |
| UNITS | 0 | mm | unit_byte |
| UNITS | 2 | npages | unit_page |
| LOCK2 | &mm->mmap_lock | ||
| TYPE_LOCK | (struct mm_struct)->mmap_lock |
mm/vma.c __mmap_setup() -> may_expand_vm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | vma_flags | 5695852749483675704 |
| UNITS | 0 | mm | unit_byte |
mm/vma.c acct_stack_growth() -> may_expand_vm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mm | 4096-ptr_max |
| PARAM_VALUE | 1 | vma_flags | 4096-ptr_max |
| PARAM_VALUE | 2 | npages | 0-4503599627370495 |
| CAPPED_DATA | 2 | npages | 1 |
| CAPPED_DATA | 2 | npages | 1 |
| DATA_SOURCE | 2 | npages | $2 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | npages | 0-s32max[c] |
| UNITS | 0 | mm | unit_byte |
| UNITS | 2 | npages | unit_page |
| LOCK2 | &vma->anon_vma->root->rwsem | ||
| HALF_LOCKED2 | &mm->mmap_lock | ||
| TYPE_LOCK | (struct anon_vma)->rwsem |
mm/vma.c do_brk_flags() -> may_expand_vm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mm | 4096-ptr_max |
| PARAM_VALUE | 2 | npages | 0-4503599627370495 |
| USER_DATA | 2 | npages | 0-4503599627370495[c] |
| UNITS | 0 | mm | unit_byte |
| UNITS | 2 | npages | unit_page |
| LOCK2 | &mm->mmap_lock | ||
| TYPE_LOCK | (struct mm_struct)->mmap_lock |