Home
last modified time | relevance | path

Searched refs:__failure (Results 1 – 25 of 138) sorted by relevance

123456

/linux/tools/testing/selftests/bpf/progs/
H A Dexceptions_fail.c63 __failure __msg("Global function exception_cb_bad_ret_type1() return value not void or scalar.") in __exception_cb()
72 __failure __msg("exception cb only supports single integer argument") in __exception_cb()
81 __failure __msg("exception cb only supports single integer argument") in __exception_cb()
99 __failure __msg("exception cb cannot return void") in __exception_cb()
114 __failure __msg("cannot be called from callback subprog")
136 __failure __msg("function calls are not allowed while holding a lock")
145 __failure __msg("function calls are not allowed while holding a lock")
152 __failure __msg("bpf_throw cannot be used inside bpf_rcu_read_lock-ed region")
168 __failure __msg("bpf_throw cannot be used inside bpf_rcu_read_lock-ed region")
184 __failure __msg("function calls are not allowed while holding a lock")
[all …]
H A Ddynptr_fail.c81 __failure __msg("Unreleased reference id=1")
94 __failure __msg("Unreleased reference id=3")
130 __failure __msg("Unreleased reference id")
139 __failure __msg("Expected an initialized dynptr as R1")
152 __failure __msg("Expected an initialized dynptr as R3")
172 __failure __msg("type=mem expected=ringbuf_mem")
195 __failure __msg("invalid read from stack")
213 __failure __msg("invalid read from stack")
231 __failure __msg("value is outside of the allowed memory range")
253 __failure __msg("value is outside of the allowed memory range")
[all …]
H A Dverifier_sock_addr.c17 __failure __msg("At program exit the register R0 has smin=0 smax=0 should have been in [1, 1]")
31 __failure __msg("At program exit the register R0 has smin=0 smax=0 should have been in [1, 1]")
45 __failure __msg("At program exit the register R0 has smin=0 smax=0 should have been in [1, 1]")
66 __failure __msg("At program exit the register R0 has smin=2 smax=2 should have been in [0, 1]")
87 __failure __msg("At program exit the register R0 has smin=2 smax=2 should have been in [0, 1]")
108 __failure __msg("At program exit the register R0 has smin=2 smax=2 should have been in [0, 1]")
122 __failure __msg("At program exit the register R0 has smin=0 smax=0 should have been in [1, 1]")
136 __failure __msg("At program exit the register R0 has smin=0 smax=0 should have been in [1, 1]")
150 __failure __msg("At program exit the register R0 has smin=0 smax=0 should have been in [1, 1]")
164 __failure __msg("At program exit the register R0 has smin=0 smax=0 should have been in [1, 1]")
[all …]
H A Dirq.c18 __failure __msg("R1 doesn't point to an irq flag on stack") in irq_save_bad_arg()
26 __failure __msg("R1 doesn't point to an irq flag on stack") in irq_restore_bad_arg()
34 __failure __msg("BPF_EXIT instruction in main prog cannot be used inside bpf_local_irq_save-ed region") in irq_restore_missing_2()
46 __failure __msg("BPF_EXIT instruction in main prog cannot be used inside bpf_local_irq_save-ed region") in irq_restore_missing_3()
60 __failure __msg("BPF_EXIT instruction in main prog cannot be used inside bpf_local_irq_save-ed region") in irq_restore_missing_3_minus_2()
86 __failure __msg("BPF_EXIT instruction in main prog cannot be used inside bpf_local_irq_save-ed region") in irq_restore_missing_1_subprog()
96 __failure __msg("BPF_EXIT instruction in main prog cannot be used inside bpf_local_irq_save-ed region") in irq_restore_missing_2_subprog()
108 __failure __msg("BPF_EXIT instruction in main prog cannot be used inside bpf_local_irq_save-ed region") in irq_restore_missing_3_subprog()
122 __failure __msg("BPF_EXIT instruction in main prog cannot be used inside bpf_local_irq_save-ed region") in irq_restore_missing_3_minus_2_subprog()
196 __failure __ms in irq_sleepable_helper()
[all...]
H A Dmap_kptr_fail.c24 __failure __msg("kptr access size must be BPF_DW")
39 __failure __msg("kptr access cannot have variable offset")
58 __failure __msg("R1 doesn't have constant offset. kptr has to be")
77 __failure __msg("kptr access misaligned expected=8 off=7")
93 __failure __msg("kptr access misaligned expected=8 off=1")
107 __failure __msg("variable untrusted_ptr_ access var_off=(0x0; 0x1e0)")
131 __failure __msg("invalid kptr access, R1 type=untrusted_ptr_prog_test_ref_kfunc")
152 __failure __msg("R1 type=untrusted_ptr_or_null_ expected=percpu_ptr_")
167 __failure __msg("access beyond struct prog_test_ref_kfunc at off 32 size 4")
185 __failure __msg("R1 type=untrusted_ptr_ expected=percpu_ptr_")
[all …]
H A Dtask_kfunc_failure.c32 __failure __msg("Possibly NULL pointer passed to trusted R1")
53 __failure __msg("R1 is fp expected STRUCT task_struct")
69 __failure __msg("calling kernel function bpf_task_acquire is not allowed")
84 __failure __msg("calling kernel function bpf_task_acquire is not allowed")
104 __failure __msg("Possibly NULL pointer passed to trusted R1")
119 __failure __msg("Unreleased reference")
133 __failure __msg("Unreleased reference")
153 __failure __msg("Possibly NULL pointer passed to trusted R1")
166 __failure __msg("Possibly NULL pointer passed to trusted R1")
182 __failure __msg("release kfunc bpf_task_release expects referenced PTR_TO_BTF_ID passed to R1")
[all …]
H A Diters_state_safety.c57 __failure __msg("cannot pass in iter at an offset=0")
78 __failure __msg("Unreleased reference id=1")
98 __failure __msg("expected an initialized iter_num as R1")
116 __failure __msg("expected an initialized iter_num as R1")
143 __failure __msg("Unreleased reference id=1")
168 __failure __msg("expected an initialized iter_num as R1")
208 __failure
255 __failure __msg("expected uninitialized iter_num as R1")
283 __failure __msg("expected an initialized iter_num as R1")
309 __failure __msg("expected an initialized iter_num as R1")
[all …]
H A Dverifier_cfg.c11 __failure __msg("unreachable")
23 __failure __msg("unreachable")
36 __failure __msg("jump out of range")
49 __failure __msg("jump out of range")
61 __failure __msg("BUG_ldx_99")
74 __failure __msg("unreachable insn 1")
86 __failure __msg("unreachable insn 4")
101 __failure __msg("infinite loop detected")
138 __failure __msg("infinite loop detected")
164 __failure __msg("infinite loop detected")
H A Dverifier_helper_restricted.c22 __failure __msg("program of this type cannot use helper bpf_ktime_get_coarse_ns")
36 __failure __msg("program of this type cannot use helper bpf_ktime_get_coarse_ns") in in_bpf_prog_type_kprobe_1()
50 __failure __msg("program of this type cannot use helper bpf_ktime_get_coarse_ns") in in_bpf_prog_type_tracepoint_1()
64 __failure __msg("program of this type cannot use helper bpf_ktime_get_coarse_ns") in bpf_prog_type_perf_event_1()
78 __failure __msg("tracing progs cannot use bpf_spin_lock yet") in bpf_prog_type_raw_tracepoint_1()
101 __failure __msg("tracing progs cannot use bpf_spin_lock yet") in in_bpf_prog_type_kprobe_2()
124 __failure __msg("tracing progs cannot use bpf_spin_lock yet") in bpf_prog_type_perf_event_2()
147 __failure __msg("tracing progs cannot use bpf_spin_lock yet") in in_bpf_prog_type_tracepoint_2()
H A Dverifier_vfs_reject.c16 __failure __msg("Possibly NULL pointer passed to trusted R1")
31 __failure __msg("R1 is fp expected STRUCT task_struct")
49 __failure __msg("R1 must be referenced or trusted")
69 __failure __msg("Unreleased reference")
83 __failure __msg("release kfunc bpf_put_file expects referenced PTR_TO_BTF_ID passed to R1")
92 __failure __msg("Possibly NULL pointer passed to trusted R1")
101 __failure __msg("dereference of modified untrusted_ptr_")
115 __failure __msg("dereference of modified untrusted_ptr_")
131 __failure __msg("kernel function bpf_path_d_path R1 expected pointer to STRUCT path but R1 has a po…
139 __failure __msg("invalid access to map value, value_size=4096 off=0 size=8192")
[all …]
H A Dverifier_ref_tracking.c112 __failure __msg("Unreleased reference")
127 __failure __msg("Unreleased reference")
142 __failure __msg("Unreleased reference")
160 __failure __msg("Unreleased reference")
180 __failure __msg("Unreleased reference")
195 __failure __msg("Unreleased reference")
210 __failure __msg("Unreleased reference")
266 __failure __msg("Possibly NULL pointer passed to trusted R1")
285 __failure __msg("Possibly NULL pointer passed to trusted R1")
303 __failure __ms
[all...]
H A Dverifier_helper_value_access.c99 __failure __msg("R2 invalid zero-sized read: u64=[0,0]")
126 __failure __msg("R2 invalid zero-sized read: u64=[0,4]")
155 __failure __msg("invalid access to map value, value_size=48 off=0 size=56")
181 __failure __msg("R2 min value is negative")
261 __failure __msg("R2 invalid zero-sized read")
287 __failure __msg("invalid access to map value, value_size=48 off=4 size=52")
315 __failure __msg("R2 min value is negative")
342 __failure __msg("R2 min value is negative")
426 __failure __msg("R2 invalid zero-sized read")
452 __failure __msg("invalid access to map value, value_size=48 off=4 size=52")
[all …]
H A Dverifier_lsm.c32 __failure __msg("R0 has smin=-4096 smax=-4096 should have been in [-4095, 0]")
43 __failure __msg("R0 has smin=4096 smax=4096 should have been in [-4095, 0]")
54 __failure __msg("R0 has smin=1 smax=1 should have been in [-4095, 0]")
88 __failure __msg("R0 has smin=-1 smax=-1 should have been in [0, 1]")
99 __failure __msg("R0 has smin=2 smax=2 should have been in [0, 1]")
132 __failure __msg("points to disabled hook")
143 __failure __msg("points to disabled hook")
154 __failure __msg("points to disabled hook")
165 __failure __msg("R1 invalid mem access 'trusted_ptr_or_null_'")
193 __failure __msg("Program of this type cannot be sleepable")
[all …]
H A Dpreempt_lock.c11 __failure __msg("BPF_EXIT instruction in main prog cannot be used inside bpf_preempt_disable-ed reg…
19 __failure __msg("BPF_EXIT instruction in main prog cannot be used inside bpf_preempt_disable-ed reg…
28 __failure __msg("BPF_EXIT instruction in main prog cannot be used inside bpf_preempt_disable-ed reg…
38 __failure __msg("BPF_EXIT instruction in main prog cannot be used inside bpf_preempt_disable-ed reg…
60 __failure __msg("BPF_EXIT instruction in main prog cannot be used inside bpf_preempt_disable-ed reg…
68 __failure __msg("BPF_EXIT instruction in main prog cannot be used inside bpf_preempt_disable-ed reg…
77 __failure __msg("BPF_EXIT instruction in main prog cannot be used inside bpf_preempt_disable-ed reg…
107 __failure __msg("sleepable helper bpf_copy_from_user#")
119 __failure __msg("sleepable helper bpf_get_stack#")
132 __failure __msg("sleepable helper bpf_get_task_stack#")
[all …]
H A Dverifier_bounds_mix_sign_unsign.c17 __failure __msg("unbounded min value")
49 __failure __msg("unbounded min value")
81 __failure __msg("unbounded min value")
115 __failure __msg("unbounded min value")
179 __failure __msg("unbounded min value")
212 __failure __msg("R4 min value is negative, either use unsigned")
275 __failure __msg("unbounded min value")
342 __failure __msg("unbounded min value")
376 __failure __msg("unbounded min value")
411 __failure __msg("unbounded min value")
[all …]
H A Dverifier_cgroup_storage.c51 __failure __msg("cannot pass map_type 1 into func bpf_get_local_storage")
71 __failure __msg("fd 1 is not pointing to valid bpf_map")
90 __failure __msg("invalid access to map value, value_size=64 off=256 size=4")
110 __failure __msg("invalid access to map value, value_size=64 off=-2 size=4")
131 __failure __msg("get_local_storage() doesn't support non-zero flags")
151 __failure __msg("get_local_storage() doesn't support non-zero flags")
190 __failure __msg("cannot pass map_type 1 into func bpf_get_local_storage")
210 __failure __msg("fd 1 is not pointing to valid bpf_map")
229 __failure __msg("invalid access to map value, value_size=64 off=256 size=4")
249 __failure __msg("invalid access to map value, value_size=64 off=-2 size=4")
[all …]
H A Dverifier_stack_ptr.c40 __failure __msg("misaligned stack access off -8+2 size 8")
56 __failure __msg("misaligned stack access off -10+8 size 8")
72 __failure __msg("invalid write to stack R1 off=-79992 size=8")
88 __failure __msg("invalid write to stack R1 off=0 size=8")
150 __failure __msg("invalid write to stack R1 off=0 size=1")
166 __failure __msg("invalid write to stack R1")
184 __failure __msg("invalid write to stack")
203 __failure __msg("fp pointer offset")
255 __failure __msg("invalid write to stack R1 off=-513 size=1")
271 __failure __ms
[all...]
H A Dcgrp_kfunc_failure.c32 __failure __msg("Possibly NULL pointer passed to trusted R1")
51 __failure __msg("Possibly NULL pointer passed to trusted R1")
67 __failure __msg("R1 is fp expected STRUCT cgroup")
81 __failure __msg("calling kernel function bpf_cgroup_acquire is not allowed")
95 __failure __msg("cgrp_kfunc_acquire_trusted_walked")
109 __failure __msg("Possibly NULL pointer passed to trusted R1")
123 __failure __msg("Unreleased reference")
137 __failure __msg("Unreleased reference")
157 __failure __msg("release kfunc bpf_cgroup_release expects referenced PTR_TO_BTF_ID passed to R1")
178 __failure __msg("Possibly NULL pointer passed to trusted R1")
[all …]
H A Dverifier_gotox.c46 DEFINE_SIMPLE_JUMP_TABLE_PROG(reserved_field_src_reg, BPF_REG_1, 0, 0, __failure __msg("BPF_JA…
47 DEFINE_SIMPLE_JUMP_TABLE_PROG(reserved_field_non_zero_off, BPF_REG_0, 1, 0, __failure __msg("BPF_JA…
48 DEFINE_SIMPLE_JUMP_TABLE_PROG(reserved_field_non_zero_imm, BPF_REG_0, 0, 1, __failure __msg("BPF_JA…
103 __failure __msg("no jump tables found for subprog starting at 0")
119 __failure __msg("R1 has type scalar, expected PTR_TO_INSN")
177 DEFINE_INVALID_SIZE_PROG(u32, __failure __msg("Invalid read of 4 bytes from insn_array"))
178 DEFINE_INVALID_SIZE_PROG(u16, __failure __msg("Invalid read of 2 bytes from insn_array"))
179 DEFINE_INVALID_SIZE_PROG(u8, __failure __msg("Invalid read of 1 bytes from insn_array"))
182 __failure __msg("misaligned value access off 1+0 size 8")
210 __failure __msg("invalid access to map value, value_size=16 off=24 size=8")
[all …]
H A Dverifier_ld_ind.c11 __failure __msg("R1 !read_ok")
28 __failure __msg("R2 !read_ok")
45 __failure __msg("R3 !read_ok")
62 __failure __msg("R4 !read_ok")
79 __failure __msg("R5 !read_ok")
145 __failure __msg("R9 !read_ok")
160 __failure __msg("R9 !read_ok")
212 __failure __msg("cannot use BPF_LD_[ABS|IND] within callback")
245 __failure __msg("cannot use BPF_LD_[ABS|IND] within callback")
278 __failure __msg("cannot use BPF_LD_[ABS|IND] within callback")
[all …]
H A Dcpumask_failure.c35 __failure __msg("Unreleased reference")
48 __failure __msg("NULL pointer passed to trusted R1")
63 __failure __msg("must be referenced")
76 __failure __msg("bpf_cpumask_set_cpu R2 expected pointer to STRUCT bpf_cpumask")
86 __failure __msg("Unreleased reference")
110 __failure __msg("NULL pointer passed to trusted R1")
120 __failure __msg("R2 must be a rcu pointer")
158 __failure __msg("NULL pointer passed to trusted R2")
186 __failure __msg("Possibly NULL pointer passed to helper R2")
211 __failure __msg("has no valid kptr")
[all …]
H A Duser_ringbuf_fail.c44 __failure __msg("negative offset dynptr_ptr ptr")
67 __failure __msg("dereference of modified dynptr_ptr ptr")
87 __failure __msg("invalid mem access 'dynptr_ptr'")
107 __failure __msg("invalid mem access 'scalar'")
129 __failure __msg("invalid mem access 'scalar'")
149 __failure __msg("CONST_PTR_TO_DYNPTR cannot be released")
169 __failure __msg("CONST_PTR_TO_DYNPTR cannot be released")
187 __failure __msg("At callback return the register R0 has ")
210 __failure __msg("Dynptr has to be an uninitialized dynptr")
218 __failure __ms
[all...]
H A Dverifier_raw_stack.c28 __failure __msg("R4 min value is negative")
47 __failure __msg("R4 min value is negative")
67 __failure __msg("R4 invalid zero-sized read: u64=[0,0]")
153 __failure __msg("R0 invalid mem access 'scalar'")
176 __failure __msg("R3 invalid mem access 'scalar'")
239 __failure __msg("invalid write to stack R3 off=-513 size=8")
258 __failure __msg("invalid write to stack R3 off=-1 size=8")
277 __failure __msg("R4 min value is negative")
296 __failure
316 __failure
[all …]
H A Dverifier_xdp_direct_packet_access.c10 __failure __msg("R3 pointer arithmetic on pkt_end")
31 __failure __msg("R3 pointer arithmetic on pkt_end")
72 __failure __msg("R1 {{min|max}} value is outside of the allowed memory range")
93 __failure __msg("R1 offset is outside of the packet")
134 __failure __msg("R1 {{min|max}} value is outside of the allowed memory range")
176 __failure __msg("R1 {{min|max}} value is outside of the allowed memory range")
198 __failure __msg("R1 offset is outside of the packet")
282 __failure __msg("R1 {{min|max}} value is outside of the allowed memory range")
304 __failure __msg("R1 offset is outside of the packet")
387 __failure __msg("R1 {{min|max}} value is outside of the allowed memory range")
[all …]
H A Dverifier_sock.c58 __failure __msg("invalid mem access 'sock_common_or_null'")
131 __failure __msg("invalid sock_common access")
151 __failure __msg("type=sock_common_or_null expected=sock_common")
168 __failure __msg("invalid mem access 'sock_or_null'")
309 __failure __msg("invalid sock access")
360 __failure __msg("invalid sock access")
385 __failure __msg("invalid sock access")
482 __failure __msg("invalid sock access")
507 __failure __msg("type=sock_common_or_null expected=sock_common")
524 __failure __msg("invalid mem access 'tcp_sock_or_null'")
[all …]

123456