linux_dsm_epyc7002/drivers/gpu/drm/panfrost
Steven Price 65e51e30d8 drm/panfrost: Prevent race when handling page fault
When handling a GPU page fault addr_to_drm_mm_node() is used to
translate the GPU address to a buffer object. However it is possible for
the buffer object to be freed after the function has returned resulting
in a use-after-free of the BO.

Change addr_to_drm_mm_node to return the panfrost_gem_object with an
extra reference on it, preventing the BO from being freed until after
the page fault has been handled.

Signed-off-by: Steven Price <steven.price@arm.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190913160310.50444-1-steven.price@arm.com
2019-09-19 11:48:57 -05:00
..
Kconfig drm/panfrost: Require the simple_ondemand governor 2019-06-10 09:30:34 -06:00
Makefile drm/panfrost: Add madvise and shrinker support 2019-08-08 15:57:36 -06:00
panfrost_devfreq.c drm/panfrost: Remove NULL checks for regulator 2019-09-19 11:45:44 -05:00
panfrost_devfreq.h drm/panfrost: Remove opp table when unloading 2019-08-19 11:38:51 -05:00
panfrost_device.c drm/panfrost: Fix regulator_get_optional() misuse 2019-09-19 11:45:44 -05:00
panfrost_device.h drm/panfrost: Remove unnecessary hwaccess_lock spin_lock 2019-08-30 09:53:52 -05:00
panfrost_drv.c drm/panfrost: Rework runtime PM initialization 2019-08-30 09:51:41 -05:00
panfrost_features.h
panfrost_gem_shrinker.c drm/panfrost: Use mutex_trylock in panfrost_gem_purge 2019-08-28 10:02:39 -05:00
panfrost_gem.c drm/panfrost: Fix sleeping while atomic in panfrost_gem_open 2019-08-22 20:44:19 -05:00
panfrost_gem.h drm/panfrost: Implement per FD address spaces 2019-08-19 11:34:57 -05:00
panfrost_gpu.c drm/panfrost: Export all GPU feature registers 2019-07-25 16:10:52 -06:00
panfrost_gpu.h
panfrost_issues.h
panfrost_job.c drm/panfrost: Remove unnecessary hwaccess_lock spin_lock 2019-08-30 09:53:52 -05:00
panfrost_job.h
panfrost_mmu.c drm/panfrost: Prevent race when handling page fault 2019-09-19 11:48:57 -05:00
panfrost_mmu.h drm/panfrost: Implement per FD address spaces 2019-08-19 11:34:57 -05:00
panfrost_perfcnt.c drm/panfrost: Expose performance counters through unstable ioctls 2019-06-18 09:23:48 -06:00
panfrost_perfcnt.h drm/panfrost: Expose performance counters through unstable ioctls 2019-06-18 09:23:48 -06:00
panfrost_regs.h drm/panfrost: Expose performance counters through unstable ioctls 2019-06-18 09:23:48 -06:00
TODO drm/panfrost: Implement per FD address spaces 2019-08-19 11:34:57 -05:00