aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/compaction-times.py
diff options
context:
space:
mode:
authorChris Wilson <[email protected]>2019-03-14 07:58:29 +0000
committerChris Wilson <[email protected]>2019-03-18 12:58:15 +0000
commit794a11cb67201ad1bb61af510bb8460280feb3f3 (patch)
tree09ca18dd377c64ac23b325ad9bc921f06502a8b3 /tools/perf/scripts/python/compaction-times.py
parent535d8d27c0e2f6c35f5f92fc0999f780f0e4b2e9 (diff)
drm/i915: Sanity check mmap length against object size
We assumed that vm_mmap() would reject an attempt to mmap past the end of the filp (our object), but we were wrong. Applications that tried to use the mmap beyond the end of the object would be greeted by a SIGBUS. After this patch, those applications will be told about the error on creating the mmap, rather than at a random moment on later access. Reported-by: Antonio Argenziano <[email protected]> Testcase: igt/gem_mmap/bad-size Signed-off-by: Chris Wilson <[email protected]> Cc: Antonio Argenziano <[email protected]> Cc: Joonas Lahtinen <[email protected]> Cc: Tvrtko Ursulin <[email protected]> Cc: [email protected] Reviewed-by: Tvrtko Ursulin <[email protected]> Reviewed-by: Joonas Lahtinen <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/compaction-times.py')
0 files changed, 0 insertions, 0 deletions