Re: [RFC PATCH 0/2] init: make sure syscall arguments are marked__user where needed

From: Andrew Morton
Date: Fri Apr 20 2012 - 19:00:37 EST


On Mon, 16 Apr 2012 17:33:23 -0700
H Hartley Sweeten <hartleys@xxxxxxxxxxxxxxxxxxx> wrote:

> 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.

This makes rather a mess of do_mounts.c for pretty marginal benefit.

Can we just make "make C=1" skip that file or something?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/