Re: [PATCH 2/3 RESEND] ptrace: cleanup address space conversion on ptrace_request()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Christoph Hellwig
Date: Monday, August 23, 2010 - 9:21 am

On Tue, Aug 24, 2010 at 01:06:15AM +0900, Namhyung Kim wrote:

Just make this a

	void __user *datap = (void __user *)data;

and you can pass it around withjout additional casts.  Also no need
for the force here I think.

You'll still need a cast for the put_user calls, or you could just
convert them to copy_to_user which is fine with a void pointer.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 2/3] ptrace: add __force markup, Namhyung Kim, (Sun Aug 22, 3:22 am)
Re: [PATCH 2/3] ptrace: add __force markup, Arnd Bergmann, (Sun Aug 22, 1:06 pm)
Re: [PATCH 2/3 RESEND] ptrace: cleanup address space conve ..., Christoph Hellwig, (Mon Aug 23, 9:21 am)