Defined in 2 files as a prototype:
- arch/arm64/include/asm/page.h, line 29 (as a prototype)
- arch/sparc/include/asm/page_64.h, line 54 (as a prototype)
Defined in 3 files as a function:
- arch/arm64/mm/copypage.c, line 17 (as a function)
- arch/sparc/mm/init_64.c, line 3105 (as a function)
- include/linux/highmem.h, line 413 (as a function)
Referenced in 11 files:
- arch/arm64/mm/copypage.c
- arch/sparc/mm/init_64.c, line 3137
- drivers/block/drbd/drbd_bitmap.c, line 1039
- drivers/gpu/drm/ttm/ttm_backup.c
- drivers/gpu/drm/ttm/ttm_pool.c, line 634
- drivers/gpu/drm/ttm/ttm_tt.c
- fs/erofs/decompressor.c, line 414
- include/linux/highmem.h, line 482
- kernel/kexec_core.c, line 719
- lib/test_hmm.c
- mm/util.c, line 756
Smatch caller information:
drivers/block/drbd/drbd_bitmap.c bm_page_io_async() -> copy_highpage()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | from | 4096-ptr_max |
| DATA_SOURCE | 0 | to | r mempool_alloc_noprof |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/gpu/drm/ttm/ttm_backup.c ttm_backup_backup_folio() -> copy_highpage()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | from | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 1 | from | unit_page |
| HALF_LOCKED2 | global &bch_register_lock |
drivers/gpu/drm/ttm/ttm_backup.c ttm_backup_copy_page() -> copy_highpage()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | to | 4096-ptr_max |
| DATA_SOURCE | 0 | to | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
lib/test_hmm.c dmirror_devmem_fault_alloc_and_copy() -> copy_highpage()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | to | unit_page |
| UNITS | 1 | from | unit_page |
| HALF_LOCKED2 | &mm->mmap_lock |
lib/test_hmm.c dmirror_migrate_alloc_and_copy() -> copy_highpage()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | to | 4096-ptr_max |
| PARAM_VALUE | 0 | to->zone_device_data | 4096-ptr_max |
| BUF_SIZE | 0 | to | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | to | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | to->zone_device_data | s32min-(-2),1-s32max |
| NOCHECK_CALL | |||
| UNITS | 0 | to | unit_page |
| LOCK2 | &mm->mmap_lock | ||
| TYPE_LOCK | (struct mm_struct)->mmap_lock |
lib/test_hmm.c dmirror_migrate_alloc_and_copy() -> copy_highpage()
| Type | Parameter | Key | Value |
|---|---|---|---|
| NOCHECK_CALL | |||
| UNITS | 0 | to | unit_page |
| UNITS | 1 | from | unit_page |
| LOCK2 | &mm->mmap_lock | ||
| TYPE_LOCK | (struct mm_struct)->mmap_lock |
lib/test_hmm.c dmirror_migrate_alloc_and_copy() -> copy_highpage()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | to | 4096-ptr_max |
| PARAM_VALUE | 0 | to->zone_device_data | 4096-ptr_max |
| PARAM_VALUE | 1 | from | 4096-ptr_max |
| BUF_SIZE | 0 | to | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | to | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | to->zone_device_data | s32min-(-2),1-s32max |
| DATA_SOURCE | 1 | from | r migrate_pfn_to_page |
| NOCHECK_CALL | |||
| UNITS | 0 | to | unit_page |
| LOCK2 | &mm->mmap_lock | ||
| TYPE_LOCK | (struct mm_struct)->mmap_lock |
mm/util.c folio_copy() -> copy_highpage()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | to | 4096-ptr_max |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &ai->migrate_lock | ||
| HALF_LOCKED2 | &ctx->completion_lock | ||
| HALF_LOCKED2 | &ctx->ring_lock | ||
| HALF_LOCKED2 | flags |
kernel/kexec_core.c kimage_alloc_page() -> copy_highpage()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | to | 4096-ptr_max |
| PARAM_VALUE | 0 | to->_refcount.counter | 1 |
| PARAM_VALUE | 0 | to->mapping | 0 |
| PARAM_VALUE | 0 | to->private | 0 |
| DATA_SOURCE | 0 | to | r kimage_alloc_pages |
| DATA_SOURCE | 1 | from | r boot_pfn_to_page |
| NOCHECK_CALL |
drivers/gpu/drm/ttm/ttm_pool.c ttm_pool_restore_commit() -> copy_highpage()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | to | 4096-ptr_max |
| PARAM_VALUE | 1 | from | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
fs/erofs/decompressor.c z_erofs_stream_switch_bufs() -> copy_highpage()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | to | 4096-ptr_max |
| PARAM_VALUE | 0 | to->private | 18446744073709551612 |
| DATA_SOURCE | 0 | to | r erofs_allocpage |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &pcl->lock | ||
| TYPE_LOCK | (struct z_erofs_pcluster)->lock |
drivers/gpu/drm/ttm/ttm_tt.c ttm_tt_swapin() -> copy_highpage()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | to | 1-u64max |
| PARAM_VALUE | 1 | from | 4096-ptr_max |
| PARAM_VALUE | 1 | from->flags.f | 0-18446744073709551614 |
| DATA_SOURCE | 1 | from | r shmem_read_mapping_page_gfp |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/gpu/drm/ttm/ttm_tt.c ttm_tt_swapout() -> copy_highpage()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | to | 4096-ptr_max |
| PARAM_VALUE | 0 | to->flags.f | 0-18446744073709551614 |
| PARAM_VALUE | 1 | from | 1-u64max |
| DATA_SOURCE | 0 | to | r shmem_read_mapping_page_gfp |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |