[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <5f9794ec-1fa2-f51f-8ecf-a922646364e1@oracle.com>
Date: Thu, 26 Oct 2017 18:54:55 -0400
From: Boris Ostrovsky <boris.ostrovsky@...cle.com>
To: Juergen Gross <jgross@...e.com>, linux-kernel@...r.kernel.org,
xen-devel@...ts.xenproject.org
Cc: stable@...r.kernel.org
Subject: Re: [PATCH] xen/gntdev: avoid out of bounds access in case of partial
gntdev_mmap()
On 10/25/2017 12:46 PM, Boris Ostrovsky wrote:
> On 10/25/2017 11:08 AM, Juergen Gross wrote:
>> In case gntdev_mmap() succeeds only partially in mapping grant pages
>> it will leave some vital information uninitialized needed later for
>> cleanup. This will lead to an out of bounds array access when unmapping
>> the already mapped pages.
>>
>> So just initialize the data needed for unmapping the pages a little bit
>> earlier.
>>
>> Cc: <stable@...r.kernel.org>
>> Reported-by: Arthur Borsboom <arthurborsboom@...il.com>
>> Signed-off-by: Juergen Gross <jgross@...e.com>
> Reviewed-by: Boris Ostrovsky <boris.ostrovsky@...cle.com>
>
Applied to for-linus-4.14c.
-boris
Powered by blists - more mailing lists