2 #define CK(_x) void _x(int id);
6 CK(register_db_call_marker
) /* always has to be first */
7 CK(register_mtag_data
) /* before smatch_extra to clear cache at start of function */
8 CK(register_param_used
) /* get_state_hooks have to be registered before smatch_extra */
9 CK(register_container_of
)
10 CK(register_container_of2
)
11 CK(register_smatch_extra
)
12 CK(register_smatch_extra_links
)
13 CK(register_buf_comparison
)
14 CK(register_buf_comparison_links
)
15 CK(register_buf_comparison2
)
16 CK(register_modification_hooks
)
18 * Implications should probably be after all the modification and smatch_extra
22 CK(register_implications
)
23 CK(register_definition_db_callbacks
)
24 CK(register_project
) /* has to be early to set up some global stuff */
25 CK(register_untracked_param
)
26 CK(register_param_compare_limit
)
27 CK(register_param_compare_limit_links
)
28 CK(register_returns_early
)
30 CK(register_param_cleared
) /* param_set relies on param_cleared */
31 CK(register_param_limit
) /* param limit has to be before param_set */
32 CK(register_param_set
)
34 CK(register_smatch_ignore
)
37 CK(register_strlen_equiv
)
39 CK(register_parse_call_math
)
40 CK(register_param_filter
)
41 CK(register_struct_assignment
)
42 CK(register_comparison
)
43 CK(register_comparison_links
)
44 CK(register_comparison_inc_dec
)
45 CK(register_comparison_inc_dec_links
)
46 CK(register_function_ptrs
)
48 CK(register_start_states
)
50 CK(register_data_source
)
51 CK(register_common_functions
)
52 CK(register_function_info
)
53 CK(register_type_links
)
54 CK(register_impossible
)
55 CK(register_impossible_return
)
57 CK(register_integer_overflow
)
58 CK(register_integer_overflow_links
)
59 CK(register_real_absolute
)
60 CK(register_imaginary_absolute
)
62 CK(register_power_of_two
)
63 CK(register_fn_arg_link
)
64 CK(register_parameter_names
)
65 CK(register_return_to_param
)
66 CK(register_return_to_param_links
)
67 CK(register_constraints
)
68 CK(register_constraints_required
)
69 CK(register_about_fn_ptr_arg
)
72 CK(register_param_to_mtag_data
)
73 CK(register_array_values
)
74 CK(register_nul_terminator
)
75 CK(register_nul_terminator_param_set
)
76 CK(register_statement_count
)
77 CK(register_fresh_alloc
)
79 CK(register_unconstant_macros
)
80 CK(register_state_assigned
)
81 CK(register_points_to_container
)
82 CK(register_allocations
)
83 CK(register_goto_tracker
)
85 CK(register_kernel_user_data
)
86 CK(register_kernel_user_data2
)
87 CK(register_points_to_user_data
)
89 CK(register_kernel_host_data
)
90 CK(register_points_to_host_data
)
98 CK(check_dereferences_param
)
99 CK(check_index_overflow
)
100 CK(check_index_overflow_loop_marker
)
101 CK(check_testing_index_after_use
)
102 CK(check_memcpy_overflow
)
103 CK(check_strcpy_overflow
)
104 CK(check_sprintf_overflow
)
105 CK(check_snprintf_overflow
)
106 CK(check_allocating_enough_data
)
109 CK(check_allocation_funcs
)
110 CK(check_frees_argument
)
111 CK(check_deref_check
)
115 CK(check_dma_on_stack
)
116 CK(check_param_mapper
)
118 CK(check_dev_queue_xmit
)
123 CK(check_resource_size
)
124 CK(check_release_resource
)
125 CK(check_proc_create
)
126 CK(check_freeing_null
)
127 CK(check_frees_param
)
129 CK(check_frees_param_strict
)
130 CK(check_free_strict
)
135 CK(check_return_efault
)
138 CK(check_unwind_info
)
139 CK(check_kmalloc_to_bugon
)
140 CK(check_platform_device_put
)
142 CK(check_return_enomem
)
143 CK(check_get_user_overflow
)
144 CK(check_get_user_overflow2
)
145 CK(check_access_ok_math
)
146 CK(check_container_of
)
147 CK(check_input_free_device
)
150 CK(check_logical_instead_of_bitwise
)
151 CK(check_kmalloc_wrong_size
)
152 CK(check_pointer_math
)
154 CK(check_macro_side_effects
)
156 CK(check_return_cast
)
158 CK(check_passes_sizeof
)
159 CK(check_assign_vs_compare
)
160 CK(check_array_condition
)
161 CK(check_struct_type
)
162 CK(check_64bit_shift
)
163 CK(check_wrong_size_arg
)
164 CK(check_cast_assign
)
165 CK(check_double_checking
)
166 CK(check_shift_to_zero
)
168 CK(check_unreachable
)
169 CK(check_missing_error_code
)
170 CK(check_missing_error_code2
)
171 CK(check_no_if_block
)
172 CK(check_buffer_too_small_for_struct
)
173 CK(check_uninitialized
)
174 CK(check_signed_integer_overflow_check
)
175 CK(check_continue_vs_break
)
176 CK(check_impossible_mask
)
177 CK(check_postop_timeout
)
178 CK(check_atomic_inc_dec
)
179 CK(check_atomic_test
)
180 CK(check_select_type
)
182 CK(check_preempt_info
)
184 CK(check_scheduling_in_atomic
)
185 CK(check_checking_for_null_instead_of_err_ptr
)
186 CK(check_syscall_arg_type
)
187 CK(check_trinity_generator
)
188 CK(register_param_bits_set
)
189 CK(register_param_bits_clear
)
190 CK(check_do_while_loop_limit
)
192 CK(check_divide_condition
)
194 /* <- your test goes here */
195 /* CK(register_template) */
197 /* kernel specific */
198 CK(check_kernel_printf
)
200 CK(check_puts_argument
)
202 CK(check_err_ptr_deref
)
203 CK(check_expects_err_ptr
)
204 CK(check_return_negative_var
)
208 CK(check_wait_for_common
)
209 CK(check_bogus_irqrestore
)
210 CK(check_zero_to_err_ptr
)
211 CK(check_freeing_devm
)
212 CK(check_off_by_one_relative
)
217 CK(check_nospec_barrier
)
219 CK(check_spectre_second_half
)
220 CK(check_implicit_dependencies
)
221 CK(check_pm_runtime_get_sync
)
222 CK(check_iterator_outside_loop
)
224 CK(check_list_add_late
)
225 CK(check_sscanf_return
)
226 CK(check_kvmalloc_array_zero
)
227 CK(check_returns_negative_error_code
)
228 CK(check_platform_get_irq_return
)
229 CK(check_kvmalloc_NOFS
)
230 CK(check_uaf_netdev_priv
)
231 //CK(check_host_input)
232 CK(check_direct_return_instead_of_goto
)
234 /* wine specific stuff */
235 CK(check_wine_filehandles
)
238 CK(check_arm64_tagged
)
240 /* illumos specific */
241 CK(check_all_func_returns
)
244 #include "check_list_local.h"
247 CK(register_stored_conditions
)
248 CK(register_stored_conditions_links
)
249 CK(register_parsed_conditions
)
251 CK(register_buf_size_late
)
252 CK(register_smatch_extra_late
)
253 CK(register_assigned_expr
) /* This is used by smatch_extra.c so it has to come really late */
254 CK(register_assigned_expr_links
)
255 CK(register_modification_hooks_late
) /* has to come after smatch_extra */
256 CK(register_param_key
) /* has to come after smatch_extra */
257 CK(register_comparison_late
) /* has to come after modification_hooks_late */
258 CK(register_function_hooks
)
259 CK(register_definition_db_callbacks_late
) /* has to come after register_function_hooks() */
260 CK(check_kernel
) /* this is overwriting stuff from smatch_extra_late */