Home
last modified time | relevance | path

Searched refs:WARN_ON_ONCE (Results 1 – 25 of 1816) sorted by relevance

12345678910>>...73

/Linux-v6.6/kernel/
Dcontext_tracking.c93 WARN_ON_ONCE(IS_ENABLED(CONFIG_RCU_EQS_DEBUG) && (seq & RCU_DYNTICKS_IDX)); in ct_kernel_exit_state()
113 WARN_ON_ONCE(IS_ENABLED(CONFIG_RCU_EQS_DEBUG) && !(seq & RCU_DYNTICKS_IDX)); in ct_kernel_enter_state()
128 WARN_ON_ONCE(ct_dynticks_nmi_nesting() != DYNTICK_IRQ_NONIDLE); in ct_kernel_exit()
130 WARN_ON_ONCE(IS_ENABLED(CONFIG_RCU_EQS_DEBUG) && in ct_kernel_exit()
141 WARN_ON_ONCE(IS_ENABLED(CONFIG_RCU_EQS_DEBUG) && !user && !is_idle_task(current)); in ct_kernel_exit()
168 WARN_ON_ONCE(IS_ENABLED(CONFIG_RCU_EQS_DEBUG) && !raw_irqs_disabled()); in ct_kernel_enter()
170 WARN_ON_ONCE(IS_ENABLED(CONFIG_RCU_EQS_DEBUG) && oldval < 0); in ct_kernel_enter()
186 WARN_ON_ONCE(IS_ENABLED(CONFIG_RCU_EQS_DEBUG) && !user && !is_idle_task(current)); in ct_kernel_enter()
188 WARN_ON_ONCE(ct_dynticks_nmi_nesting()); in ct_kernel_enter()
214 WARN_ON_ONCE(ct_dynticks_nmi_nesting() <= 0); in ct_nmi_exit()
[all …]
Dkthread.c115 if (WARN_ON_ONCE(to_kthread(p))) in set_kthread_struct()
142 WARN_ON_ONCE(kthread->blkcg_css); in free_kthread_struct()
593 WARN_ON_ONCE(!(k->flags & PF_NO_SETAFFINITY)); in kthread_set_per_cpu()
659 if (WARN_ON_ONCE(test_bit(KTHREAD_SHOULD_PARK, &kthread->flags))) in kthread_park()
674 WARN_ON_ONCE(!wait_task_inactive(k, TASK_PARKED)); in kthread_park()
963 WARN_ON_ONCE(!list_empty(&work->node)); in kthread_insert_work_sanity_check()
965 WARN_ON_ONCE(work->worker && work->worker != worker); in kthread_insert_work_sanity_check()
1030 if (WARN_ON_ONCE(!worker)) in kthread_delayed_work_timer_fn()
1035 WARN_ON_ONCE(work->worker != worker); in kthread_delayed_work_timer_fn()
1038 WARN_ON_ONCE(list_empty(&work->node)); in kthread_delayed_work_timer_fn()
[all …]
Dfreezer.c69 WARN_ON_ONCE(state && !(state & TASK_NORMAL)); in __refrigerator()
122 WARN_ON_ONCE(!(state & TASK_NORMAL)); in __set_task_frozen()
129 WARN_ON_ONCE(debug_locks && p->lockdep_depth); in __set_task_frozen()
199 if (WARN_ON_ONCE(freezing(p))) in __thaw_task()
/Linux-v6.6/kernel/rcu/
Dsync.c78 WARN_ON_ONCE(READ_ONCE(rsp->gp_state) == GP_IDLE); in rcu_sync_func()
79 WARN_ON_ONCE(READ_ONCE(rsp->gp_state) == GP_PASSED); in rcu_sync_func()
129 WARN_ON_ONCE(rsp->gp_count); in rcu_sync_enter()
170 WARN_ON_ONCE(READ_ONCE(rsp->gp_state) == GP_IDLE); in rcu_sync_exit()
171 WARN_ON_ONCE(READ_ONCE(rsp->gp_count) == 0); in rcu_sync_exit()
193 WARN_ON_ONCE(READ_ONCE(rsp->gp_count)); in rcu_sync_dtor()
194 WARN_ON_ONCE(READ_ONCE(rsp->gp_state) == GP_PASSED); in rcu_sync_dtor()
204 WARN_ON_ONCE(rsp->gp_state != GP_IDLE); in rcu_sync_dtor()
Dtree_plugin.h161 WARN_ON_ONCE(rdp->mynode != rnp); in rcu_preempt_ctxt_queue()
162 WARN_ON_ONCE(!rcu_is_leaf_node(rnp)); in rcu_preempt_ctxt_queue()
164 WARN_ON_ONCE(rnp->qsmaskinitnext & ~rnp->qsmaskinit & rnp->qsmask & in rcu_preempt_ctxt_queue()
233 WARN_ON_ONCE(1); in rcu_preempt_ctxt_queue()
245 WARN_ON_ONCE(rnp->completedqs == rnp->gp_seq); in rcu_preempt_ctxt_queue()
249 WARN_ON_ONCE(!(blkd_state & RCU_GP_BLKD) != in rcu_preempt_ctxt_queue()
251 WARN_ON_ONCE(!(blkd_state & RCU_EXP_BLKD) != in rcu_preempt_ctxt_queue()
266 WARN_ON_ONCE(rdp->cpu_no_qs.b.exp); in rcu_preempt_ctxt_queue()
335 WARN_ON_ONCE(!rcu_rdp_cpu_online(rdp)); in rcu_note_context_switch()
336 WARN_ON_ONCE(!list_empty(&t->rcu_node_entry)); in rcu_note_context_switch()
[all …]
Dtree_nocb.h104 WARN_ON_ONCE(smp_processor_id() != rdp->cpu); in rcu_nocb_bypass_lock()
123 WARN_ON_ONCE(smp_processor_id() != rdp->cpu); in rcu_nocb_wait_contended()
124 while (WARN_ON_ONCE(atomic_read(&rdp->nocb_lock_contended))) in rcu_nocb_wait_contended()
336 WARN_ON_ONCE(!rcu_rdp_is_offloaded(rdp)); in rcu_nocb_do_flush_bypass()
394 WARN_ON_ONCE(!rcu_nocb_do_flush_bypass(rdp, NULL, j, false)); in rcu_nocb_try_flush_bypass()
445 WARN_ON_ONCE(rcu_cblist_n_cbs(&rdp->nocb_bypass)); in rcu_nocb_try_bypass()
476 WARN_ON_ONCE(!rcu_nocb_flush_bypass(rdp, NULL, j, false)); in rcu_nocb_try_bypass()
477 WARN_ON_ONCE(rcu_cblist_n_cbs(&rdp->nocb_bypass)); in rcu_nocb_try_bypass()
494 WARN_ON_ONCE(rcu_cblist_n_cbs(&rdp->nocb_bypass)); in rcu_nocb_try_bypass()
656 WARN_ON_ONCE(1); in nocb_gp_toggle_rdp()
[all …]
/Linux-v6.6/drivers/gpu/drm/vc4/
Dvc4_perfmon.c26 if (WARN_ON_ONCE(vc4->is_vc5)) in vc4_perfmon_get()
40 if (WARN_ON_ONCE(vc4->is_vc5)) in vc4_perfmon_put()
52 if (WARN_ON_ONCE(vc4->is_vc5)) in vc4_perfmon_start()
55 if (WARN_ON_ONCE(!perfmon || vc4->active_perfmon)) in vc4_perfmon_start()
72 if (WARN_ON_ONCE(vc4->is_vc5)) in vc4_perfmon_stop()
75 if (WARN_ON_ONCE(!vc4->active_perfmon || in vc4_perfmon_stop()
93 if (WARN_ON_ONCE(vc4->is_vc5)) in vc4_perfmon_find()
108 if (WARN_ON_ONCE(vc4->is_vc5)) in vc4_perfmon_open_file()
129 if (WARN_ON_ONCE(vc4->is_vc5)) in vc4_perfmon_close_file()
149 if (WARN_ON_ONCE(vc4->is_vc5)) in vc4_perfmon_create_ioctl()
[all …]
/Linux-v6.6/security/landlock/
Druleset.c82 if (WARN_ON_ONCE(num_layers >= LANDLOCK_MAX_NUM_LAYERS)) in create_rule()
156 if (WARN_ON_ONCE(!object || !layers)) in insert_rule()
173 if (WARN_ON_ONCE(num_layers != 1)) in insert_rule()
182 if (WARN_ON_ONCE(this->num_layers != 1)) in insert_rule()
184 if (WARN_ON_ONCE(this->layers[0].level != 0)) in insert_rule()
190 if (WARN_ON_ONCE(this->layers[0].level == 0)) in insert_rule()
269 if (WARN_ON_ONCE(!src)) in merge_ruleset()
272 if (WARN_ON_ONCE(!dst || !dst->hierarchy)) in merge_ruleset()
280 if (WARN_ON_ONCE(src->num_layers != 1 || dst->num_layers < 1)) { in merge_ruleset()
293 if (WARN_ON_ONCE(walker_rule->num_layers != 1)) { in merge_ruleset()
[all …]
/Linux-v6.6/fs/notify/fanotify/
Dfanotify.h110 WARN_ON_ONCE(info->dir_fh_totlen < FANOTIFY_FH_HDR_LEN)) in fanotify_info_dir_fh_len()
126 WARN_ON_ONCE(info->dir2_fh_totlen < FANOTIFY_FH_HDR_LEN)) in fanotify_info_dir2_fh_len()
140 WARN_ON_ONCE(info->file_fh_totlen < FANOTIFY_FH_HDR_LEN)) in fanotify_info_file_fh_len()
183 if (WARN_ON_ONCE(info->dir2_fh_totlen > 0) || in fanotify_info_set_dir_fh()
184 WARN_ON_ONCE(info->file_fh_totlen > 0) || in fanotify_info_set_dir_fh()
185 WARN_ON_ONCE(info->name_len > 0) || in fanotify_info_set_dir_fh()
186 WARN_ON_ONCE(info->name2_len > 0)) in fanotify_info_set_dir_fh()
195 if (WARN_ON_ONCE(info->file_fh_totlen > 0) || in fanotify_info_set_dir2_fh()
196 WARN_ON_ONCE(info->name_len > 0) || in fanotify_info_set_dir2_fh()
197 WARN_ON_ONCE(info->name2_len > 0)) in fanotify_info_set_dir2_fh()
[all …]
/Linux-v6.6/arch/powerpc/kernel/
Dirq_64.c107 WARN_ON_ONCE(mfmsr() & MSR_EE); in __replay_soft_interrupts()
217 WARN_ON_ONCE(in_nmi()); in arch_local_irq_restore()
218 WARN_ON_ONCE(in_hardirq()); in arch_local_irq_restore()
219 WARN_ON_ONCE(local_paca->irq_happened & PACA_IRQ_REPLAYING); in arch_local_irq_restore()
247 WARN_ON_ONCE(!(mfmsr() & MSR_EE)); in arch_local_irq_restore()
260 WARN_ON_ONCE(!irq_happened); in arch_local_irq_restore()
264 WARN_ON_ONCE(mfmsr() & MSR_EE); in arch_local_irq_restore()
283 WARN_ON_ONCE(!(irq_happened & PACA_IRQ_HARD_DIS)); in arch_local_irq_restore()
290 if (WARN_ON_ONCE(mfmsr() & MSR_EE)) in arch_local_irq_restore()
/Linux-v6.6/kernel/time/
Dclocksource-wdtest.c118 WARN_ON_ONCE(clocksource_wdtest_jiffies.uncertainty_margin != TICK_NSEC); in wdtest_func()
123 WARN_ON_ONCE(j1 == j2); in wdtest_func()
133 WARN_ON_ONCE(clocksource_wdtest_ktime.uncertainty_margin < NSEC_PER_USEC); in wdtest_func()
139 WARN_ON_ONCE(time_before(j2, j1 + NSEC_PER_USEC)); in wdtest_func()
152 WARN_ON_ONCE(READ_ONCE(wdtest_ktime_read_ndelays)); in wdtest_func()
153 WARN_ON_ONCE((i <= max_cswd_read_retries) != in wdtest_func()
162 WARN_ON_ONCE(!(clocksource_wdtest_ktime.flags & CLOCK_SOURCE_UNSTABLE)); in wdtest_func()
/Linux-v6.6/kernel/sched/
Didle.c30 WARN_ON_ONCE(cpu_idle_force_poll < 0); in cpu_idle_poll_ctrl()
228 if (WARN_ON_ONCE(irqs_disabled())) in cpuidle_idle_call()
345 WARN_ON_ONCE(current->policy != SCHED_FIFO); in play_idle_precise()
346 WARN_ON_ONCE(current->nr_cpus_allowed != 1); in play_idle_precise()
347 WARN_ON_ONCE(!(current->flags & PF_KTHREAD)); in play_idle_precise()
348 WARN_ON_ONCE(!(current->flags & PF_NO_SETAFFINITY)); in play_idle_precise()
349 WARN_ON_ONCE(!duration_ns); in play_idle_precise()
350 WARN_ON_ONCE(current->mm); in play_idle_precise()
397 return WARN_ON_ONCE(1); in balance_idle()
/Linux-v6.6/io_uring/
Drefs.h16 WARN_ON_ONCE(!(req->flags & REQ_F_REFCOUNT)); in req_ref_inc_not_zero()
25 WARN_ON_ONCE(req_ref_zero_or_close_to_overflow(req)); in req_ref_put_and_test()
31 WARN_ON_ONCE(!(req->flags & REQ_F_REFCOUNT)); in req_ref_get()
32 WARN_ON_ONCE(req_ref_zero_or_close_to_overflow(req)); in req_ref_get()
/Linux-v6.6/arch/x86/include/asm/
Dentry-common.h31 WARN_ON_ONCE(flags & mask); in arch_enter_from_user_mode()
34 WARN_ON_ONCE(!user_mode(regs)); in arch_enter_from_user_mode()
41 WARN_ON_ONCE(!on_thread_stack()); in arch_enter_from_user_mode()
42 WARN_ON_ONCE(regs != task_pt_regs(current)); in arch_enter_from_user_mode()
/Linux-v6.6/fs/iomap/
Diter.c32 if (WARN_ON_ONCE(iter->processed > iomap_length(iter))) in iomap_iter_advance()
49 WARN_ON_ONCE(iter->iomap.offset > iter->pos); in iomap_iter_done()
50 WARN_ON_ONCE(iter->iomap.length == 0); in iomap_iter_done()
51 WARN_ON_ONCE(iter->iomap.offset + iter->iomap.length <= iter->pos); in iomap_iter_done()
52 WARN_ON_ONCE(iter->iomap.flags & IOMAP_F_STALE); in iomap_iter_done()
/Linux-v6.6/fs/crypto/
Dcrypto.c88 WARN_ON_ONCE(lblk_num > U32_MAX); in fscrypt_generate_iv()
89 WARN_ON_ONCE(ci->ci_inode->i_ino > U32_MAX); in fscrypt_generate_iv()
92 WARN_ON_ONCE(lblk_num > U32_MAX); in fscrypt_generate_iv()
114 if (WARN_ON_ONCE(len <= 0)) in fscrypt_crypt_block()
116 if (WARN_ON_ONCE(len % FSCRYPT_CONTENTS_ALIGNMENT != 0)) in fscrypt_crypt_block()
187 if (WARN_ON_ONCE(!PageLocked(page))) in fscrypt_encrypt_pagecache_blocks()
190 if (WARN_ON_ONCE(len <= 0 || !IS_ALIGNED(len | offs, blocksize))) in fscrypt_encrypt_pagecache_blocks()
265 if (WARN_ON_ONCE(!folio_test_locked(folio))) in fscrypt_decrypt_pagecache_blocks()
268 if (WARN_ON_ONCE(len <= 0 || !IS_ALIGNED(len | offs, blocksize))) in fscrypt_decrypt_pagecache_blocks()
/Linux-v6.6/scripts/coccinelle/misc/
Dwarn.cocci71 WARN_ON_ONCE(1);
78 *WARN_ON_ONCE(1);
84 cocci.print_main("printk + WARN_ON_ONCE can be just WARN_ONCE",p)
90 msg = "SUGGESTION: printk + WARN_ON_ONCE can be just WARN_ONCE"
101 -WARN_ON_ONCE(1);
/Linux-v6.6/arch/powerpc/sysdev/xics/
Dicp-hv.c33 WARN_ON_ONCE(1); in icp_hv_get_xirr()
45 WARN_ON_ONCE(1); in icp_hv_set_cppr()
55 WARN_ON_ONCE(1); in icp_hv_set_xirr()
71 WARN_ON_ONCE(1); in icp_hv_set_qirr()
/Linux-v6.6/kernel/bpf/
Dbpf_task_storage.c106 WARN_ON_ONCE(!rcu_read_lock_held()); in bpf_pid_task_storage_lookup_elem()
140 WARN_ON_ONCE(!rcu_read_lock_held()); in bpf_pid_task_storage_update_elem()
191 WARN_ON_ONCE(!rcu_read_lock_held()); in bpf_pid_task_storage_delete_elem()
236 WARN_ON_ONCE(!bpf_rcu_lock_held()); in BPF_CALL_5()
254 WARN_ON_ONCE(!bpf_rcu_lock_held()); in BPF_CALL_5()
271 WARN_ON_ONCE(!bpf_rcu_lock_held()); in BPF_CALL_2()
291 WARN_ON_ONCE(!bpf_rcu_lock_held()); in BPF_CALL_2()
/Linux-v6.6/include/linux/
Dsrcu.h270 WARN_ON_ONCE(in_nmi()); in srcu_down_read()
285 WARN_ON_ONCE(idx & ~0x1); in srcu_read_unlock()
301 WARN_ON_ONCE(idx & ~0x1); in srcu_read_unlock_nmisafe()
326 WARN_ON_ONCE(idx & ~0x1); in srcu_up_read()
327 WARN_ON_ONCE(in_nmi()); in srcu_up_read()
/Linux-v6.6/kernel/livepatch/
Dtransition.c132 WARN_ON_ONCE(test_tsk_thread_flag(task, TIF_PATCH_PENDING)); in klp_complete_transition()
139 WARN_ON_ONCE(test_tsk_thread_flag(task, TIF_PATCH_PENDING)); in klp_complete_transition()
167 if (WARN_ON_ONCE(klp_target_state != KLP_PATCHED)) in klp_cancel_transition()
458 WARN_ON_ONCE(klp_target_state == KLP_UNDEFINED); in klp_try_complete_transition()
535 WARN_ON_ONCE(klp_target_state == KLP_UNDEFINED); in klp_start_transition()
581 WARN_ON_ONCE(klp_target_state != KLP_UNDEFINED); in klp_init_transition()
600 WARN_ON_ONCE(task->patch_state != KLP_UNDEFINED); in klp_init_transition()
610 WARN_ON_ONCE(task->patch_state != KLP_UNDEFINED); in klp_init_transition()
/Linux-v6.6/mm/
Dhighmem.c162 if (WARN_ON_ONCE(addr >= PKMAP_ADDR(0) && in __kmap_to_page()
167 if (WARN_ON_ONCE(base >= __fix_to_virt(FIX_KMAP_END) && in __kmap_to_page()
466 WARN_ON_ONCE(in_hardirq() && !irqs_disabled()); in kmap_local_idx_push()
595 WARN_ON_ONCE(1); in kunmap_local_indexed()
605 WARN_ON_ONCE(addr < PAGE_OFFSET); in kunmap_local_indexed()
611 WARN_ON_ONCE(addr != __fix_to_virt(FIX_KMAP_BEGIN + idx)); in kunmap_local_indexed()
648 WARN_ON_ONCE(pte_val(pteval) != 0); in __kmap_local_sched_out()
651 if (WARN_ON_ONCE(pte_none(pteval))) in __kmap_local_sched_out()
685 WARN_ON_ONCE(pte_val(pteval) != 0); in __kmap_local_sched_in()
688 if (WARN_ON_ONCE(pte_none(pteval))) in __kmap_local_sched_in()
[all …]
/Linux-v6.6/arch/arm64/kernel/
Dperf_regs.c16 if (WARN_ON_ONCE(!system_supports_sve())) in perf_ext_regs_value()
25 WARN_ON_ONCE(true); in perf_ext_regs_value()
32 if (WARN_ON_ONCE((u32)idx >= PERF_REG_ARM64_EXTENDED_MAX)) in perf_reg_value()
/Linux-v6.6/block/
Dholder.c65 if (WARN_ON_ONCE(!disk->slave_dir)) in bd_link_disk_holder()
84 WARN_ON_ONCE(!bdev->bd_holder); in bd_link_disk_holder()
140 if (WARN_ON_ONCE(!disk->slave_dir)) in bd_unlink_disk_holder()
145 if (!WARN_ON_ONCE(holder == NULL) && !--holder->refcnt) { in bd_unlink_disk_holder()
/Linux-v6.6/arch/powerpc/mm/
Dpageattr.c57 WARN_ON_ONCE(1); in change_page_attr()
78 if (WARN_ON_ONCE(is_vmalloc_or_module_addr((void *)addr) && in change_memory_attr()
92 if (WARN_ON_ONCE(region != VMALLOC_REGION_ID && region != IO_REGION_ID)) in change_memory_attr()

12345678910>>...73