diff options
author | Gustavo Padovan <[email protected]> | 2017-01-13 12:22:09 -0200 |
---|---|---|
committer | Gustavo Padovan <[email protected]> | 2017-01-16 20:00:54 -0200 |
commit | 7e9081c5aac73b8a0bc22e0b3e7a12c3e9cf5256 (patch) | |
tree | 44fbde9719a4eaa462447e2049f30fd1e408bb0c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 3846fd9b86001bea171943cc3bb9222cb6da6b42 (diff) |
drm/fence: fix memory overwrite when setting out_fence fd
Currently if the userspace declares a int variable to store the out_fence
fd and pass it to OUT_FENCE_PTR the kernel will overwrite the 32 bits
above the int variable on 64 bits systems.
Fix this by making the internal storage of out_fence in the kernel a s32
pointer.
Reported-by: Chad Versace <[email protected]>
Signed-off-by: Gustavo Padovan <[email protected]>
Fixes: beaf5af48034 ("drm/fence: add out-fences support")
Cc: Daniel Vetter <[email protected]>
Cc: Rafael Antognolli <[email protected]>
Cc: Laurent Pinchart <[email protected]>
Acked-by: Laurent Pinchart <[email protected]>
Reviewed-and-Tested-by: Chad Versace <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions