Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
mm/mprotect.c change_present_ptes() -> prot_commit_flush_ptes()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | vma | 4096-ptr_max |
| PARAM_VALUE | 2 | ptep | 4096-ptr_max |
| PARAM_VALUE | 6 | idx | 0 |
| PARAM_VALUE | 7 | set_write | 0 |
| PARAM_VALUE | 8 | tlb | 1328374472486391808,3520855664362516480,5518561256286212096,8385517359223296000 |
| CAPPED_DATA | 5 | nr_ptes | 1 |
| DATA_SOURCE | 0 | vma | $1 |
| DATA_SOURCE | 1 | addr | $2 |
| DATA_SOURCE | 2 | ptep | $3 |
| DATA_SOURCE | 3 | oldpte | r modify_prot_start_ptes |
| DATA_SOURCE | 5 | nr_ptes | $4 |
| DATA_SOURCE | 8 | tlb | $0 |
| NOSPEC | 5 | nr_ptes | |
| NOSPEC | 5 | nr_ptes | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | vma->vm_end | 1-u64max[c] |
| USER_DATA | 0 | vma->vm_start | 1-u64max[c] |
| USER_DATA | 1 | addr | 0-u64max[c] |
| USER_DATA | 2 | ptep | 4096-ptr_max[c][u] |
| USER_DATA | 5 | nr_ptes | 0,2-s32max[c] |
| USER_DATA | 8 | tlb->end | 1-u32max[c] |
| USER_DATA | 8 | tlb->start | 0-u64max[c] |
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_file->f_mapping->host->i_size | |
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_start | |
| UNITS | 1 | addr | unit_byte |
| LOCK2 | ptl | ||
| HALF_LOCKED2 | &mm->mmap_lock |
mm/mprotect.c commit_anon_folio_batch() -> prot_commit_flush_ptes()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | vma | 4096-ptr_max |
| PARAM_VALUE | 2 | ptep | 4096-ptr_max |
| PARAM_VALUE | 6 | idx | 0-s32max |
| PARAM_VALUE | 8 | tlb | 1328374472486391808,3520855664362516480,5518561256286212096,8385517359223296000 |
| DATA_SOURCE | 0 | vma | $0 |
| DATA_SOURCE | 1 | addr | $3 |
| DATA_SOURCE | 2 | ptep | $4 |
| DATA_SOURCE | 3 | oldpte | $5 |
| DATA_SOURCE | 4 | ptent | $6 |
| DATA_SOURCE | 5 | nr_ptes | r page_anon_exclusive_batch |
| DATA_SOURCE | 7 | set_write | r PageAnonExclusive |
| DATA_SOURCE | 8 | tlb | $8 |
| FUZZY_MAX | 6 | idx | 0 |
| NOSPEC | 1 | addr | |
| NOSPEC | 1 | addr | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | vma->vm_end | 1-u64max[c] |
| USER_DATA | 0 | vma->vm_start | 1-u64max[c] |
| USER_DATA | 1 | addr | 0-18446744073709551614[c] |
| USER_DATA | 2 | ptep | 4096-ptr_max[c][u] |
| USER_DATA | 8 | tlb->end | 1-u32max[c] |
| USER_DATA | 8 | tlb->start | 0-u64max[c] |
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_start | |
| UNITS | 1 | addr | unit_byte |
| LOCK2 | ptl | ||
| HALF_LOCKED2 | &mm->mmap_lock |
mm/mprotect.c set_write_prot_commit_flush_ptes() -> prot_commit_flush_ptes()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | vma | 4096-ptr_max |
| PARAM_VALUE | 2 | ptep | 4096-ptr_max |
| PARAM_VALUE | 6 | idx | 0 |
| PARAM_VALUE | 8 | tlb | 1328374472486391808,3520855664362516480,5518561256286212096,8385517359223296000 |
| CAPPED_DATA | 5 | nr_ptes | 1 |
| DATA_SOURCE | 0 | vma | $0 |
| DATA_SOURCE | 1 | addr | $3 |
| DATA_SOURCE | 2 | ptep | $4 |
| DATA_SOURCE | 3 | oldpte | $5 |
| DATA_SOURCE | 4 | ptent | $6 |
| DATA_SOURCE | 5 | nr_ptes | $7 |
| DATA_SOURCE | 7 | set_write | r can_change_shared_pte_writable |
| DATA_SOURCE | 8 | tlb | $8 |
| NOSPEC | 1 | addr | |
| NOSPEC | 1 | addr | |
| NOSPEC | 5 | nr_ptes | |
| NOSPEC | 5 | nr_ptes | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | vma->vm_end | 1-u64max[c] |
| USER_DATA | 0 | vma->vm_start | 1-u64max[c] |
| USER_DATA | 1 | addr | 0-18446744073709551614[c] |
| USER_DATA | 2 | ptep | 4096-ptr_max[c][u] |
| USER_DATA | 5 | nr_ptes | 0,2-s32max[c] |
| USER_DATA | 8 | tlb->end | 1-u32max[c] |
| USER_DATA | 8 | tlb->start | 0-u64max[c] |
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_start | |
| UNITS | 1 | addr | unit_byte |
| LOCK2 | ptl | ||
| HALF_LOCKED2 | &mm->mmap_lock |
mm/mprotect.c set_write_prot_commit_flush_ptes() -> prot_commit_flush_ptes()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | vma | 4096-ptr_max |
| PARAM_VALUE | 2 | ptep | 4096-ptr_max |
| PARAM_VALUE | 6 | idx | 0 |
| PARAM_VALUE | 7 | set_write | 0 |
| PARAM_VALUE | 8 | tlb | 1328374472486391808,3520855664362516480,5518561256286212096,8385517359223296000 |
| CAPPED_DATA | 5 | nr_ptes | 1 |
| DATA_SOURCE | 0 | vma | $0 |
| DATA_SOURCE | 1 | addr | $3 |
| DATA_SOURCE | 2 | ptep | $4 |
| DATA_SOURCE | 3 | oldpte | $5 |
| DATA_SOURCE | 4 | ptent | $6 |
| DATA_SOURCE | 5 | nr_ptes | $7 |
| DATA_SOURCE | 8 | tlb | $8 |
| NOSPEC | 1 | addr | |
| NOSPEC | 1 | addr | |
| NOSPEC | 5 | nr_ptes | |
| NOSPEC | 5 | nr_ptes | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | vma->vm_end | 1-u64max[c] |
| USER_DATA | 0 | vma->vm_start | 1-u64max[c] |
| USER_DATA | 1 | addr | 0-18446744073709551614[c] |
| USER_DATA | 2 | ptep | 4096-ptr_max[c][u] |
| USER_DATA | 5 | nr_ptes | 0,2-s32max[c] |
| USER_DATA | 8 | tlb->end | 1-u32max[c] |
| USER_DATA | 8 | tlb->start | 0-u64max[c] |
| NO_OVERFLOW_SIMPLE | 0 | vma->vm_start | |
| UNITS | 1 | addr | unit_byte |
| LOCK2 | ptl | ||
| HALF_LOCKED2 | &mm->mmap_lock |