2 #define CK(_x) void _x(int id);
6 CK(register_db_call_marker
) /* always has to be first */
7 CK(register_param_used
) /* get_state_hooks have to be registered before smatch_extra */
8 CK(register_container_of
)
9 CK(register_container_of2
)
10 CK(register_smatch_extra
) /* smatch_extra always has to be SMATCH_EXTRA */
11 CK(register_smatch_extra_links
)
12 CK(register_modification_hooks
)
14 * Implications should probably be after all the modification and smatch_extra
18 CK(register_implications
)
19 CK(register_definition_db_callbacks
)
21 CK(register_untracked_param
)
22 CK(register_buf_comparison
)
23 CK(register_buf_comparison_links
)
24 CK(register_param_compare_limit
)
25 CK(register_param_compare_limit_links
)
26 CK(register_returns_early
)
28 CK(register_param_cleared
) /* param_set relies on param_cleared */
29 CK(register_param_set
)
31 CK(register_smatch_ignore
)
34 CK(register_strlen_equiv
)
36 CK(register_parse_call_math
)
37 CK(register_param_filter
)
38 CK(register_struct_assignment
)
39 CK(register_comparison
)
40 CK(register_comparison_links
)
41 CK(register_comparison_inc_dec
)
42 CK(register_comparison_inc_dec_links
)
43 CK(register_function_ptrs
)
45 CK(register_start_states
)
47 CK(register_data_source
)
48 CK(register_common_functions
)
49 CK(register_function_info
)
50 CK(register_type_links
)
51 CK(register_impossible
)
52 CK(register_impossible_return
)
54 CK(register_integer_overflow
)
55 CK(register_integer_overflow_links
)
56 CK(register_real_absolute
)
57 CK(register_imaginary_absolute
)
59 CK(register_fn_arg_link
)
60 CK(register_parameter_names
)
61 CK(register_param_limit
)
62 CK(register_return_to_param
)
63 CK(register_return_to_param_links
)
64 CK(register_constraints
)
65 CK(register_constraints_required
)
66 CK(register_about_fn_ptr_arg
)
69 CK(register_mtag_data
)
70 CK(register_param_to_mtag_data
)
71 CK(register_array_values
)
72 CK(register_nul_terminator
)
73 CK(register_nul_terminator_param_set
)
74 CK(register_statement_count
)
75 CK(register_fresh_alloc
)
77 CK(register_kernel_user_data
)
78 CK(register_kernel_user_data2
)
79 CK(register_points_to_user_data
)
87 CK(check_dereferences_param
)
88 CK(check_index_overflow
)
89 CK(check_index_overflow_loop_marker
)
90 CK(check_testing_index_after_use
)
91 CK(check_memcpy_overflow
)
92 CK(check_strcpy_overflow
)
93 CK(check_sprintf_overflow
)
94 CK(check_snprintf_overflow
)
95 CK(check_allocating_enough_data
)
98 CK(check_allocation_funcs
)
99 CK(check_frees_argument
)
100 CK(check_deref_check
)
104 CK(check_dma_on_stack
)
105 CK(check_param_mapper
)
107 CK(check_dev_queue_xmit
)
112 CK(check_resource_size
)
113 CK(check_release_resource
)
114 CK(check_proc_create
)
115 CK(check_freeing_null
)
116 CK(check_frees_param
)
118 CK(check_frees_param_strict
)
119 CK(check_free_strict
)
124 CK(check_return_efault
)
127 CK(check_kmalloc_to_bugon
)
128 CK(check_platform_device_put
)
130 CK(check_return_enomem
)
131 CK(check_get_user_overflow
)
132 CK(check_get_user_overflow2
)
133 CK(check_access_ok_math
)
134 CK(check_container_of
)
135 CK(check_input_free_device
)
138 CK(check_logical_instead_of_bitwise
)
139 CK(check_kmalloc_wrong_size
)
140 CK(check_pointer_math
)
142 CK(check_macro_side_effects
)
144 CK(check_return_cast
)
146 CK(check_passes_sizeof
)
147 CK(check_assign_vs_compare
)
148 CK(check_missing_break
)
149 CK(check_array_condition
)
150 CK(check_struct_type
)
151 CK(check_64bit_shift
)
152 CK(check_wrong_size_arg
)
153 CK(check_cast_assign
)
154 CK(check_readl_infinite_loops
)
155 CK(check_double_checking
)
156 CK(check_shift_to_zero
)
158 CK(check_unreachable
)
159 CK(check_no_if_block
)
160 CK(check_buffer_too_small_for_struct
)
161 CK(check_uninitialized
)
162 CK(check_signed_integer_overflow_check
)
163 CK(check_continue_vs_break
)
164 CK(check_impossible_mask
)
165 CK(check_syscall_arg_type
)
166 CK(check_trinity_generator
)
168 /* <- your test goes here */
169 /* CK(register_template) */
171 /* kernel specific */
172 CK(check_kernel_printf
)
174 CK(check_puts_argument
)
176 CK(check_err_ptr_deref
)
177 CK(check_expects_err_ptr
)
179 CK(check_return_negative_var
)
183 CK(check_wait_for_common
)
184 CK(check_bogus_irqrestore
)
185 CK(check_zero_to_err_ptr
)
186 CK(check_freeing_devm
)
187 CK(check_off_by_one_relative
)
191 CK(check_dma_mapping_error
)
193 CK(check_nospec_barrier
)
195 CK(check_spectre_second_half
)
196 CK(check_implicit_dependencies
)
198 /* wine specific stuff */
199 CK(check_wine_filehandles
)
202 CK(check_arm64_tagged
)
204 /* illumos specific */
205 CK(check_all_func_returns
)
208 #include "check_list_local.h"
211 CK(register_stored_conditions
)
212 CK(register_stored_conditions_links
)
213 CK(register_parsed_conditions
)
215 CK(register_buf_size_late
)
216 CK(register_smatch_extra_late
)
217 CK(register_assigned_expr
) /* This is used by smatch_extra.c so it has to come really late */
218 CK(register_assigned_expr_links
)
219 CK(register_modification_hooks_late
) /* has to come after smatch_extra */
220 CK(register_comparison_late
) /* has to come after modification_hooks_late */
221 CK(register_function_hooks
)
222 CK(check_kernel
) /* this is overwriting stuff from smatch_extra_late */