summaryrefslogtreecommitdiffstats
path: root/arch/mips
diff options
context:
space:
mode:
authorChris Wilson2009-09-23 01:43:56 +0200
committerEric Anholt2009-09-23 03:25:32 +0200
commitc715089f49844260f1eeae8e3b55af9468ba1325 (patch)
tree0d0b72a77c75c84ad2cf4e473fda0b31e976a47a /arch/mips
parentdrm/i915: Warn before mmaping a purgeable buffer. (diff)
downloadkernel-qcow2-linux-c715089f49844260f1eeae8e3b55af9468ba1325.tar.gz
kernel-qcow2-linux-c715089f49844260f1eeae8e3b55af9468ba1325.tar.xz
kernel-qcow2-linux-c715089f49844260f1eeae8e3b55af9468ba1325.zip
drm/i915: Handle ERESTARTSYS during page fault
During a page fault and rebinding the buffer there exists a window for a signal to arrive during the i915_wait_request() and trigger a ERESTARTSYS. This used to be handled by returning SIGBUS and thereby killing the application. Try 'cairo-perf-trace & cairo-test-suite' and watch X go boom! The solution as suggested by H. Peter Anvin is to simply return NOPAGE and leave the higher layers to spot we did not fill the page and resubmit the page fault. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: stable@kernel.org [anholt: Mostly squash it with another commit]
Diffstat (limited to 'arch/mips')
0 files changed, 0 insertions, 0 deletions