Summary: | oopses in i915_gem_free_request() | ||
---|---|---|---|
Product: | DRI | Reporter: | Eric Anholt <eric> |
Component: | DRM/Intel | Assignee: | Intel GFX Bugs mailing list <intel-gfx-bugs> |
Status: | CLOSED FIXED | QA Contact: | Intel GFX Bugs mailing list <intel-gfx-bugs> |
Severity: | major | ||
Priority: | medium | CC: | intel-gfx-bugs |
Version: | unspecified | ||
Hardware: | x86-64 (AMD64) | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
Description
Eric Anholt
2013-10-25 20:54:16 UTC
Created attachment 88125 [details]
copy of i915.ko in case someone wants to go digging before I reproduce again.
Created attachment 88130 [details] [review] Serialise i915_gem_release() and i915_gem_free_request() Chris, can I intrigue you for an i-g-t testcase to exercise this race? But nice catch, definite case of bonghits locking here ;-) Created attachment 88276 [details]
gdb log of line numbers for latest oops, for what it's worth.
Attached gdb log of trying to list line numbers on my latest oops. Doesn't look terribly useful.
commit 0d1430a3f4b7cfd8779b78740a4182321f3ca7f3 Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Wed Dec 4 14:52:06 2013 +0000 drm/i915: Hold mutex across i915_gem_release Inorder to serialise the closing of the file descriptor and its subsequent release of client requests with i915_gem_free_request(), we need to hold the struct_mutex in i915_gem_release(). Failing to do so has the potential to trigger an OOPS, later with a use-after-free. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.