summaryrefslogtreecommitdiffstats
path: root/mm/madvise.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2018-09-03 09:33:34 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2018-09-03 12:02:02 +0100
commitaae7c06b34e4a351c8dab28f3cda6b1ba0637bf9 (patch)
tree02730335e80fe50574bacc74a8170642abc15f45 /mm/madvise.c
parent2bfbf6fed1a0f672726b0637b89b44d94dedd2b6 (diff)
downloadlinux-aae7c06b34e4a351c8dab28f3cda6b1ba0637bf9.tar.bz2
drm/i915: Flag any possible writes for a GTT fault
We do not explicitly mark the PTE for the user's GTT mmap as being wrprotect, so we don't get a refault when we would need to change a read-only mmapping into read-write. As such, we must presume that if the vma has PROT_WRITE it may be written to, although this is supposed to be indicated by set-domain there are cases (e.g. after swap) where userspace may not be aware of the implicit domain change. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20180903083337.13134-2-chris@chris-wilson.co.uk
Diffstat (limited to 'mm/madvise.c')
0 files changed, 0 insertions, 0 deletions