1 #include "check_debug.h"
3 int copy_from_user(void *dest
, void *src
, int size
);
11 void copy_stuff(struct my_struct
*foo
)
13 copy_from_user(foo
, pointer
, sizeof(*foo
));
21 __smatch_state("check_user_data", "foo.x");
24 * check-name: smatch user data #1
25 * check-command: smatch -p=kernel -I.. sm_user_data1.c
28 sm_user_data1.c:21 test() 'foo.x' = 'user_data_set'