Defined in 2 files as a function:
- include/linux/mm.h, line 1186 (as a function)
- tools/testing/vma/include/dup.h, line 985 (as a function)
Referenced in 5 files:
- include/linux/mm.h, line 1206
- mm/userfaultfd.c
- mm/vma.c
- tools/testing/vma/include/dup.h, line 998
- tools/testing/vma/tests/vma.c
Smatch caller information:
mm/userfaultfd.c mfill_retry_state_changed() -> vma_flags_and_mask()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | flags | 4096-ptr_max |
| BIT_INFO | 1 | to_and | 0x0,0x7fffffffffffffff |
| 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() -> vma_flags_and_mask()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | flags | 4096-ptr_max |
| BIT_INFO | 1 | to_and | 0x0,0x7fffffffffffffff |
| LOCK2 | &state.ctx->map_changing_lock | ||
| TYPE_LOCK | (struct userfaultfd_ctx)->map_changing_lock |
mm/vma.c vma_expand() -> vma_flags_and_mask()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | flags | 1474854196907466832,5356536376855486544,5410385347448553552,7947032063174692944,8796851005535342672 |
| PARAM_VALUE | 1 | to_and | s64min-(-4096),4096-s64max |
| HALF_LOCKED2 | &mm->mmap_lock | ||
| HALF_LOCKED2 | &tsk->signal->exec_update_lock |
mm/vma.c vma_expand() -> vma_flags_and_mask()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | flags | 4096-ptr_max |
| PARAM_VALUE | 1 | to_and | s64min-(-4096),4096-s64max |
| HALF_LOCKED2 | &mm->mmap_lock | ||
| HALF_LOCKED2 | &tsk->signal->exec_update_lock |
mm/vma.c vma_expand() -> vma_flags_and_mask()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | flags | 4096-ptr_max |
| PARAM_VALUE | 1 | to_and | s64min-(-4096),4096-s64max |
| HALF_LOCKED2 | &mm->mmap_lock |
mm/vma.c vma_merge_existing_range() -> vma_flags_and_mask()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | flags | 900862351064281168,4380980868382982224,6494234614826369104,8346123094982238288 |
| PARAM_VALUE | 1 | to_and | s64min-(-4096),4096-s64max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &mm->mmap_lock |
mm/vma.c vma_merge_existing_range() -> vma_flags_and_mask()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | flags | 4096-ptr_max |
| PARAM_VALUE | 1 | to_and | s64min-(-4096),4096-s64max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &mm->mmap_lock |
mm/vma.c vma_merge_existing_range() -> vma_flags_and_mask()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | flags | 4096-ptr_max |
| PARAM_VALUE | 1 | to_and | s64min-(-4096),4096-s64max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &mm->mmap_lock |