Defined in 1 files as a function:
Referenced in 10 files:
- drivers/dma-buf/heaps/cma_heap.c, line 318
- drivers/gpu/drm/ttm/ttm_pool.c, line 333
- drivers/scsi/sd.c, line 993
- include/xen/mem-reservation.h, line 25
- kernel/kexec_core.c, line 299
- kernel/power/snapshot.c, line 1191
- lib/test_hmm.c
- mm/khugepaged.c
- mm/shmem.c, line 2577
- virt/kvm/guest_memfd.c
Smatch caller information:
arch/x86/kvm/../../../virt/kvm/guest_memfd.c kvm_gmem_fault_user_mapping() -> clear_highpage()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
arch/x86/kvm/../../../virt/kvm/guest_memfd.c kvm_gmem_get_pfn() -> clear_highpage()
| Type | Parameter | Key | Value |
|---|---|---|---|
| NOCHECK_CALL | |||
| HALF_LOCKED2 | _T->lock |
lib/test_hmm.c dmirror_migrate_alloc_and_copy() -> clear_highpage()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | page | 4096-ptr_max |
| BUF_SIZE | 0 | page | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | page | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | page->zone_device_data | s32min-(-2),1-s32max |
| NOCHECK_CALL | |||
| UNITS | 0 | page | unit_page |
| LOCK2 | &mm->mmap_lock | ||
| TYPE_LOCK | (struct mm_struct)->mmap_lock |
lib/test_hmm.c dmirror_migrate_alloc_and_copy() -> clear_highpage()
| Type | Parameter | Key | Value |
|---|---|---|---|
| NOCHECK_CALL | |||
| UNITS | 0 | page | unit_page |
| LOCK2 | &mm->mmap_lock | ||
| TYPE_LOCK | (struct mm_struct)->mmap_lock |
lib/test_hmm.c dmirror_migrate_alloc_and_copy() -> clear_highpage()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | page | 4096-ptr_max |
| BUF_SIZE | 0 | page | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | page | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | page->zone_device_data | s32min-(-2),1-s32max |
| NOCHECK_CALL | |||
| UNITS | 0 | page | unit_page |
| LOCK2 | &mm->mmap_lock | ||
| TYPE_LOCK | (struct mm_struct)->mmap_lock |
drivers/scsi/sd.c sd_set_special_bvec() -> clear_highpage()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | page | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | __tag_set->srcu | ||
| HALF_LOCKED2 | rcu_read |
mm/shmem.c shmem_get_folio_gfp() -> clear_highpage()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
kernel/kexec_core.c kimage_alloc_pages() -> clear_highpage()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
kernel/power/snapshot.c clear_or_poison_free_page() -> clear_highpage()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | page | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | global &device_hotplug_lock | ||
| LOCK2 | global &system_transition_mutex | ||
| LOCK2 | irq |
drivers/xen/grant-table.c xenmem_reservation_scrub_page() -> clear_highpage()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | page | $0 |
| NOCHECK_CALL | |||
| UNITS | 0 | page | unit_page |
drivers/xen/balloon.c xenmem_reservation_scrub_page() -> clear_highpage()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | page | 4096-ptr_max |
| DATA_SOURCE | 0 | page | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | global &balloon_mutex |
mm/khugepaged.c collapse_file() -> clear_highpage()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | page | (-1),64 |
| BUF_SIZE | 0 | page | (-1),64 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &mm->mmap_lock |
mm/khugepaged.c collapse_file() -> clear_highpage()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | page | (-1),64 |
| BUF_SIZE | 0 | page | (-1),64 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &mm->mmap_lock |