[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20160229082914.GA3471@cbox>
Date: Mon, 29 Feb 2016 09:29:14 +0100
From: Christoffer Dall <christoffer.dall@...aro.org>
To: "Michael S. Tsirkin" <mst@...hat.com>
Cc: linux-kernel@...r.kernel.org, stable@...r.kernel.org,
Marc Zyngier <marc.zyngier@....com>,
Paolo Bonzini <pbonzini@...hat.com>,
Russell King <linux@....linux.org.uk>,
Catalin Marinas <catalin.marinas@....com>,
Will Deacon <will.deacon@....com>,
linux-arm-kernel@...ts.infradead.org, kvmarm@...ts.cs.columbia.edu,
kvm@...r.kernel.org, Dan Carpenter <dan.carpenter@...cle.com>
Subject: Re: [PATCH for-4.5] arm/kvm: fix ioctl error handling
On Sun, Feb 28, 2016 at 05:32:07PM +0200, Michael S. Tsirkin wrote:
> Calling return copy_to_user(...) in an ioctl will not
> do the right thing if there's a pagefault:
> copy_to_user returns the number of bytes not copied
> in this case.
>
> Fix up kvm to do
> return copy_to_user(...)) ? -EFAULT : 0;
>
> everywhere.
>
> Cc: stable@...r.kernel.org
> Signed-off-by: Michael S. Tsirkin <mst@...hat.com>
Acked-by: Christoffer Dall <christoffer.dall@...aro.org>
Powered by blists - more mailing lists