Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
mm/madvise.c userfaultfd_armed() -> __mk_vma_flags_from_masks()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | count | 4 |
| PARAM_VALUE | 1 | masks | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING |
mm/userfaultfd.c mfill_retry_state_changed() -> __mk_vma_flags_from_masks()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | count | 4 |
| PARAM_VALUE | 1 | masks | 4096-ptr_max |
| LOCK2 | &mfill_state->ctx->map_changing_lock | ||
| LOCK2 | &state.ctx->map_changing_lock | ||
| TYPE_LOCK | (struct userfaultfd_ctx)->map_changing_lock |
mm/userfaultfd.c mfill_retry_state_save() -> __mk_vma_flags_from_masks()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | count | 4 |
| PARAM_VALUE | 1 | masks | 4096-ptr_max |
| LOCK2 | &state.ctx->map_changing_lock | ||
| TYPE_LOCK | (struct userfaultfd_ctx)->map_changing_lock |
mm/userfaultfd.c uffd_disable_huge_pmd_share() -> __mk_vma_flags_from_masks()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | count | 3 |
| PARAM_VALUE | 1 | masks | 4096-ptr_max |
| LOCK2 | &mm->mmap_lock | ||
| TYPE_LOCK | (struct mm_struct)->mmap_lock |
mm/userfaultfd.c userfaultfd_clear_vma() -> __mk_vma_flags_from_masks()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | count | 4 |
| PARAM_VALUE | 1 | masks | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &mm->mmap_lock | ||
| TYPE_LOCK | (struct mm_struct)->mmap_lock |
mm/userfaultfd.c userfaultfd_register_range() -> __mk_vma_flags_from_masks()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | count | 4 |
| PARAM_VALUE | 1 | masks | 4096-ptr_max |
| LOCK2 | &mm->mmap_lock | ||
| TYPE_LOCK | (struct mm_struct)->mmap_lock |
mm/rmap.c userfaultfd_armed() -> __mk_vma_flags_from_masks()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | count | 4 |
| PARAM_VALUE | 1 | masks | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &anon_vma->root->rwsem | ||
| HALF_LOCKED2 | &folio->private->lock |
mm/shmem.c userfaultfd_armed() -> __mk_vma_flags_from_masks()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | count | 4 |
| PARAM_VALUE | 1 | masks | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &inode->i_rwsem |
mm/hugetlb.c uffd_disable_huge_pmd_share() -> __mk_vma_flags_from_masks()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | count | 3 |
| PARAM_VALUE | 1 | masks | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &mapping->i_mmap_rwsem | ||
| HALF_LOCKED2 | &mm->mmap_lock | ||
| HALF_LOCKED2 | &oldmm->mmap_lock | ||
| HALF_LOCKED2 | &state.ctx->map_changing_lock | ||
| HALF_LOCKED2 | &vma->vm_file->f_mapping->i_mmap_rwsem |
mm/mremap.c userfaultfd_armed() -> __mk_vma_flags_from_masks()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | count | 4 |
| PARAM_VALUE | 1 | masks | 4096-ptr_max |
| LOCK2 | &mm->mmap_lock | ||
| TYPE_LOCK | (struct mm_struct)->mmap_lock |
mm/memory.c uffd_disable_fault_around() -> __mk_vma_flags_from_masks()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | count | 3 |
| PARAM_VALUE | 1 | masks | 4096-ptr_max |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &mm->mmap_lock |
mm/memory.c userfaultfd_armed() -> __mk_vma_flags_from_masks()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | count | 4 |
| PARAM_VALUE | 1 | masks | 4096-ptr_max |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING |
mm/khugepaged.c userfaultfd_armed() -> __mk_vma_flags_from_masks()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | count | 4 |
| PARAM_VALUE | 1 | masks | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &mm->mmap_lock |