* kernel/sys.c:1868:2: warning: passing argument 2 of 'access_ok' makes pointer from integer without a
@ 2012-10-07 0:20 Fengguang Wu
2012-10-07 21:36 ` kernel/sys.c:1868:2: warning: passing argument 2 of 'access_ok' makes pointer from integer witho Cyrill Gorcunov
0 siblings, 1 reply; 2+ messages in thread
From: Fengguang Wu @ 2012-10-07 0:20 UTC (permalink / raw)
To: kernel-janitors
Hi Cyrill,
FYI, there are new compile warnings show up in
commit: 20e61e149ba9a4fe4c4867a76e399879d802e669 prctl: use access_ok() instead of TASK_SIZE in prctl_set_mm()
config: m68k-allmodconfig
All warnings:
kernel/sys.c: In function 'prctl_set_mm':
kernel/sys.c:1868:2: warning: passing argument 2 of 'access_ok' makes pointer from integer without a cast [enabled by default]
arch/m68k/include/asm/uaccess_mm.h:17:19: note: expected 'const void *' but argument is of type 'long unsigned int'
vim +1868 kernel/sys.c
028ee4be (Cyrill Gorcunov 2012-01-12 1852) unsigned long arg4, unsigned long arg5)
028ee4be (Cyrill Gorcunov 2012-01-12 1853) {
028ee4be (Cyrill Gorcunov 2012-01-12 1854) unsigned long rlim = rlimit(RLIMIT_DATA);
028ee4be (Cyrill Gorcunov 2012-01-12 1855) struct mm_struct *mm = current->mm;
fe8c7f5c (Cyrill Gorcunov 2012-05-31 1856) struct vm_area_struct *vma;
fe8c7f5c (Cyrill Gorcunov 2012-05-31 1857) int error;
028ee4be (Cyrill Gorcunov 2012-01-12 1858)
fe8c7f5c (Cyrill Gorcunov 2012-05-31 1859) if (arg5 || (arg4 && opt != PR_SET_MM_AUXV))
028ee4be (Cyrill Gorcunov 2012-01-12 1860) return -EINVAL;
028ee4be (Cyrill Gorcunov 2012-01-12 1861)
79f0713d (Cyrill Gorcunov 2012-03-15 1862) if (!capable(CAP_SYS_RESOURCE))
028ee4be (Cyrill Gorcunov 2012-01-12 1863) return -EPERM;
028ee4be (Cyrill Gorcunov 2012-01-12 1864)
b32dfe37 (Cyrill Gorcunov 2012-05-31 1865) if (opt = PR_SET_MM_EXE_FILE)
b32dfe37 (Cyrill Gorcunov 2012-05-31 1866) return prctl_set_mm_exe_file(mm, (unsigned int)addr);
b32dfe37 (Cyrill Gorcunov 2012-05-31 1867)
20e61e14 (Cyrill Gorcunov 2012-09-26 @1868) if (!access_ok(VERIFY_READ, addr, sizeof(addr)) || addr < mmap_min_addr)
028ee4be (Cyrill Gorcunov 2012-01-12 1869) return -EINVAL;
028ee4be (Cyrill Gorcunov 2012-01-12 1870)
fe8c7f5c (Cyrill Gorcunov 2012-05-31 1871) error = -EINVAL;
fe8c7f5c (Cyrill Gorcunov 2012-05-31 1872)
028ee4be (Cyrill Gorcunov 2012-01-12 1873) down_read(&mm->mmap_sem);
028ee4be (Cyrill Gorcunov 2012-01-12 1874) vma = find_vma(mm, addr);
028ee4be (Cyrill Gorcunov 2012-01-12 1875)
028ee4be (Cyrill Gorcunov 2012-01-12 1876) switch (opt) {
---
0-DAY kernel build testing backend Open Source Technology Center
Fengguang Wu, Yuanhan Liu Intel Corporation
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: kernel/sys.c:1868:2: warning: passing argument 2 of 'access_ok' makes pointer from integer witho
2012-10-07 0:20 kernel/sys.c:1868:2: warning: passing argument 2 of 'access_ok' makes pointer from integer without a Fengguang Wu
@ 2012-10-07 21:36 ` Cyrill Gorcunov
0 siblings, 0 replies; 2+ messages in thread
From: Cyrill Gorcunov @ 2012-10-07 21:36 UTC (permalink / raw)
To: kernel-janitors
On Sun, Oct 07, 2012 at 08:20:16AM +0800, Fengguang Wu wrote:
> Hi Cyrill,
>
> FYI, there are new compile warnings show up in
>
> commit: 20e61e149ba9a4fe4c4867a76e399879d802e669 prctl: use access_ok() instead of TASK_SIZE in prctl_set_mm()
> config: m68k-allmodconfig
Hi Fengguang,
yeah, I know. This commit was being dropped by Andrew Morton, so I rather
simply wait now until I move my tree on new -rc (once it's out) and
this commit will dissapear.
Cyrill
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-10-07 21:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-07 0:20 kernel/sys.c:1868:2: warning: passing argument 2 of 'access_ok' makes pointer from integer without a Fengguang Wu
2012-10-07 21:36 ` kernel/sys.c:1868:2: warning: passing argument 2 of 'access_ok' makes pointer from integer witho Cyrill Gorcunov
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.