aboutsummaryrefslogtreecommitdiff
path: root/lib/test-string_helpers.c
diff options
context:
space:
mode:
authorMichał Winiarski <[email protected]>2015-02-03 15:48:17 +0100
committerJani Nikula <[email protected]>2015-02-05 16:31:30 +0200
commit460822b0b1a77db859b0320469799fa4dbe4d367 (patch)
tree3f2e09686dc7e70d82a75c4d475e84f944606ebe /lib/test-string_helpers.c
parent1293eaa3ebf92f146f366d9b678a07b8b3200ea1 (diff)
drm/i915: Prevent use-after-free in invalidate_range_start callback
It's possible for invalidate_range_start mmu notifier callback to race against userptr object release. If the gem object was released prior to obtaining the spinlock in invalidate_range_start we're hitting null pointer dereference. Testcase: igt/gem_userptr_blits/stress-mm-invalidate-close Testcase: igt/gem_userptr_blits/stress-mm-invalidate-close-overlap Cc: Chris Wilson <[email protected]> Signed-off-by: Michał Winiarski <[email protected]> Reviewed-by: Chris Wilson <[email protected]> Cc: [email protected] [Jani: added code comment suggested by Chris] Signed-off-by: Jani Nikula <[email protected]>
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions