[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 1/6] xen/gntdev: Fix dmabuf import with non-zero sgt offset
- To: Oleksandr Andrushchenko <andr2000@xxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx, dri-devel@xxxxxxxxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, boris.ostrovsky@xxxxxxxxxx, airlied@xxxxxxxx, daniel@xxxxxxxx
- From: Jürgen Groß <jgross@xxxxxxxx>
- Date: Tue, 4 Aug 2020 08:11:47 +0200
- Cc: intel-gfx@xxxxxxxxxxxxxxxxxxxxx, sstabellini@xxxxxxxxxx, dan.carpenter@xxxxxxxxxx, Oleksandr Andrushchenko <oleksandr_andrushchenko@xxxxxxxx>
- Delivery-date: Tue, 04 Aug 2020 06:12:02 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 31.07.20 14:51, Oleksandr Andrushchenko wrote:
From: Oleksandr Andrushchenko <oleksandr_andrushchenko@xxxxxxxx>
It is possible that the scatter-gather table during dmabuf import has
non-zero offset of the data, but user-space doesn't expect that.
Fix this by failing the import, so user-space doesn't access wrong data.
Fixes: 37ccb44d0b00 ("xen/gntdev: Implement dma-buf import functionality")
I can't find this commit in the tree. Did you mean bf8dc55b1358?
And don't you want to Cc stable for this patch, too?
Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@xxxxxxxx>
Acked-by: Juergen Gross <jgross@xxxxxxxx>
Juergen
|