1 #include "check_debug.h"
3 int copy_from_user(void *dest
, void *src
, int size
){}
10 struct my_struct
*dest
;
12 struct my_struct
*returns_copy(void)
14 copy_from_user(dest
, pointer
, sizeof(*dest
));
22 __smatch_state("check_user_data", "a->x");
26 * check-name: smatch user data #2
27 * check-command: smatch -p=kernel -I.. sm_user_data2.c
30 sm_user_data2.c:22 test() 'a->x' = 'user_data_set'