lkml.org 
[lkml]   [2012]   [Apr]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[RFC PATCH 0/2] init: make sure syscall arguments are marked __user where needed
Date
When using syscall routines in the kernel, some of the arguments
should be user pointers but are missing the __user markup. This
produces a number of sparse warnings of the format:

warning: incorrect type in argument 1 (different address spaces)
expected char [noderef] <asn:1>*dev_name
got char *name

Wrap the syscall routines in the private do_mounts.h header so that
the appropriate __user markups are added for the init mount code.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Andrew Morton <akpm@linux-foundation.org>

init: introduce private syscall wrappers for non-user space pointers
init: use private syscall wrappers for non-user space pointers

init/do_mounts.c | 14 +++---
init/do_mounts.h | 107 ++++++++++++++++++++++++++++++++++++++++++++++-
init/do_mounts_initrd.c | 28 ++++++------
init/do_mounts_md.c | 6 +-
init/do_mounts_rd.c | 22 +++++-----
init/initramfs.c | 54 ++++++++++++-----------
init/noinitramfs.c | 9 ++--
7 files changed, 173 insertions(+), 67 deletions(-)


\
 
 \ /
  Last update: 2012-04-17 02:37    [W:0.050 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site