dereferences_param: mark more parameters as dereferenced
[smatch.git] / check_list.h
blob97c79607364aab3edeb0a9c29ef81acddf5aa7cc
1 #ifndef CK
2 #define CK(_x) void _x(int id);
3 #define __undo_CK_def
4 #endif
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
15 * hooks have run.
18 CK(register_implications)
19 CK(register_definition_db_callbacks)
20 CK(register_project)
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)
32 CK(register_buf_size)
33 CK(register_strlen)
34 CK(register_strlen_equiv)
35 CK(register_capped)
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)
44 CK(register_annotate)
45 CK(register_start_states)
46 CK(register_type_val)
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)
53 CK(register_strings)
54 CK(register_integer_overflow)
55 CK(register_integer_overflow_links)
56 CK(register_real_absolute)
57 CK(register_imaginary_absolute)
58 CK(register_bits)
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)
67 CK(register_mtag)
68 CK(register_mtag_map)
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)
81 CK(check_debug)
83 CK(check_bogus_loop)
85 CK(check_deref)
86 CK(check_check_deref)
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)
96 CK(check_leaks)
97 CK(check_type)
98 CK(check_allocation_funcs)
99 CK(check_frees_argument)
100 CK(check_deref_check)
101 CK(check_signed)
102 CK(check_precedence)
103 CK(check_unused_ret)
104 CK(check_dma_on_stack)
105 CK(check_param_mapper)
106 CK(check_call_tree)
107 CK(check_dev_queue_xmit)
108 CK(check_stack)
109 CK(check_no_return)
110 CK(check_mod_timer)
111 CK(check_return)
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)
117 CK(check_free)
118 CK(check_frees_param_strict)
119 CK(check_free_strict)
120 CK(check_no_effect)
121 CK(check_kunmap)
122 CK(check_snprintf)
123 CK(check_macros)
124 CK(check_return_efault)
125 CK(check_gfp_dma)
126 CK(check_unwind)
127 CK(check_kmalloc_to_bugon)
128 CK(check_platform_device_put)
129 CK(check_info_leak)
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)
136 CK(check_select)
137 CK(check_memset)
138 CK(check_logical_instead_of_bitwise)
139 CK(check_kmalloc_wrong_size)
140 CK(check_pointer_math)
141 CK(check_bit_shift)
142 CK(check_macro_side_effects)
143 CK(check_sizeof)
144 CK(check_return_cast)
145 CK(check_or_vs_and)
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)
157 CK(check_indenting)
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)
173 CK(check_locking)
174 CK(check_puts_argument)
175 CK(check_err_ptr)
176 CK(check_err_ptr_deref)
177 CK(check_expects_err_ptr)
178 CK(check_held_dev)
179 CK(check_return_negative_var)
180 CK(check_rosenberg)
181 CK(check_rosenberg2)
182 CK(check_rosenberg3)
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)
188 CK(check_capable)
189 CK(check_ns_capable)
190 CK(check_test_bit)
191 CK(check_dma_mapping_error)
192 CK(check_nospec)
193 CK(check_nospec_barrier)
194 CK(check_spectre)
195 CK(check_spectre_second_half)
196 CK(check_implicit_dependencies)
198 /* wine specific stuff */
199 CK(check_wine_filehandles)
200 CK(check_wine_WtoA)
202 CK(check_arm64_tagged)
204 /* illumos specific */
205 CK(check_all_func_returns)
206 CK(check_cmn_err)
208 #include "check_list_local.h"
210 CK(register_scope)
211 CK(register_stored_conditions)
212 CK(register_stored_conditions_links)
213 CK(register_parsed_conditions)
214 CK(register_sval)
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 */
223 CK(check_wine)
224 CK(register_returns)
226 #ifdef __undo_CK_def
227 #undef CK
228 #undef __undo_CK_def
229 #endif