Defined in 2 files as a prototype:

Defined in 3 files as a function:

Referenced in 11 files:

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