summaryrefslogtreecommitdiff
path: root/COPYING
diff options
context:
space:
mode:
authorTina Zhang <tina.zhang@intel.com>2020-02-25 13:35:27 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-03-05 16:43:45 +0100
commit30b8a98a1ab30d3622d2fa34794dd3ef0e01eca2 (patch)
tree6c503094d07477b9a42439a2895c02e7744fa1d2 /COPYING
parent55105073e43c2c94fe3cb668bb6e2a24506552c8 (diff)
drm/i915/gvt: Fix orphan vgpu dmabuf_objs' lifetime
commit b549c252b1292aea959cd9b83537fcb9384a6112 upstream. Deleting dmabuf item's list head after releasing its container can lead to KASAN-reported issue: BUG: KASAN: use-after-free in __list_del_entry_valid+0x15/0xf0 Read of size 8 at addr ffff88818a4598a8 by task kworker/u8:3/13119 So fix this issue by puting deleting dmabuf_objs ahead of releasing its container. Fixes: dfb6ae4e14bd6 ("drm/i915/gvt: Handle orphan dmabuf_objs") Signed-off-by: Tina Zhang <tina.zhang@intel.com> Reviewed-by: Zhenyu Wang <zhenyuw@linux.intel.com> Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/20200225053527.8336-2-tina.zhang@intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions