/illumos-gate/usr/src/tools/smatch/src/ |
H A D | check_unwind.c | 181 add_function_hook(name, &print_unwind_functions, INT_PTR(0)); in release_function_indicator() 192 return_implies_state("request_resource", 0, 0, &request_granted, INT_PTR(1)); in check_unwind() 193 return_implies_state("request_resource", -EBUSY, -EBUSY, &request_denied, INT_PTR(1)); in check_unwind() 194 add_function_hook("release_resource", &match_release, INT_PTR(0)); in check_unwind() 197 …ate_sval("__request_region", valid_ptr_min_sval, valid_ptr_max_sval, &request_granted, INT_PTR(1)); in check_unwind() 198 return_implies_state("__request_region", 0, 0, &request_denied, INT_PTR(1)); in check_unwind() 199 add_function_hook("__release_region", &match_release, INT_PTR(1)); in check_unwind() 202 …plies_state_sval("ioremap", valid_ptr_min_sval, valid_ptr_max_sval, &request_granted, INT_PTR(-1)); in check_unwind() 203 return_implies_state("ioremap", 0, 0, &request_denied, INT_PTR(-1)); in check_unwind() 204 add_function_hook("iounmap", &match_release, INT_PTR(0)); in check_unwind() [all …]
|
H A D | smatch_param_cleared.c | 129 add_function_hook(function, &match_memcpy, INT_PTR(param)); in register_clears_param() 178 add_function_hook("memset", &match_memset, INT_PTR(0)); in register_param_cleared() 179 add_function_hook("memzero", &match_memset, INT_PTR(0)); in register_param_cleared() 180 add_function_hook("__memset", &match_memset, INT_PTR(0)); in register_param_cleared() 181 add_function_hook("__memzero", &match_memset, INT_PTR(0)); in register_param_cleared() 183 add_function_hook("memcpy", &match_memcpy, INT_PTR(0)); in register_param_cleared() 184 add_function_hook("memmove", &match_memcpy, INT_PTR(0)); in register_param_cleared() 185 add_function_hook("__memcpy", &match_memcpy, INT_PTR(0)); in register_param_cleared() 186 add_function_hook("__memmove", &match_memcpy, INT_PTR(0)); in register_param_cleared() 187 add_function_hook("strcpy", &match_memcpy, INT_PTR(0)); in register_param_cleared() [all …]
|
H A D | check_frees_param_strict.c | 150 add_function_hook("kfree", &match_free, INT_PTR(0)); in check_frees_param_strict() 151 add_function_hook("kmem_cache_free", &match_free, INT_PTR(1)); in check_frees_param_strict() 152 add_function_hook("kfree_skb", &match_free, INT_PTR(0)); in check_frees_param_strict() 153 add_function_hook("kfree_skbmem", &match_free, INT_PTR(0)); in check_frees_param_strict() 154 add_function_hook("dma_pool_free", &match_free, INT_PTR(1)); in check_frees_param_strict() 155 add_function_hook("spi_unregister_controller", &match_free, INT_PTR(0)); in check_frees_param_strict()
|
H A D | check_rosenberg.c | 292 match_clear(NULL, expr, INT_PTR(param)); in db_param_cleared() 361 add_function_hook(func, &match_clear, INT_PTR(arg)); in register_clears_argument() 387 add_function_hook(func, &match_copy_to_user, INT_PTR(arg)); in register_copy_funcs_from_file() 399 add_function_hook("memset", &match_clear, INT_PTR(0)); in check_rosenberg() 400 add_function_hook("memcpy", &match_clear, INT_PTR(0)); in check_rosenberg() 401 add_function_hook("memzero", &match_clear, INT_PTR(0)); in check_rosenberg() 402 add_function_hook("__memset", &match_clear, INT_PTR(0)); in check_rosenberg() 403 add_function_hook("__memcpy", &match_clear, INT_PTR(0)); in check_rosenberg() 404 add_function_hook("__memzero", &match_clear, INT_PTR(0)); in check_rosenberg() 405 add_function_hook("__builtin_memset", &match_clear, INT_PTR(0)); in check_rosenberg() [all …]
|
H A D | check_proc_create.c | 56 add_function_hook("proc_create", &match_create, INT_PTR(0)); in check_proc_create() 57 add_function_hook("create_proc_entry", &match_create, INT_PTR(0)); in check_proc_create() 58 add_function_hook("proc_create_data", &match_create, INT_PTR(0)); in check_proc_create() 59 add_function_hook("proc_net_fops_create", match_create, INT_PTR(1)); in check_proc_create()
|
H A D | smatch_array_values.c | 217 add_function_hook("sprintf", &mark_strings_unknown, INT_PTR(0)); in register_array_values() 218 add_function_hook("snprintf", &mark_strings_unknown, INT_PTR(0)); in register_array_values() 220 add_function_hook("strcpy", &mark_strings_unknown, INT_PTR(0)); in register_array_values() 221 add_function_hook("strncpy", &mark_strings_unknown, INT_PTR(0)); in register_array_values() 222 add_function_hook("strlcpy", &mark_strings_unknown, INT_PTR(0)); in register_array_values() 223 add_function_hook("strscpy", &mark_strings_unknown, INT_PTR(0)); in register_array_values()
|
H A D | check_atomic_inc_dec.c | 457 add_function_hook("refcount_inc", &refcount_inc, INT_PTR(0)); in check_atomic_inc_dec() 458 add_function_hook("refcount_dec", &refcount_dec, INT_PTR(0)); in check_atomic_inc_dec() 459 add_function_hook("refcount_add", &refcount_inc, INT_PTR(1)); in check_atomic_inc_dec() 461 return_implies_state("refcount_add_not_zero", 1, 1, &match_implies_inc, INT_PTR(1)); in check_atomic_inc_dec() 462 return_implies_state("refcount_inc_not_zero", 1, 1, &match_implies_inc, INT_PTR(0)); in check_atomic_inc_dec() 464 return_implies_state("atomic_dec_if_positive", 0, INT_MAX, &match_implies_atomic_dec, INT_PTR(0)); in check_atomic_inc_dec() 466 add_function_hook("refcount_sub_and_test", &refcount_dec, INT_PTR(1)); in check_atomic_inc_dec() 467 add_function_hook("refcount_dec_and_test", &refcount_dec, INT_PTR(0)); in check_atomic_inc_dec() 469 add_function_hook("pm_runtime_get_sync", &pm_runtime_get_sync, INT_PTR(0)); in check_atomic_inc_dec()
|
H A D | check_freeing_devm.c | 63 add_function_hook(func, &match_free_func, INT_PTR(arg)); in register_funcs_from_file() 82 add_function_hook("kfree", &match_free_func, INT_PTR(0)); in check_freeing_devm() 83 add_function_hook("krealloc", &match_free_func, INT_PTR(0)); in check_freeing_devm()
|
H A D | check_gfp_dma.c | 49 add_function_hook("kmalloc", &match_alloc, INT_PTR(1)); in check_gfp_dma() 50 add_function_hook("kzalloc", &match_alloc, INT_PTR(1)); in check_gfp_dma()
|
H A D | smatch_project.c | 147 insert_func(skipped_funcs, func, INT_PTR(1)); in register_skipped_functions() 176 insert_func(silenced_funcs, func, INT_PTR(1)); in register_silenced_functions() 205 insert_func(no_inline_funcs, func, INT_PTR(1)); in register_no_inline_functions()
|
H A D | check_err_ptr_deref.c | 232 add_function_hook("kfree", &match_kfree, INT_PTR(0)); in check_err_ptr_deref() 233 add_function_hook("brelse", &match_kfree, INT_PTR(0)); in check_err_ptr_deref() 234 add_function_hook("kmem_cache_free", &match_kfree, INT_PTR(1)); in check_err_ptr_deref() 235 add_function_hook("vfree", &match_kfree, INT_PTR(0)); in check_err_ptr_deref()
|
H A D | check_struct_type.c | 61 add_function_assign_hook("kmalloc", &match_assign, INT_PTR(0)); in check_struct_type() 62 add_function_assign_hook("kzalloc", &match_assign, INT_PTR(0)); in check_struct_type()
|
H A D | check_kmalloc_wrong_size.c | 89 add_function_assign_hook("calloc", &match_calloc, INT_PTR(1)); in check_kmalloc_wrong_size() 94 add_function_assign_hook("kcalloc", &match_calloc, INT_PTR(1)); in check_kmalloc_wrong_size()
|
H A D | smatch_common_functions.c | 93 add_implied_return_hook("sprintf", &match_sprintf, INT_PTR(1)); in register_common_functions() 94 add_implied_return_hook("snprintf", &match_sprintf, INT_PTR(2)); in register_common_functions()
|
H A D | check_capable.c | 109 add_function_hook("capable", &match_capable, INT_PTR(0)); in check_capable() 122 add_function_hook("ns_capable", &match_ns_capable, INT_PTR(0)); in check_ns_capable()
|
H A D | smatch_struct_assignment.c | 531 add_function_hook(function, &match_memcpy_unknown, INT_PTR(param)); in register_clears_param() 569 add_function_hook("memcpy", &match_memcpy, INT_PTR(0)); in register_struct_assignment() 570 add_function_hook("memmove", &match_memcpy, INT_PTR(0)); in register_struct_assignment() 571 add_function_hook("__memcpy", &match_memcpy, INT_PTR(0)); in register_struct_assignment() 572 add_function_hook("__memmove", &match_memcpy, INT_PTR(0)); in register_struct_assignment()
|
H A D | check_bit_shift.c | 165 add_function_hook("set_bit", &match_call, INT_PTR(0)); in check_bit_shift() 166 add_function_hook("test_bit", &match_call, INT_PTR(0)); in check_bit_shift()
|
H A D | smatch_annotate.c | 45 add_implied_return_hook("snprintf", ¶m_caps_return, INT_PTR(1)); in register_annotate()
|
H A D | check_stack.c | 59 add_scope_hook(&scope_end, INT_PTR(type_bytes(base))); in match_declarations()
|
H A D | check_frees_param.c | 99 add_function_hook("free", &match_free, INT_PTR(0)); in check_frees_param()
|
H A D | check_dma_on_stack.c | 72 add_function_hook(func, &match_dma_func, INT_PTR(arg)); in register_funcs_from_file()
|
H A D | check_free_strict.c | 350 add_function_hook("kfree", &match_free, INT_PTR(0)); in check_free_strict() 351 add_function_hook("kmem_cache_free", &match_free, INT_PTR(1)); in check_free_strict()
|
H A D | check_wrong_size_arg.c | 82 add_function_hook(func, &match_parameter, INT_PTR(size)); in register_funcs_from_file()
|
H A D | check_dev_queue_xmit.c | 119 add_function_hook(func, &match_xmit, INT_PTR(arg)); in register_funcs_from_file()
|
/illumos-gate/usr/src/tools/smatch/src/smatch_data/ |
H A D | smatch.common_functions | 9 INT_PTR
|