diff options
author | 2016-04-05 15:00:00 +0100 | |
---|---|---|
committer | 2016-04-18 12:35:49 +0300 | |
commit | db9f9203e27495b2d151b695504e286eec026e9b (patch) | |
tree | 2c8d22c693031da6bda1ae7976c60f176cea4e7b /tools/perf/scripts/python/stackcollapse.py | |
parent | drm/i915: Fixup the free space logic in ring_prepare (diff) | |
download | linux-dev-db9f9203e27495b2d151b695504e286eec026e9b.tar.xz linux-dev-db9f9203e27495b2d151b695504e286eec026e9b.zip |
drm/i915/userptr: Hold mmref whilst calling get-user-pages
Holding a reference to the containing task_struct is not sufficient to
prevent the mm_struct from being reaped under memory pressure. If this
happens whilst we are calling get_user_pages(), explosions erupt -
sometimes an immediate GPF, sometimes page flag corruption. To prevent
the target mm from being reaped as we are reading from it, acquire a
reference before we begin.
Testcase: igt/gem_shrink/*userptr
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Michał Winiarski <michal.winiarski@intel.com>
Cc: stable@vger.kernel.org
Reviewed-by: Michał Winiarski <michal.winiarski@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1459864801-28606-2-git-send-email-chris@chris-wilson.co.uk
(cherry picked from commit 40313f0cd0b711a7a5905e5182422799e157d8aa)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions