Home
last modified time | relevance | path

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

12345678910>>...84

/linux-6.15/io_uring/
H A Drefs.h16 WARN_ON_ONCE(!(req->flags & REQ_F_REFCOUNT)); in req_ref_inc_not_zero()
22 WARN_ON_ONCE(!(data_race(req->flags) & REQ_F_REFCOUNT)); in req_ref_put_and_test_atomic()
23 WARN_ON_ONCE(req_ref_zero_or_close_to_overflow(req)); in req_ref_put_and_test_atomic()
32 WARN_ON_ONCE(req_ref_zero_or_close_to_overflow(req)); in req_ref_put_and_test()
38 WARN_ON_ONCE(!(req->flags & REQ_F_REFCOUNT)); in req_ref_get()
39 WARN_ON_ONCE(req_ref_zero_or_close_to_overflow(req)); in req_ref_get()
45 WARN_ON_ONCE(!(req->flags & REQ_F_REFCOUNT)); in req_ref_put()
46 WARN_ON_ONCE(req_ref_zero_or_close_to_overflow(req)); in req_ref_put()
/linux-6.15/security/landlock/
H A Daudit.c57 WARN_ON_ONCE(access_bit != -1); in get_blocker()
61 WARN_ON_ONCE(access_bit != -1); in get_blocker()
75 WARN_ON_ONCE(access_bit != -1); in get_blocker()
79 WARN_ON_ONCE(access_bit != -1); in get_blocker()
83 WARN_ON_ONCE(1); in get_blocker()
118 WARN_ON_ONCE(hierarchy->id == 0); in log_domain()
142 if (WARN_ON_ONCE(layer >= domain->num_layers)) in get_hierarchy()
146 if (WARN_ON_ONCE(!hierarchy->parent)) in get_hierarchy()
364 if (WARN_ON_ONCE(!(!!request->layer_masks ^ in is_valid_request()
368 if (WARN_ON_ONCE(request->layer_masks || in is_valid_request()
[all …]
H A Druleset.c101 WARN_ON_ONCE(1); in is_object_pointer()
130 WARN_ON_ONCE(!id.key.object); in create_rule()
158 WARN_ON_ONCE(1); in get_root()
215 if (WARN_ON_ONCE(!layers)) in insert_rule()
240 if (WARN_ON_ONCE(num_layers != 1)) in insert_rule()
249 if (WARN_ON_ONCE(this->num_layers != 1)) in insert_rule()
257 if (WARN_ON_ONCE(this->layers[0].level == 0)) in insert_rule()
361 if (WARN_ON_ONCE(!src)) in merge_ruleset()
364 if (WARN_ON_ONCE(!dst || !dst->hierarchy)) in merge_ruleset()
462 if (WARN_ON_ONCE(!parent->hierarchy)) { in inherit_ruleset()
[all …]
H A Ddomain.c62 if (WARN_ON_ONCE(IS_ERR(exe))) in get_current_exe()
67 if (WARN_ON_ONCE(size <= 0)) in get_current_exe()
143 WARN_ON_ONCE(all_existing_optional_access != in get_layer_deny_mask()
146 if (WARN_ON_ONCE(layer >= LANDLOCK_MAX_NUM_LAYERS)) in get_layer_deny_mask()
151 if (WARN_ON_ONCE(access_weight < 1)) in get_layer_deny_mask()
193 WARN_ON_ONCE(access_opt != in landlock_get_deny_masks()
196 if (WARN_ON_ONCE(!layer_masks)) in landlock_get_deny_masks()
199 if (WARN_ON_ONCE(!access_opt)) in landlock_get_deny_masks()
H A Dsetup.c48 WARN_ON_ONCE(1); in compute_errata()
55 if (WARN_ON_ONCE(landlock_errata_init[i].abi > in compute_errata()
60 WARN_ON_ONCE(prev_errata == landlock_errata); in compute_errata()
/linux-6.15/kernel/
H A Dcontext_tracking.c127 WARN_ON_ONCE(ct_nmi_nesting() != CT_NESTING_IRQ_NONIDLE); in ct_kernel_exit()
129 WARN_ON_ONCE(IS_ENABLED(CONFIG_RCU_EQS_DEBUG) && in ct_kernel_exit()
167 WARN_ON_ONCE(IS_ENABLED(CONFIG_RCU_EQS_DEBUG) && !raw_irqs_disabled()); in ct_kernel_enter()
169 WARN_ON_ONCE(IS_ENABLED(CONFIG_RCU_EQS_DEBUG) && oldval < 0); in ct_kernel_enter()
187 WARN_ON_ONCE(ct_nmi_nesting()); in ct_kernel_enter()
213 WARN_ON_ONCE(ct_nmi_nesting() <= 0); in ct_nmi_exit()
214 WARN_ON_ONCE(!rcu_is_watching_curr_cpu()); in ct_nmi_exit()
263 WARN_ON_ONCE(ct_nmi_nesting() < 0); in ct_nmi_enter()
318 WARN_ON_ONCE(IS_ENABLED(CONFIG_RCU_EQS_DEBUG) && !raw_irqs_disabled()); in ct_idle_enter()
473 WARN_ON_ONCE(!current->mm); in __ct_user_enter()
[all …]
H A Dkthread.c123 if (WARN_ON_ONCE(to_kthread(p))) in set_kthread_struct()
153 WARN_ON_ONCE(kthread->blkcg_css); in free_kthread_struct()
390 WARN_ON_ONCE(1); in kthread_affine_node()
620 WARN_ON_ONCE(kthread->started); in kthread_bind_mask()
636 WARN_ON_ONCE(kthread->started); in kthread_bind()
1219 if (WARN_ON_ONCE(!worker)) in kthread_delayed_work_timer_fn()
1224 WARN_ON_ONCE(work->worker != worker); in kthread_delayed_work_timer_fn()
1333 WARN_ON_ONCE(work->worker != worker); in kthread_flush_work()
1444 WARN_ON_ONCE(work->worker != worker); in kthread_mod_delayed_work()
1605 WARN_ON_ONCE(tsk->mm); in kthread_use_mm()
[all …]
H A Djump_label.c203 WARN_ON_ONCE(atomic_read(&key->enabled) != 1); in static_key_enable_cpuslocked()
234 WARN_ON_ONCE(atomic_read(&key->enabled) != 0); in static_key_disable_cpuslocked()
276 WARN_ON_ONCE(v < 0); in static_key_dec_not_one()
282 if (WARN_ON_ONCE(v == 0)) in static_key_dec_not_one()
306 if (WARN_ON_ONCE(val == -1)) in __static_key_slow_dec_cpuslocked()
311 if (WARN_ON_ONCE(val == 0)) in __static_key_slow_dec_cpuslocked()
411 WARN_ON_ONCE(key->type & JUMP_TYPE_LINKED); in static_key_entries()
449 WARN_ON_ONCE((unsigned long)entries & JUMP_TYPE_MASK); in static_key_set_entries()
588 if (WARN_ON_ONCE(!static_key_initialized)) in jump_label_init_ro()
630 WARN_ON_ONCE(!static_key_linked(key)); in static_key_mod()
[all …]
/linux-6.15/kernel/rcu/
H A Dsync.c62 WARN_ON_ONCE(READ_ONCE(rsp->gp_state) == GP_IDLE); in rcu_sync_func()
63 WARN_ON_ONCE(READ_ONCE(rsp->gp_state) == GP_PASSED); in rcu_sync_func()
113 WARN_ON_ONCE(rsp->gp_count); in rcu_sync_enter()
154 WARN_ON_ONCE(READ_ONCE(rsp->gp_state) == GP_IDLE); in rcu_sync_exit()
157 WARN_ON_ONCE(rsp->gp_count == 0); in rcu_sync_exit()
177 WARN_ON_ONCE(READ_ONCE(rsp->gp_state) == GP_PASSED); in rcu_sync_dtor()
180 WARN_ON_ONCE(rsp->gp_count); in rcu_sync_dtor()
188 WARN_ON_ONCE(rsp->gp_state != GP_IDLE); in rcu_sync_dtor()
H A Dtree_plugin.h172 WARN_ON_ONCE(rdp->mynode != rnp); in rcu_preempt_ctxt_queue()
173 WARN_ON_ONCE(!rcu_is_leaf_node(rnp)); in rcu_preempt_ctxt_queue()
244 WARN_ON_ONCE(1); in rcu_preempt_ctxt_queue()
260 WARN_ON_ONCE(!(blkd_state & RCU_GP_BLKD) != in rcu_preempt_ctxt_queue()
277 WARN_ON_ONCE(rdp->cpu_no_qs.b.exp); in rcu_preempt_ctxt_queue()
347 WARN_ON_ONCE(!rcu_rdp_cpu_online(rdp)); in rcu_note_context_switch()
531 WARN_ON_ONCE(rnp != t->rcu_blocked_node); in rcu_preempt_deferred_qs_irqrestore()
532 WARN_ON_ONCE(!rcu_is_leaf_node(rnp)); in rcu_preempt_deferred_qs_irqrestore()
721 WARN_ON_ONCE(rnp->qsmask); in rcu_preempt_check_blocked_tasks()
978 WARN_ON_ONCE(rnp->qsmask); in rcu_preempt_check_blocked_tasks()
[all …]
H A Dtree_nocb.h102 WARN_ON_ONCE(smp_processor_id() != rdp->cpu); in rcu_nocb_bypass_lock()
314 WARN_ON_ONCE(!rcu_rdp_is_offloaded(rdp)); in rcu_nocb_do_flush_bypass()
676 WARN_ON_ONCE(my_rdp->nocb_gp_rdp != my_rdp); in nocb_gp_wait()
745 WARN_ON_ONCE(wasempty && in nocb_gp_wait()
911 WARN_ON_ONCE(!rcu_rdp_is_offloaded(rdp)); in nocb_cb_wait()
996 WARN_ON_ONCE(rdp->nocb_gp_rdp != rdp); in do_nocb_deferred_wakeup_timer()
1157 WARN_ON_ONCE(cpu_online(rdp->cpu)); in rcu_nocb_rdp_offload()
1165 if (WARN_ON_ONCE(!rdp_gp->nocb_gp_kthread)) in rcu_nocb_rdp_offload()
1263 if (WARN_ON_ONCE(!rcu_rdp_is_offloaded(rdp))) in lazy_rcu_shrink_scan()
1678 WARN_ON_ONCE(1); /* Should be dead code! */ in call_rcu_nocb()
[all …]
/linux-6.15/drivers/gpu/drm/vc4/
H A Dvc4_perfmon.c26 if (WARN_ON_ONCE(vc4->gen > VC4_GEN_4)) in vc4_perfmon_get()
40 if (WARN_ON_ONCE(vc4->gen > VC4_GEN_4)) in vc4_perfmon_put()
52 if (WARN_ON_ONCE(vc4->gen > VC4_GEN_4)) in vc4_perfmon_start()
72 if (WARN_ON_ONCE(vc4->gen > VC4_GEN_4)) in vc4_perfmon_stop()
75 if (WARN_ON_ONCE(!vc4->active_perfmon || in vc4_perfmon_stop()
93 if (WARN_ON_ONCE(vc4->gen > VC4_GEN_4)) in vc4_perfmon_find()
108 if (WARN_ON_ONCE(vc4->gen > VC4_GEN_4)) in vc4_perfmon_open_file()
134 if (WARN_ON_ONCE(vc4->gen > VC4_GEN_4)) in vc4_perfmon_close_file()
154 if (WARN_ON_ONCE(vc4->gen > VC4_GEN_4)) in vc4_perfmon_create_ioctl()
208 if (WARN_ON_ONCE(vc4->gen > VC4_GEN_4)) in vc4_perfmon_destroy_ioctl()
[all …]
/linux-6.15/drivers/irqchip/
H A Dirq-msi-lib.c35 if (WARN_ON_ONCE(!pops)) in msi_lib_init_dev_msi_info()
44 if (WARN_ON_ONCE(domain != real_parent)) in msi_lib_init_dev_msi_info()
47 WARN_ON_ONCE(1); in msi_lib_init_dev_msi_info()
57 if (WARN_ON_ONCE(!IS_ENABLED(CONFIG_PCI_MSI))) in msi_lib_init_dev_msi_info()
68 if (WARN_ON_ONCE(info->flags)) in msi_lib_init_dev_msi_info()
83 WARN_ON_ONCE(1); in msi_lib_init_dev_msi_info()
/linux-6.15/arch/powerpc/kernel/
H A 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-6.15/fs/crypto/
H A Dcrypto.c52 if (WARN_ON_ONCE(!fscrypt_bounce_page_pool)) { in fscrypt_alloc_bounce_page()
95 WARN_ON_ONCE(index > U32_MAX); in fscrypt_generate_iv()
96 WARN_ON_ONCE(ci->ci_inode->i_ino > U32_MAX); in fscrypt_generate_iv()
99 WARN_ON_ONCE(index > U32_MAX); in fscrypt_generate_iv()
121 if (WARN_ON_ONCE(len <= 0)) in fscrypt_crypt_data_unit()
123 if (WARN_ON_ONCE(len % FSCRYPT_CONTENTS_ALIGNMENT != 0)) in fscrypt_crypt_data_unit()
194 if (WARN_ON_ONCE(!folio_test_locked(folio))) in fscrypt_encrypt_pagecache_blocks()
197 if (WARN_ON_ONCE(len <= 0 || !IS_ALIGNED(len | offs, du_size))) in fscrypt_encrypt_pagecache_blocks()
242 if (WARN_ON_ONCE(inode->i_sb->s_cop->supports_subblock_data_units)) in fscrypt_encrypt_block_inplace()
276 if (WARN_ON_ONCE(!folio_test_locked(folio))) in fscrypt_decrypt_pagecache_blocks()
[all …]
/linux-6.15/fs/notify/fanotify/
H A Dfanotify.h184 if (WARN_ON_ONCE(info->dir2_fh_totlen > 0) || in fanotify_info_set_dir_fh()
185 WARN_ON_ONCE(info->file_fh_totlen > 0) || in fanotify_info_set_dir_fh()
186 WARN_ON_ONCE(info->name_len > 0) || in fanotify_info_set_dir_fh()
187 WARN_ON_ONCE(info->name2_len > 0)) in fanotify_info_set_dir_fh()
197 WARN_ON_ONCE(info->name_len > 0) || in fanotify_info_set_dir2_fh()
198 WARN_ON_ONCE(info->name2_len > 0)) in fanotify_info_set_dir2_fh()
207 if (WARN_ON_ONCE(info->name_len > 0) || in fanotify_info_set_file_fh()
208 WARN_ON_ONCE(info->name2_len > 0)) in fanotify_info_set_file_fh()
217 if (WARN_ON_ONCE(name->len > NAME_MAX) || in fanotify_info_copy_name()
218 WARN_ON_ONCE(info->name2_len > 0)) in fanotify_info_copy_name()
[all …]
/linux-6.15/fs/iomap/
H A Diter.c23 if (WARN_ON_ONCE(*count > iomap_length(iter))) in iomap_iter_advance()
33 WARN_ON_ONCE(iter->iomap.offset > iter->pos); in iomap_iter_done()
34 WARN_ON_ONCE(iter->iomap.length == 0); in iomap_iter_done()
35 WARN_ON_ONCE(iter->iomap.offset + iter->iomap.length <= iter->pos); in iomap_iter_done()
36 WARN_ON_ONCE(iter->iomap.flags & IOMAP_F_STALE); in iomap_iter_done()
89 if (WARN_ON_ONCE(iter->status > 0)) in iomap_iter()
/linux-6.15/kernel/sched/
H A Didle.c30 WARN_ON_ONCE(cpu_idle_force_poll < 0); in cpu_idle_poll_ctrl()
243 if (WARN_ON_ONCE(irqs_disabled())) in cpuidle_idle_call()
388 WARN_ON_ONCE(current->policy != SCHED_FIFO); in play_idle_precise()
389 WARN_ON_ONCE(current->nr_cpus_allowed != 1); in play_idle_precise()
390 WARN_ON_ONCE(!(current->flags & PF_KTHREAD)); in play_idle_precise()
391 WARN_ON_ONCE(!(current->flags & PF_NO_SETAFFINITY)); in play_idle_precise()
392 WARN_ON_ONCE(!duration_ns); in play_idle_precise()
393 WARN_ON_ONCE(current->mm); in play_idle_precise()
440 return WARN_ON_ONCE(1); in balance_idle()
/linux-6.15/arch/x86/include/asm/
H A Dentry-common.h32 WARN_ON_ONCE(flags & mask); in arch_enter_from_user_mode()
35 WARN_ON_ONCE(!user_mode(regs)); in arch_enter_from_user_mode()
42 WARN_ON_ONCE(!on_thread_stack()); in arch_enter_from_user_mode()
43 WARN_ON_ONCE(regs != task_pt_regs(current)); in arch_enter_from_user_mode()
/linux-6.15/include/linux/
H A Dsrcu.h297 WARN_ON_ONCE(IS_ENABLED(CONFIG_PROVE_RCU) && in_nmi()); in srcu_down_read_fast()
385 WARN_ON_ONCE(in_nmi()); in srcu_down_read()
400 WARN_ON_ONCE(idx & ~0x1); in srcu_read_unlock()
432 WARN_ON_ONCE(IS_ENABLED(CONFIG_PROVE_RCU) && in_nmi()); in srcu_up_read_fast()
447 WARN_ON_ONCE(idx & ~0x1); in srcu_read_unlock_lite()
463 WARN_ON_ONCE(idx & ~0x1); in srcu_read_unlock_nmisafe()
488 WARN_ON_ONCE(idx & ~0x1); in srcu_up_read()
489 WARN_ON_ONCE(in_nmi()); in srcu_up_read()
/linux-6.15/lib/
H A Dinterval_tree_test.c142 WARN_ON_ONCE("Failed to allocate intxn1\n"); in intersection_range_check()
148 WARN_ON_ONCE("Failed to allocate intxn2\n"); in intersection_range_check()
185 WARN_ON_ONCE(!bitmap_equal(intxn1, intxn2, nnodes)); in intersection_range_check()
263 WARN_ON_ONCE(mtree_store_range(&tree, nodes[j].start, in span_iteration_check()
285 WARN_ON_ONCE(span.is_hole != mas_span.is_hole); in span_iteration_check()
288 WARN_ON_ONCE(span.start_hole != mas_span.start_hole); in span_iteration_check()
289 WARN_ON_ONCE(span.last_hole != mas_span.last_hole); in span_iteration_check()
291 WARN_ON_ONCE(span.start_used != mas_span.start_used); in span_iteration_check()
292 WARN_ON_ONCE(span.last_used != mas_span.last_used); in span_iteration_check()
298 WARN_ON_ONCE(mas.status != ma_overflow); in span_iteration_check()
/linux-6.15/kernel/time/
H A Dclocksource-wdtest.c119 WARN_ON_ONCE(clocksource_wdtest_jiffies.uncertainty_margin != TICK_NSEC); in wdtest_func()
124 WARN_ON_ONCE(j1 == j2); in wdtest_func()
134 WARN_ON_ONCE(clocksource_wdtest_ktime.uncertainty_margin < NSEC_PER_USEC); in wdtest_func()
155 WARN_ON_ONCE(READ_ONCE(wdtest_ktime_read_ndelays)); in wdtest_func()
156 WARN_ON_ONCE((i <= max_retries) != in wdtest_func()
165 WARN_ON_ONCE(!(clocksource_wdtest_ktime.flags & CLOCK_SOURCE_UNSTABLE)); in wdtest_func()
/linux-6.15/scripts/coccinelle/misc/
H A 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-6.15/kernel/bpf/
H A Dmemalloc.c184 WARN_ON_ONCE(local_inc_return(&c->active) != 1); in inc_active()
340 WARN_ON_ONCE(tgt->unit_size != c->unit_size); in free_bulk()
341 WARN_ON_ONCE(tgt->percpu_size != c->percpu_size); in free_bulk()
367 WARN_ON_ONCE(tgt->unit_size != c->unit_size); in __free_by_rcu()
368 WARN_ON_ONCE(tgt->percpu_size != c->percpu_size); in __free_by_rcu()
412 WARN_ON_ONCE(!llist_empty(&c->waiting_for_gp)); in check_free_by_rcu()
651 WARN_ON_ONCE(!llist_empty(&c->free_llist)); in check_mem_cache()
653 WARN_ON_ONCE(!llist_empty(&c->free_by_rcu)); in check_mem_cache()
655 WARN_ON_ONCE(!llist_empty(&c->waiting_for_gp)); in check_mem_cache()
917 if (WARN_ON_ONCE(idx < 0)) in bpf_mem_free()
[all …]
/linux-6.15/block/
H A Dblk-settings.c78 if (WARN_ON_ONCE(lim->max_open_zones) || in blk_validate_zoned_limits()
79 WARN_ON_ONCE(lim->max_active_zones) || in blk_validate_zoned_limits()
80 WARN_ON_ONCE(lim->zone_write_granularity) || in blk_validate_zoned_limits()
81 WARN_ON_ONCE(lim->max_zone_append_sectors)) in blk_validate_zoned_limits()
86 if (WARN_ON_ONCE(!IS_ENABLED(CONFIG_BLK_DEV_ZONED))) in blk_validate_zoned_limits()
202 if (WARN_ON_ONCE(lim->atomic_write_hw_unit_min > in blk_validate_atomic_write_limits()
206 if (WARN_ON_ONCE(lim->atomic_write_hw_unit_max > in blk_validate_atomic_write_limits()
213 if (WARN_ON_ONCE(lim->atomic_write_hw_max > in blk_validate_atomic_write_limits()
229 if (WARN_ON_ONCE(lim->chunk_sectors % boundary_sectors)) in blk_validate_atomic_write_limits()
302 if (WARN_ON_ONCE(lim->max_hw_sectors < PAGE_SECTORS)) in blk_validate_limits()
[all …]

12345678910>>...84