Documented in 2 files:
Defined in 1 files as a macro:
Defined in 2 files as a function:
- arch/x86/include/asm/page_64.h, line 85 (as a function)
- include/linux/mm.h, line 5071 (as a function)
Referenced in 8 files:
- arch/arm64/include/asm/page.h, line 36
- arch/arm64/mm/fault.c
- arch/x86/include/asm/page_64.h, line 114
- drivers/dma-buf/heaps/cma_heap.c, line 329
- include/linux/highmem.h
- include/linux/mm.h
- kernel/fork.c, line 352
- mm/page_alloc.c, line 1225
Smatch caller information:
fs/gfs2/log.c clear_page() -> clear_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | addr | 18379471554275704832,18446612682070032384 |
| PARAM_VALUE | 1 | npages | 1 |
| DATA_SOURCE | 0 | addr | $0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &sdp->sd_freeze_mutex | ||
| HALF_LOCKED2 | &sdp->sd_log_flush_lock | ||
| TYPE_LOCK | (struct gfs2_sbd)->sd_log_flush_lock |
arch/x86/xen/time.c clear_page() -> clear_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | addr | 18379471554275704832,18446612682070032384 |
| PARAM_VALUE | 1 | npages | 1 |
| DATA_SOURCE | 0 | addr | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | flags |
kernel/fork.c alloc_thread_stack_node() -> clear_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | npages | 8 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | addr | unit_byte |
drivers/md/raid5-ppl.c clear_page() -> clear_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | addr | 18379471554275704832,18446612682070032384 |
| PARAM_VALUE | 1 | npages | 1 |
| DATA_SOURCE | 0 | addr | $0 |
| NOCHECK_CALL | |||
| LOCK2 | &log->io_mutex | ||
| TYPE_LOCK | (struct ppl_log)->io_mutex |
arch/x86/kernel/head64.c clear_page() -> clear_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | addr | 7095400128764272640 |
| PARAM_VALUE | 1 | npages | 1 |
| DATA_SOURCE | 0 | addr | $0 |
| NOCHECK_CALL |
drivers/gpu/drm/i915/gvt/gtt.c clear_page() -> clear_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | npages | 1 |
| DATA_SOURCE | 0 | addr | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &vgpu->vgpu_lock |
arch/x86/kvm/../../../virt/kvm/guest_memfd.c clear_page() -> clear_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | addr | 18379471554275704832,18446612682070032384 |
| PARAM_VALUE | 1 | npages | 1 |
| DATA_SOURCE | 0 | addr | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
arch/x86/mm/init.c clear_page() -> clear_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | addr | 18379471554275704832,18379471554275708928-18379471554275737600,18446612682070032384,18446612682070036480-18446612682070065152 |
| PARAM_VALUE | 1 | npages | 1 |
| DATA_SOURCE | 0 | addr | $0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
fs/dax.c clear_page() -> clear_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | addr | 18379471554275704832,18446612682070032384 |
| PARAM_VALUE | 1 | npages | 1 |
| DATA_SOURCE | 0 | addr | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &inode->i_mapping->invalidate_lock | ||
| HALF_LOCKED2 | &mapping->invalidate_lock |
mm/userfaultfd.c clear_page() -> clear_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | addr | 18379471554275704832,18446612682070032384 |
| PARAM_VALUE | 1 | npages | 1 |
| DATA_SOURCE | 0 | addr | $0 |
| NOCHECK_CALL | |||
| LOCK2 | &state.ctx->map_changing_lock | ||
| TYPE_LOCK | (struct userfaultfd_ctx)->map_changing_lock |
arch/x86/kernel/machine_kexec_64.c clear_page() -> clear_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | addr | 18379471554275704832,18446612682070032384 |
| PARAM_VALUE | 1 | npages | 1 |
| DATA_SOURCE | 0 | addr | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
lib/test_hmm.c clear_page() -> clear_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | addr | 18379471554275704832,18446612682070032384 |
| PARAM_VALUE | 1 | npages | 1 |
| DATA_SOURCE | 0 | addr | $0 |
| NOCHECK_CALL | |||
| LOCK2 | &mm->mmap_lock | ||
| TYPE_LOCK | (struct mm_struct)->mmap_lock |
kernel/power/swap.c clear_page() -> clear_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | addr | 0,18379471554275704832,18446612682070032384 |
| PARAM_VALUE | 1 | npages | 1 |
| DATA_SOURCE | 0 | addr | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | global &system_transition_mutex | ||
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | global &device_hotplug_lock |
drivers/scsi/sd.c clear_page() -> clear_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | addr | 18379471554275704832,18446612682070032384 |
| PARAM_VALUE | 1 | npages | 1 |
| DATA_SOURCE | 0 | addr | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | __tag_set->srcu | ||
| HALF_LOCKED2 | rcu_read |
drivers/gpu/drm/gma500/mmu.c clear_page() -> clear_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | addr | 18379471554275704832,18446612682070032384 |
| PARAM_VALUE | 1 | npages | 1 |
| DATA_SOURCE | 0 | addr | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &pool->lock |
fs/fuse/readdir.c clear_page() -> clear_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | addr | 18379471554275704832,18446612682070032384 |
| PARAM_VALUE | 1 | npages | 1 |
| DATA_SOURCE | 0 | addr | $0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &fi->rdc.lock | ||
| HALF_LOCKED2 | &dir_fp->readdir_lock | ||
| HALF_LOCKED2 | &inode->i_rwsem | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct fuse_inode)->rdc.lock | ||
| TYPE_LOCK | (struct inode)->i_rwsem |
mm/shmem.c clear_page() -> clear_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | addr | 18379471554275704832,18446612682070032384 |
| PARAM_VALUE | 1 | npages | 1 |
| DATA_SOURCE | 0 | addr | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
kernel/kexec_core.c clear_page() -> clear_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | addr | 18379471554275704832,18446612682070032384 |
| PARAM_VALUE | 1 | npages | 1 |
| DATA_SOURCE | 0 | addr | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
kernel/power/snapshot.c clear_page() -> clear_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | addr | 18379471554275704832,18446612682070032384 |
| PARAM_VALUE | 1 | npages | 1 |
| CAPPED_DATA | 0 | addr | 1 |
| DATA_SOURCE | 0 | addr | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | global &system_transition_mutex | ||
| HALF_LOCKED2 | global &device_hotplug_lock | ||
| HALF_LOCKED2 | irq |
mm/page_alloc.c clear_highpages_kasan_tagged() -> clear_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | addr | 18379471554275704832,18446612682070032384 |
| CAPPED_DATA | 1 | npages | 1 |
| DATA_SOURCE | 1 | npages | $1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/infiniband/hw/mthca/mthca_eq.c clear_page() -> clear_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | addr | 1-ptr_max |
| PARAM_VALUE | 1 | npages | 1 |
| BUF_SIZE | 0 | addr | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | addr | s32min-(-2),1-s32max |
| DATA_SOURCE | 0 | addr | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | global &mthca_device_mutex | ||
| HALF_LOCKED2 | &pool->lock |
drivers/xen/events/events_fifo.c clear_page() -> clear_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | addr | 1-u64max |
| PARAM_VALUE | 1 | npages | 1 |
| DATA_SOURCE | 0 | addr | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
mm/memory.c clear_page() -> clear_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | addr | 18379471554275704832,18446612682070032384 |
| PARAM_VALUE | 1 | npages | 1 |
| DATA_SOURCE | 0 | addr | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &mm->mmap_lock | ||
| HALF_LOCKED2 | vmf->ptl |
mm/memory.c clear_user_pages() -> clear_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | addr | 18379471554275704832,18446612682070032384 |
| CAPPED_DATA | 1 | npages | 1 |
| DATA_SOURCE | 0 | addr | $0 |
| DATA_SOURCE | 1 | npages | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &inode->i_rwsem |
drivers/gpu/drm/ttm/ttm_pool.c clear_page() -> clear_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | addr | 18379471554275704832,18446612682070032384 |
| PARAM_VALUE | 1 | npages | 1 |
| DATA_SOURCE | 0 | addr | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
fs/btrfs/free-space-cache.c clear_page() -> clear_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | addr | 18379471554275704832,18446612682070032384 |
| PARAM_VALUE | 1 | npages | 1 |
| DATA_SOURCE | 0 | addr | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &block_group->data_rwsem | ||
| HALF_LOCKED2 | &ctl->cache_writeout_mutex | ||
| HALF_LOCKED2 | &ctl->tree_lock | ||
| HALF_LOCKED2 | &dev_replace->lock_finishing_cancel_unmount | ||
| HALF_LOCKED2 | &fs_info->cleaner_mutex | ||
| HALF_LOCKED2 | &fs_info->reloc_mutex | ||
| HALF_LOCKED2 | &fs_info->subvol_sem | ||
| HALF_LOCKED2 | &fs_info->transaction_kthread_mutex | ||
| HALF_LOCKED2 | &trans->transaction->cache_write_mutex |
fs/gfs2/lops.c clear_page() -> clear_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | addr | 18379471554275704832,18446612682070032384 |
| PARAM_VALUE | 1 | npages | 1 |
| DATA_SOURCE | 0 | addr | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &sdp->sd_log_flush_lock | ||
| TYPE_LOCK | (struct gfs2_sbd)->sd_log_flush_lock |
drivers/md/dm-integrity.c clear_page() -> clear_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | addr | 18379471554275704832,18446612682070032384 |
| PARAM_VALUE | 1 | npages | 1 |
| DATA_SOURCE | 0 | addr | $0 |
| RX_PATH | |||
| NOCHECK_CALL |
drivers/xen/grant-table.c clear_page() -> clear_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | addr | 18379471554275704832,18446612682070032384 |
| PARAM_VALUE | 1 | npages | 1 |
| DATA_SOURCE | 0 | addr | $0 |
| NOCHECK_CALL |
arch/x86/kvm/svm/svm.c clear_page() -> clear_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | npages | 1 |
| DATA_SOURCE | 0 | addr | $0 |
| NOCHECK_CALL |
drivers/xen/balloon.c clear_page() -> clear_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | addr | 18379471554275704832,18446612682070032384 |
| PARAM_VALUE | 1 | npages | 1 |
| DATA_SOURCE | 0 | addr | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | global &balloon_mutex |
drivers/dma-buf/heaps/cma_heap.c cma_heap_allocate() -> clear_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | addr | 18379471554275704832,18446612682070032384 |
| CAPPED_DATA | 1 | npages | 1 |
| NOCHECK_CALL | |||
| USER_DATA | 1 | npages | 0-u32max[c] |
| UNITS | 1 | npages | unit_page |
drivers/infiniband/hw/mthca/mthca_allocator.c clear_page() -> clear_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | addr | 1-ptr_max |
| PARAM_VALUE | 1 | npages | 1 |
| BUF_SIZE | 0 | addr | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | addr | s32min-(-2),1-s32max |
| DATA_SOURCE | 0 | addr | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
mm/khugepaged.c clear_page() -> clear_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | addr | 18379471554275704832,18446612682070032384 |
| PARAM_VALUE | 1 | npages | 1 |
| DATA_SOURCE | 0 | addr | $0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &mm->mmap_lock |
drivers/md/raid5-cache.c clear_page() -> clear_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | addr | 18379471554275704832,18446612682070032384 |
| PARAM_VALUE | 1 | npages | 1 |
| DATA_SOURCE | 0 | addr | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &log->io_mutex |
fs/ocfs2/dlm/dlmrecovery.c clear_page() -> clear_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | npages | 1 |
| BUF_SIZE | 0 | addr | 112-3952,4096 |
| BUF_SIZE | 0 | addr | 112-3952,4096 |
| DATA_SOURCE | 0 | addr | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &pool->lock |
arch/x86/xen/mmu_pv.c clear_page() -> clear_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | npages | 1 |
| CAPPED_DATA | 0 | addr | 1 |
| DATA_SOURCE | 0 | addr | $0 |
| NOCHECK_CALL | |||
| HALF_LOCKED2 | irq |