0-145 home keyliaran AKRM trunk src lkm app_plugin exec In function ge

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
4.4.0-145
/home/keyliaran/AKRM/trunk/src/lkm/app_plugin/exec.c: In function ‘get_arg_page’:
/home/keyliaran/AKRM/trunk/src/lkm/app_plugin/exec.c:288:60: warning: passing argument 6 of ‘get_user_pages’ makes pointer from integer without a cast [-Wint-conversion]
ret = get_user_pages(current, bprm->mm, pos, 1, write, 1, &page, NULL);
^
In file included from include/linux/pid_namespace.h:6:0,
from include/linux/ptrace.h:8,
from include/linux/ftrace.h:13,
from include/linux/kprobes.h:42,
from /home/keyliaran/AKRM/trunk/src/lkm/app_plugin/../common.h:19,
from /home/keyliaran/AKRM/trunk/src/lkm/app_plugin/exec.h:4,
from /home/keyliaran/AKRM/trunk/src/lkm/app_plugin/exec.c:1:
include/linux/mm.h:1222:6: note: expected ‘struct page **’ but argument is of type ‘int’
long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
^~~~~~~~~~~~~~
/home/keyliaran/AKRM/trunk/src/lkm/app_plugin/exec.c:288:63: warning: passing argument 7 of ‘get_user_pages’ from incompatible pointer type [-Wincompatible-pointer-types]
ret = get_user_pages(current, bprm->mm, pos, 1, write, 1, &page, NULL);
^
In file included from include/linux/pid_namespace.h:6:0,
from include/linux/ptrace.h:8,
from include/linux/ftrace.h:13,
from include/linux/kprobes.h:42,
from /home/keyliaran/AKRM/trunk/src/lkm/app_plugin/../common.h:19,
from /home/keyliaran/AKRM/trunk/src/lkm/app_plugin/exec.h:4,
from /home/keyliaran/AKRM/trunk/src/lkm/app_plugin/exec.c:1:
include/linux/mm.h:1222:6: note: expected ‘struct vm_area_struct **’ but argument is of type ‘struct page **’
long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
^~~~~~~~~~~~~~
/home/keyliaran/AKRM/trunk/src/lkm/app_plugin/exec.c:288:11: error: too many arguments to function ‘get_user_pages’
ret = get_user_pages(current, bprm->mm, pos, 1, write, 1, &page, NULL);
^~~~~~~~~~~~~~
In file included from include/linux/pid_namespace.h:6:0,
from include/linux/ptrace.h:8,
from include/linux/ftrace.h:13,
from include/linux/kprobes.h:42,
from /home/keyliaran/AKRM/trunk/src/lkm/app_plugin/../common.h:19,
from /home/keyliaran/AKRM/trunk/src/lkm/app_plugin/exec.h:4,
from /home/keyliaran/AKRM/trunk/src/lkm/app_plugin/exec.c:1:
include/linux/mm.h:1222:6: note: declared here
long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
^~~~~~~~~~~~~~
/home/keyliaran/AKRM/trunk/src/lkm/app_plugin/exec.c: In function ‘add_arguments’: