lkml.org 
[lkml]   [2017]   [Oct]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] xen/gntdev: avoid out of bounds access in case of partial gntdev_mmap()
From
Date
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@vger.kernel.org>
>> Reported-by: Arthur Borsboom <arthurborsboom@gmail.com>
>> Signed-off-by: Juergen Gross <jgross@suse.com>
> Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
>


Applied to for-linus-4.14c.

-boris

\
 
 \ /
  Last update: 2017-10-27 00:54    [W:0.040 / U:4.008 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site