diff options
author | Nirmoy Das <nirmoy.das@intel.com> | 2022-09-23 09:35:14 +0200 |
---|---|---|
committer | Andi Shyti <andi.shyti@linux.intel.com> | 2022-09-29 13:29:38 +0200 |
commit | c50cec9bab620927445e9c7c050a8fae536557b8 (patch) | |
tree | e4a2a1cffc8c15e4af298fbc6baefef2e920d2d5 /drivers/usb/cdns3/cdns3-debug.h | |
parent | 59cfc750f537b973e17583ce8f14a913401a5ac0 (diff) |
drm/i915: Fix a potential UAF at device unload
i915_gem_drain_freed_objects() might not be enough to
free all the objects and RCU delayed work might get
scheduled after the i915 device struct gets freed.
Call i915_gem_drain_workqueue() to catch all RCU delayed work.
Suggested-by: Chris Wilson <chris.p.wilson@intel.com>
Acked-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: Nirmoy Das <nirmoy.das@intel.com>
Reviewed-by: Andrzej Hajda <andrzej.hajda@intel.com>
Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220923073515.23093-1-nirmoy.das@intel.com
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions