https://github.com/torvalds/linux
Revision 5fa4e6f1c2d8c9a4e47e1931b42893172d388f2b authored by Oleksandr Andrushchenko on 13 August 2020, 06:21:09 UTC, committed by Juergen Gross on 13 August 2020, 10:50:22 UTC
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: bf8dc55b1358 ("xen/gntdev: Implement dma-buf import functionality")

Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Acked-by: Juergen Gross <jgross@suse.com>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20200813062113.11030-2-andr2000@gmail.com
Signed-off-by: Juergen Gross <jgross@suse.com>
1 parent f2e39e8
History
Tip revision: 5fa4e6f1c2d8c9a4e47e1931b42893172d388f2b authored by Oleksandr Andrushchenko on 13 August 2020, 06:21:09 UTC
xen/gntdev: Fix dmabuf import with non-zero sgt offset
Tip revision: 5fa4e6f
File Mode Size
Documentation
LICENSES
arch
block
certs
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.clang-format -rw-r--r-- 15.8 KB
.cocciconfig -rw-r--r-- 59 bytes
.get_maintainer.ignore -rw-r--r-- 71 bytes
.gitattributes -rw-r--r-- 62 bytes
.gitignore -rw-r--r-- 1.8 KB
.mailmap -rw-r--r-- 15.9 KB
COPYING -rw-r--r-- 496 bytes
CREDITS -rw-r--r-- 97.4 KB
Kbuild -rw-r--r-- 1.3 KB
Kconfig -rw-r--r-- 555 bytes
MAINTAINERS -rw-r--r-- 548.3 KB
Makefile -rw-r--r-- 60.5 KB
README -rw-r--r-- 727 bytes

README

back to top