Re: proper way to annotate kernel use of sys_xxx?

From: Roland Dreier
Date: Tue Oct 05 2004 - 12:25:06 EST


Arnd> In this case, you can easily convert the calls to use
Arnd> filp_open/vfs_read/filp_close, though I'm not sure if that's
Arnd> the correct solution either.

For the do_mounts.c code, I see how the call to sys_open() could be
replaced with a call to filp_open(). However, vfs_read() still takes
a __user pointer for its buffer argument -- in fact, even the
filesystem .aio_read method takes a __user pointer. So I'm not sure
how this code should be fixed.

Thanks,
Roland
-
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/