Defined in 2 files as a prototype:
- arch/powerpc/include/asm/mmu_context.h, line 223 (as a prototype)
- arch/x86/include/asm/mmu_context.h, line 181 (as a prototype)
Defined in 6 files as a macro:
- arch/loongarch/include/asm/mmu_context.h, line 113 (as a macro)
- arch/parisc/include/asm/mmu_context.h, line 77 (as a macro)
- arch/powerpc/include/asm/mmu_context.h, line 235 (as a macro)
- arch/s390/include/asm/mmu_context.h, line 83 (as a macro)
- arch/x86/include/asm/mmu_context.h, line 183 (as a macro)
- include/linux/mmu_context.h, line 10 (as a macro)
Defined in 5 files as a function:
- arch/loongarch/include/asm/mmu_context.h, line 88 (as a function)
- arch/parisc/include/asm/mmu_context.h, line 50 (as a function)
- arch/powerpc/mm/mmu_context.c, line 43 (as a function)
- arch/s390/include/asm/mmu_context.h, line 67 (as a function)
- arch/x86/mm/tlb.c, line 783 (as a function)
Referenced in 12 files:
- arch/loongarch/include/asm/mmu_context.h, line 121
- arch/parisc/include/asm/mmu_context.h, line 74
- arch/parisc/kernel/cache.c, line 458
- arch/powerpc/include/asm/mmu_context.h
- arch/powerpc/lib/code-patching.c
- arch/powerpc/mm/book3s64/radix_tlb.c, line 688
- arch/s390/include/asm/mmu_context.h
- arch/x86/include/asm/mmu_context.h, line 188
- arch/x86/mm/tlb.c
- include/linux/mmu_context.h, line 9
- kernel/kthread.c, line 1637
- kernel/sched/core.c
Smatch caller information:
arch/x86/mm/tlb.c flush_tlb_func() -> switch_mm_irqs_off()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | unused | 0 |
| PARAM_VALUE | 1 | next | 1,4096-7138969414219841535,7138969414219841537-ptr_max |
| PARAM_VALUE | 1 | next->context.global_asid | 1-u16max |
| PARAM_VALUE | 2 | tsk | 0 |
| CAPPED_DATA | 1 | next | 1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 1 | next | unit_byte |
| HALF_LOCKED2 | irq |
arch/x86/mm/tlb.c flush_tlb_func() -> switch_mm_irqs_off()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | unused | 0 |
| PARAM_VALUE | 1 | next | 7138969414219841536 |
| PARAM_VALUE | 2 | tsk | 0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 1 | next | unit_byte |
| HALF_LOCKED2 | irq |
arch/x86/mm/tlb.c switch_mm() -> switch_mm_irqs_off()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | unused | 0 |
| PARAM_VALUE | 1 | next | 7138969414219841536 |
| DATA_SOURCE | 1 | next | $1 |
| DATA_SOURCE | 2 | tsk | $2 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 1 | next | unit_byte |
| LOCK2 | flags |
arch/x86/mm/tlb.c unuse_temporary_mm() -> switch_mm_irqs_off()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | unused | 0 |
| DATA_SOURCE | 1 | next | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | _T->flags | ||
| HALF_LOCKED2 | flags |
arch/x86/mm/tlb.c use_temporary_mm() -> switch_mm_irqs_off()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | unused | 0 |
| PARAM_VALUE | 1 | next | 4096-ptr_max |
| DATA_SOURCE | 1 | next | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | _T->flags | ||
| HALF_LOCKED2 | flags |
kernel/kthread.c kthread_use_mm() -> switch_mm_irqs_off()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | next | 4096-ptr_max |
| PARAM_VALUE | 1 | next->mmap_lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 1 | next->mmap_lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 2 | tsk | 4096-ptr_max |
| PARAM_VALUE | 2 | tsk->active_mm | 4096-ptr_max |
| PARAM_VALUE | 2 | tsk->alloc_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 2 | tsk->mm | 4096-ptr_max |
| DATA_SOURCE | 1 | next | $0 |
| DATA_SOURCE | 2 | tsk | r get_current |
| BIT_INFO | 2 | tsk->flags | 0x0,0xffffffff |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | unused | unit_byte |
| UNITS | 1 | next | unit_byte |
| LOCK2 | irq | ||
| LOCK2 | 2 | &tsk->alloc_lock | |
| HALF_LOCKED2 | &access->ioas_lock | ||
| HALF_LOCKED2 | &iommu->lock | ||
| HALF_LOCKED2 | &iopt->iova_rwsem | ||
| HALF_LOCKED2 | &kvm->arch.xen.shinfo_cache.lock | ||
| HALF_LOCKED2 | &wq->uc_lock | ||
| TYPE_LOCK | (struct task_struct)->alloc_lock |
fs/exec.c exec_mmap() -> switch_mm_irqs_off()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | next | 4096-ptr_max |
| PARAM_VALUE | 1 | next->exe_file | 0,4096-ptr_max |
| PARAM_VALUE | 1 | next->map_count | (-1)-s32max |
| PARAM_VALUE | 1 | next->mm_cid.lock.magic | 3735899821 |
| PARAM_VALUE | 1 | next->mm_cid.lock.owner | (-1) |
| PARAM_VALUE | 1 | next->mm_cid.lock.owner_cpu | u32max |
| PARAM_VALUE | 1 | next->mm_cid.mutex.magic | 4096-ptr_max |
| PARAM_VALUE | 1 | next->mmap_lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 1 | next->stack_vm | 1 |
| PARAM_VALUE | 1 | next->total_vm | 1 |
| PARAM_VALUE | 2 | tsk | 0 |
| PREEMPT_ADD | <- disables preempt | ||
| NOCHECK_CALL | |||
| UNITS | 0 | unused | unit_byte |
| LOCK2 | &tsk->alloc_lock | ||
| LOCK2 | &tsk->signal->exec_update_lock | ||
| LOCK2 | irq | ||
| HALF_LOCKED2 | &old_mm->mmap_lock | ||
| TYPE_LOCK | (struct signal_struct)->exec_update_lock | ||
| TYPE_LOCK | (struct task_struct)->alloc_lock |
kernel/sched/core.c context_switch() -> switch_mm_irqs_off()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | next | 1-u64max |
| PARAM_VALUE | 2 | tsk | 4096-ptr_max |
| PARAM_VALUE | 2 | tsk->mm | 1-u64max |
| PARAM_VALUE | 2 | tsk->on_cpu | 1 |
| PARAM_VALUE | 2 | tsk->perf_event_ctxp | 0,4096-ptr_max |
| PARAM_VALUE | 2 | tsk->perf_event_ctxp->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 2 | tsk->perf_event_ctxp->lock.owner | (-1) |
| PARAM_VALUE | 2 | tsk->perf_event_ctxp->lock.owner_cpu | u32max |
| PARAM_VALUE | 2 | tsk->perf_event_ctxp->pin_count | 0 |
| PARAM_VALUE | 2 | tsk->perf_event_ctxp->task | 4096-ptr_max |
| PARAM_VALUE | 2 | tsk->perf_event_ctxp->task->kcov_mode | 0,1073741824-u32max |
| PARAM_VALUE | 2 | tsk->perf_event_ctxp->task->perf_event_ctxp | 4096-ptr_max |
| PARAM_VALUE | 2 | tsk->sched_class->balance | 0,4895810773273071616,6490409225490120704,7260575883162300416,8638459336928428032 |
| PARAM_VALUE | 2 | tsk->sched_class->dequeue_task | 0,144070366336110592,1947835499009560576,6189267449403002880,6455432424639717376,6899636822736904192 |
| PARAM_VALUE | 2 | tsk->sched_class->enqueue_task | 0,126196709549080576,1834828045319467008,6555940243012698112,7779016139136778240 |
| PARAM_VALUE | 2 | tsk->sched_class->find_lock_rq | 0,1330506845949976576,2186316422496772096 |
| PARAM_VALUE | 2 | tsk->sched_class->get_prio | 0,5589494719909007360 |
| PARAM_VALUE | 2 | tsk->sched_class->get_rr_interval | 0,160577115725877248,8566262156424376320 |
| PARAM_VALUE | 2 | tsk->sched_class->migrate_task_rq | 0,1111187247153754112,4715741308934107136 |
| PARAM_VALUE | 2 | tsk->sched_class->pick_task | 0,431140902756892672,1158575681758597120,5720692379550740480,7102393387566546944,7601726578106748928 |
| PARAM_VALUE | 2 | tsk->sched_class->prio_changed | 0,1146300274019463168,2737281516638617600,4228469244769832960,6494577740674654208,7383617159121645568 |
| PARAM_VALUE | 2 | tsk->sched_class->put_prev_task | 0,879997059321819136,2104802920512651264,3309484659987406848,4521943768044347392,6061791611826737152 |
| PARAM_VALUE | 2 | tsk->sched_class->reweight_task | 0,5264859755264851968 |
| PARAM_VALUE | 2 | tsk->sched_class->rq_offline | 0,1273389266380275712,3746302679399247872,7992910395761221632 |
| PARAM_VALUE | 2 | tsk->sched_class->rq_online | 0,1603218695044562944,3838970304731508736,6105480162315575296 |
| PARAM_VALUE | 2 | tsk->sched_class->select_task_rq | 0,819017430815793152,1774144038744014848,2097362150474280960,8429637501012336640,8680431057181843456 |
| PARAM_VALUE | 2 | tsk->sched_class->set_cpus_allowed | 0,1927640468783054848,5094656021401329664,7127180339355369472 |
| PARAM_VALUE | 2 | tsk->sched_class->set_next_task | 0,2315212163512696832,4028699749262393344,4361835877848195072,6461874264613330944,8232387521787854848 |
| PARAM_VALUE | 2 | tsk->sched_class->switched_from | 0,6932178706407411712,8530452231382753280,8897597262779232256 |
| PARAM_VALUE | 2 | tsk->sched_class->switched_to | 0,5165838827171962880,5857971317054578688,7142770315824652288 |
| PARAM_VALUE | 2 | tsk->sched_class->switching_from | 0,2762873923526262784 |
| PARAM_VALUE | 2 | tsk->sched_class->switching_to | 0,1207858565835722752,6355784522873475072 |
| PARAM_VALUE | 2 | tsk->sched_class->task_change_group | 0,7251702690162270208 |
| PARAM_VALUE | 2 | tsk->sched_class->task_dead | 0,6742757381008068608 |
| PARAM_VALUE | 2 | tsk->sched_class->task_fork | 0,1181151505743122432,6092562452304658432 |
| PARAM_VALUE | 2 | tsk->sched_class->task_is_throttled | 0,626302238049026048,4879098428662644736,6508522699847725056 |
| PARAM_VALUE | 2 | tsk->sched_class->task_tick | 0,1093040616512942080,4602209053340655616,5021036204559331328,6268546278195412992,7031988722367209472 |
| PARAM_VALUE | 2 | tsk->sched_class->task_woken | 0,4090974917235912704,4284209241675612160 |
| PARAM_VALUE | 2 | tsk->sched_class->uclamp_enabled | 0-1 |
| PARAM_VALUE | 2 | tsk->sched_class->update_curr | 0,2420086066110373888,2446272091500916736,2561397482238263296,2943871782664327168,8139140255186919424 |
| PARAM_VALUE | 2 | tsk->sched_class->wakeup_preempt | 0,1077039320164851712,1147033115188453376,2990157993661198336,6476960569952718848,6679893776262037504 |
| PARAM_VALUE | 2 | tsk->sched_class->yield_task | 0,2190573298372911104,3192817945493614592,3256919456170586112,7456815790656131072 |
| PARAM_VALUE | 2 | tsk->sched_class->yield_to_task | 0,3940359203731251200 |
| PARAM_VALUE | 2 | tsk->sched_info.last_queued | 0 |
| PARAM_VALUE | 2 | tsk->sched_info.max_run_delay | 1-u64max |
| PARAM_VALUE | 2 | tsk->sched_info.max_run_delay_ts.tv_nsec | 0-999999999 |
| PARAM_VALUE | 2 | tsk->sched_info.min_run_delay | 1-u64max |
| CAPPED_DATA | 1 | next | 1 |
| CAPPED_DATA | 2 | tsk | 1 |
| CAPPED_DATA | 2 | tsk->mm | 1 |
| DATA_SOURCE | 2 | tsk | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | unused | unit_byte |
| UNITS | 1 | next | unit_byte |
| UNITS | 2 | tsk | unit_byte |
| LOCK2 | irq |
kernel/sched/core.c sched_force_init_mm() -> switch_mm_irqs_off()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | unused | 0-7138969414219841535,7138969414219841537-u64max |
| PARAM_VALUE | 1 | next | 7138969414219841536 |
| PARAM_COMPARE | 0 | unused | != $1 |
| PARAM_COMPARE | 1 | next | != $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | unused | unit_byte |
| UNITS | 1 | next | unit_byte |
| LOCK2 | irq | ||
| HALF_LOCKED2 | global &cpuhp_state_mutex |