Re: [PATCH] put_user() on struct is not nice

2007-09-25 Thread Al Viro
On Wed, Sep 26, 2007 at 12:05:46PM +1000, Rusty Russell wrote: > On Wed, 2007-09-26 at 01:54 +0100, Al Viro wrote: > > use copy_to_user() instead... > > Thanks Al, Jes sent me the same fix which I have queued for for 2.6.24: OK, decision on urgency is up to you - post .23 is fine by me... - To un

Re: [PATCH] put_user() on struct is not nice

2007-09-25 Thread Rusty Russell
On Wed, 2007-09-26 at 01:54 +0100, Al Viro wrote: > use copy_to_user() instead... Thanks Al, Jes sent me the same fix which I have queued for for 2.6.24: From: Jes Sorensen <[EMAIL PROTECTED]> Use copy_to_user() when copying a struct timespec to the guest - put_user() cannot handle two long's in

[PATCH] put_user() on struct is not nice

2007-09-25 Thread Al Viro
use copy_to_user() instead... Signed-off-by: Al Viro <[EMAIL PROTECTED]> --- drivers/lguest/hypercalls.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/lguest/hypercalls.c b/drivers/lguest/hypercalls.c index db6caac..5ecd60b 100644 --- a/drivers/lguest/hypercal