Defined in 2 files as a function:
- include/linux/mm.h, line 1459 (as a function)
- tools/testing/vma/include/dup.h, line 1126 (as a function)
Referenced in 6 files:
- include/linux/mm.h, line 1472
- mm/mmap.c, line 1785
- mm/mremap.c, line 1338
- mm/vma.c, line 2755
- tools/testing/vma/include/dup.h, line 1133
- tools/testing/vma/tests/vma.c, line 403
Smatch caller information:
mm/mmap.c dup_mmap() -> vma_clear_flags_mask()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | vma | 4096-ptr_max |
| PARAM_VALUE | 0 | vma->flags.__vma_flags | 4096-ptr_max |
| PARAM_VALUE | 1 | flags | s64min-(-4096),4096-s64max |
| CAPPED_DATA | 0 | vma->vm_mm->mm_id | 1 |
| DATA_SOURCE | 0 | vma | r vm_area_dup |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_start | |
| UNITS | 0 | vma | unit_byte |
| LOCK2 | &mm->mmap_lock | ||
| LOCK2 | &oldmm->mmap_lock | ||
| TYPE_LOCK | (struct mm_struct)->mmap_lock |
mm/mremap.c dontunmap_complete() -> vma_clear_flags_mask()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | vma | 4096-ptr_max |
| PARAM_VALUE | 1 | flags | s64min-(-4096),4096-s64max |
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_end | |
| LOCK2 | &mm->mmap_lock | ||
| TYPE_LOCK | (struct mm_struct)->mmap_lock |
mm/mremap.c unmap_source_vma() -> vma_clear_flags_mask()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | vma | 4096-ptr_max |
| PARAM_VALUE | 0 | vma->flags.__vma_flags | 4096-ptr_max |
| PARAM_VALUE | 1 | flags | s64min-(-4096),4096-s64max |
| NOCHECK_CALL | |||
| USER_DATA | 0 | vma->vm_end | 0-u64max |
| USER_DATA | 0 | vma->vm_pgoff | 0-4503599627370495[c] |
| USER_DATA | 0 | vma->vm_start | 0-18446744073709547520[c] |
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_end | |
| LOCK2 | &mm->mmap_lock | ||
| TYPE_LOCK | (struct mm_struct)->mmap_lock |
mm/vma.c __mmap_complete() -> vma_clear_flags_mask()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | vma | 4096-ptr_max |
| PARAM_VALUE | 0 | vma->flags.__vma_flags | 4096-ptr_max |
| PARAM_VALUE | 1 | flags | s64min-(-4096),4096-s64max |
| DATA_SOURCE | 0 | vma | $1 |
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_pgoff |