/illumos-gate/usr/src/tools/smatch/src/ |
H A D | check_debug.c | 800 add_function_hook("__smatch_about", &match_about, NULL); in check_debug() 801 add_function_hook("__smatch_all_values", &match_all_values, NULL); in check_debug() 802 add_function_hook("__smatch_state", &match_state, NULL); in check_debug() 803 add_function_hook("__smatch_states", &match_states, NULL); in check_debug() 804 add_function_hook("__smatch_value", &match_print_value, NULL); in check_debug() 805 add_function_hook("__smatch_known", &match_print_known, NULL); in check_debug() 806 add_function_hook("__smatch_implied", &match_print_implied, NULL); in check_debug() 807 add_function_hook("__smatch_implied_min", &match_print_implied_min, NULL); in check_debug() 808 add_function_hook("__smatch_implied_max", &match_print_implied_max, NULL); in check_debug() 809 add_function_hook("__smatch_user_rl", &match_user_rl, NULL); in check_debug() [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_atomic_inc_dec.c | 440 add_function_hook("atomic_inc_return", &match_atomic_inc, NULL); in check_atomic_inc_dec() 441 add_function_hook("atomic_add_return", &match_atomic_add, NULL); in check_atomic_inc_dec() 442 add_function_hook("atomic_sub_return", &match_atomic_sub, NULL); in check_atomic_inc_dec() 443 add_function_hook("atomic_sub_and_test", &match_atomic_sub, NULL); in check_atomic_inc_dec() 444 add_function_hook("atomic_long_sub_and_test", &match_atomic_sub, NULL); in check_atomic_inc_dec() 445 add_function_hook("atomic64_sub_and_test", &match_atomic_sub, NULL); in check_atomic_inc_dec() 446 add_function_hook("atomic_dec_and_test", &match_atomic_dec, NULL); in check_atomic_inc_dec() 447 add_function_hook("atomic_long_dec_and_test", &match_atomic_dec, NULL); in check_atomic_inc_dec() 448 add_function_hook("atomic64_dec_and_test", &match_atomic_dec, NULL); in check_atomic_inc_dec() 449 add_function_hook("_atomic_dec_and_lock", &match_atomic_dec, NULL); in check_atomic_inc_dec() [all …]
|
H A D | check_test_bit.c | 48 add_function_hook("test_bit", &match_test_bit, NULL); in check_test_bit() 49 add_function_hook("variable_test_bit", &match_test_bit, NULL); in check_test_bit() 50 add_function_hook("set_bit", &match_test_bit, NULL); in check_test_bit() 51 add_function_hook("clear_bit", &match_test_bit, NULL); in check_test_bit() 52 add_function_hook("test_and_clear_bit", &match_test_bit, NULL); in check_test_bit() 53 add_function_hook("test_and_set_bit", &match_test_bit, NULL); in check_test_bit()
|
H A D | check_unwind.c | 171 add_function_hook(func, &match_unwind_function, NULL); in register_unwind_functions() 181 add_function_hook(name, &print_unwind_functions, INT_PTR(0)); in release_function_indicator() 194 add_function_hook("release_resource", &match_release, INT_PTR(0)); in check_unwind() 199 add_function_hook("__release_region", &match_release, INT_PTR(1)); in check_unwind() 204 add_function_hook("iounmap", &match_release, INT_PTR(0)); in check_unwind() 208 add_function_hook("pci_iounmap", &match_release, INT_PTR(1)); in check_unwind() 214 add_function_hook("destroy_workqueue", &match_release, INT_PTR(0)); in check_unwind() 218 add_function_hook("free_irq", &match_release, INT_PTR(0)); in check_unwind() 223 add_function_hook("unregister_netdev", &match_release, INT_PTR(0)); in check_unwind() 228 add_function_hook("misc_deregister", &match_release, INT_PTR(0)); in check_unwind()
|
H A D | check_resource_size.c | 83 add_function_hook("ioremap_nocache", &match_resource, (void *)1); in check_resource_size() 84 add_function_hook("ioremap", &match_resource, (void *)1); in check_resource_size() 85 add_function_hook("__request_region", &match_resource, (void *)2); in check_resource_size() 86 add_function_hook("__release_region", &match_resource, (void *)2); in check_resource_size() 87 add_function_hook("__devm_request_region", &match_resource, (void *)3); in check_resource_size() 88 add_function_hook("__devm_release_region", &match_resource, (void *)3); in check_resource_size()
|
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_info_leak.c | 89 add_function_hook("strcpy", &match_strcpy, NULL); in check_info_leak() 90 add_function_hook("strlcpy", &match_strcpy, NULL); in check_info_leak() 91 add_function_hook("strlcat", &match_strcpy, NULL); in check_info_leak() 92 add_function_hook("strncpy", &match_strcpy, NULL); in check_info_leak() 93 add_function_hook("copy_to_user", &match_copy_to_user, NULL); in check_info_leak()
|
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 | check_rosenberg.c | 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() 406 add_function_hook("__builtin_memcpy", &match_clear, INT_PTR(0)); in check_rosenberg()
|
H A D | check_release_resource.c | 85 add_function_hook("request_resource", &match_request, (void *)1); in check_release_resource() 86 add_function_hook("release_resource", &match_release, (void *)0); in check_release_resource() 87 add_function_hook("request_mem_resource", &match_request, (void *)0); in check_release_resource() 88 add_function_hook("release_mem_resource", &match_release, (void *)0); in check_release_resource()
|
H A D | check_memcpy_overflow.c | 323 add_function_hook(func, &match_limited, limiter); in register_funcs_from_file() 362 add_function_hook("memcmp", &match_limited, &b0_l2); in check_memcpy_overflow() 363 add_function_hook("memcmp", &match_limited, &b1_l2); in check_memcpy_overflow() 365 add_function_hook("copy_to_user", &match_limited, &b1_l2); in check_memcpy_overflow() 366 add_function_hook("_copy_to_user", &match_limited, &b1_l2); in check_memcpy_overflow() 367 add_function_hook("__copy_to_user", &match_limited, &b1_l2); in check_memcpy_overflow() 368 add_function_hook("copy_from_user", &match_limited, &b0_l2); in check_memcpy_overflow() 369 add_function_hook("_copy_from_user", &match_limited, &b0_l2); in check_memcpy_overflow() 370 add_function_hook("__copy_from_user", &match_limited, &b0_l2); in check_memcpy_overflow()
|
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_err_ptr_deref.c | 228 add_function_hook("ERR_PTR", &match_err_ptr_positive_const, NULL); in check_err_ptr_deref() 229 add_function_hook("ERR_PTR", &match_err_ptr, NULL); in check_err_ptr_deref() 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_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_kunmap.c | 84 add_function_hook("kunmap", &match_kunmap, NULL); in check_kunmap() 85 add_function_hook("kmap_atomic", &match_kmap_atomic, NULL); in check_kunmap() 86 add_function_hook("kunmap_atomic", &match_kunmap_atomic, NULL); in check_kunmap()
|
H A D | smatch_struct_assignment.c | 531 add_function_hook(function, &match_memcpy_unknown, INT_PTR(param)); in register_clears_param() 566 add_function_hook("memset", &match_memset, NULL); in register_struct_assignment() 567 add_function_hook("__memset", &match_memset, NULL); in register_struct_assignment() 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() 577 add_function_hook("sscanf", &match_sscanf, NULL); in register_struct_assignment()
|
H A D | check_freeing_null.c | 44 add_function_hook("kfree", &match_free, NULL); in check_freeing_null() 46 add_function_hook("free", &match_free, NULL); in check_freeing_null()
|
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 | check_memset.c | 58 add_function_hook("memset", &match_memset, NULL); in check_memset() 59 add_function_hook("__builtin_memset", &match_memset, NULL); in check_memset()
|
H A D | smatch_strings.c | 149 add_function_hook("strcpy", &match_strcpy, NULL); in register_strings() 150 add_function_hook("strlcpy", &match_strcpy, NULL); in register_strings() 151 add_function_hook("strncpy", &match_strcpy, NULL); in register_strings()
|
H A D | check_input_free_device.c | 67 add_function_hook("input_unregister_device", &match_input_unregister, NULL); in check_input_free_device() 68 add_function_hook("input_free_device", &match_input_free, NULL); in check_input_free_device()
|
H A D | check_zero_to_err_ptr.c | 169 add_function_hook("ERR_PTR", &match_err_ptr, NULL); in check_zero_to_err_ptr() 170 add_function_hook("ERR_CAST", &match_err_ptr, NULL); in check_zero_to_err_ptr() 171 add_function_hook("PTR_ERR", &match_err_ptr, NULL); in check_zero_to_err_ptr()
|
H A D | smatch_strlen.c | 349 add_function_hook("snprintf", &match_snprintf, NULL); in register_strlen() 351 add_function_hook("strlcpy", &match_strlcpycat, NULL); in register_strlen() 352 add_function_hook("strlcat", &match_strlcpycat, NULL); in register_strlen() 353 add_function_hook("strcpy", &match_strcpy, NULL); in register_strlen()
|
H A D | check_held_dev.c | 131 add_function_hook("dev_hold", &match_dev_hold, NULL); in check_held_dev() 132 add_function_hook("dev_put", &match_dev_put, NULL); in check_held_dev()
|