Matthew Brost
a63bcf08f0
drm/i915: Fix syncmap memory leak
A small race exists between intel_gt_retire_requests_timeout and
intel_timeline_exit which could result in the syncmap not getting
free'd. Rather than work to hard to seal this race, simply cleanup the
syncmap on fini.
unreferenced object 0xffff88813bc53b18 (size 96):
comm "gem_close_race", pid 5410, jiffies 4294917818 (age 1105.600s)
hex dump (first 32 bytes):
01 00 00 00 00 00 00 00 00 00 00 00 0a 00 00 00 ................
00 00 00 00 00 00 00 00 6b 6b 6b 6b 06 00 00 00 ........kkkk....
backtrace:
[<00000000120b863a>] __sync_alloc_leaf+0x1e/0x40 [i915]
[<00000000042f6959>] __sync_set+0x1bb/0x240 [i915]
[<0000000090f0e90f>] i915_request_await_dma_fence+0x1c7/0x400 [i915]
[<0000000056a48219>] i915_request_await_object+0x222/0x360 [i915]
[<00000000aaac4ee3>] i915_gem_do_execbuffer+0x1bd0/0x2250 [i915]
[<000000003c9d830f>] i915_gem_execbuffer2_ioctl+0x405/0xce0 [i915]
[<00000000fd7a8e68>] drm_ioctl_kernel+0xb0/0xf0 [drm]
[<00000000e721ee87>] drm_ioctl+0x305/0x3c0 [drm]
[<000000008b0d8986>] __x64_sys_ioctl+0x71/0xb0
[<0000000076c362a4>] do_syscall_64+0x33/0x80
[<00000000eb7a4831>] entry_SYSCALL_64_after_hwframe+0x44/0xa9
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Fixes: 531958f6f3 ("drm/i915/gt: Track timeline activeness in enter/exit")
Cc: <stable@vger.kernel.org>
Reviewed-by: John Harrison <John.C.Harrison@Intel.com>
Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210730195342.110234-1-matthew.brost@intel.com
(cherry picked from commit faf890985e)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
2021-08-26 07:31:52 -04:00
..
2020-06-29 11:29:12 +03:00
2021-06-05 15:09:06 -07:00
2020-03-26 21:20:51 +00:00
2021-06-05 15:09:28 -07:00
2021-03-24 19:30:35 +01:00
2020-03-26 21:20:51 +00:00
2021-06-05 15:09:06 -07:00
2020-06-02 10:42:00 +01:00
2021-03-24 11:38:56 +01:00
2020-06-02 10:42:00 +01:00
2021-05-05 11:36:23 +01:00
2021-03-24 19:30:35 +01:00
2021-03-24 19:30:34 +01:00
2021-05-18 08:56:53 -04:00
2020-03-06 08:59:06 +00:00
2021-03-24 19:30:34 +01:00
2021-06-05 15:09:06 -07:00
2020-12-16 15:55:43 +00:00
2021-07-14 08:46:18 -04:00
2021-05-07 11:13:01 +03:00
2021-03-24 19:30:34 +01:00
2021-03-24 19:30:34 +01:00
2020-03-06 08:59:06 +00:00
2020-12-24 15:02:39 +00:00
2021-03-24 19:30:34 +01:00
2021-01-08 21:35:55 +00:00
2020-02-25 19:23:19 +00:00
2021-03-26 01:01:27 +01:00
2021-06-05 15:09:06 -07:00
2021-04-08 12:46:12 +10:00
2021-05-05 11:36:23 +01:00
2021-03-24 19:30:34 +01:00
2021-07-06 15:10:58 -04:00
2021-04-08 12:46:12 +10:00
2021-03-24 19:30:34 +01:00
2021-04-27 16:21:11 +01:00
2021-03-24 19:30:34 +01:00
2021-01-15 21:30:24 +00:00
2021-06-05 15:09:28 -07:00
2021-04-28 10:01:40 -07:00
2021-03-24 19:30:34 +01:00
2021-05-25 15:14:24 +02:00
2021-06-05 15:09:06 -07:00
2021-05-25 15:14:24 +02:00
2021-07-13 15:56:21 -04:00
2021-03-24 19:30:34 +01:00
2021-06-05 15:09:06 -07:00
2021-05-19 12:39:08 -04:00
2021-04-08 12:46:12 +10:00
2021-05-05 11:36:23 +01:00
2021-03-24 17:27:20 +01:00
2021-06-05 15:09:06 -07:00
2020-12-23 21:10:41 +00:00
2021-06-05 15:09:06 -07:00
2021-05-25 15:14:40 +02:00
2021-06-05 15:09:06 -07:00
2021-03-24 19:30:34 +01:00
2021-03-24 19:30:34 +01:00
2021-03-24 19:30:34 +01:00
2021-04-08 12:46:12 +10:00
2021-03-24 19:30:34 +01:00
2021-05-25 15:14:24 +02:00
2021-06-05 15:09:06 -07:00
2021-04-08 12:46:12 +10:00
2021-06-05 15:09:06 -07:00
2021-06-11 13:37:34 +10:00
2021-03-24 19:30:34 +01:00
2021-06-05 15:09:06 -07:00
2021-03-24 19:30:34 +01:00
2021-03-24 19:30:35 +01:00
2021-06-05 15:09:06 -07:00
2021-01-09 16:02:57 +00:00
2021-06-05 15:09:06 -07:00
2021-03-24 19:30:34 +01:00
2021-06-05 15:09:06 -07:00
2021-03-24 19:30:34 +01:00
2021-06-05 15:09:06 -07:00
2021-03-24 19:30:34 +01:00
2021-06-02 13:21:24 +01:00
2021-03-24 19:30:36 +01:00
2021-06-05 15:09:06 -07:00
2021-03-24 19:30:34 +01:00
2021-03-24 19:30:35 +01:00
2021-06-05 15:09:06 -07:00
2021-03-24 19:30:34 +01:00
2021-07-06 15:10:58 -04:00
2021-03-24 19:30:34 +01:00
2021-04-27 16:21:11 +01:00
2021-03-24 19:30:35 +01:00
2021-03-24 19:30:34 +01:00
2021-06-05 15:09:06 -07:00
2021-03-24 19:30:34 +01:00
2021-06-05 15:09:28 -07:00
2020-07-08 21:40:15 +01:00
2021-06-05 15:09:06 -07:00
2021-03-24 19:30:34 +01:00
2021-04-08 12:46:12 +10:00
2021-08-26 07:31:52 -04:00
2021-04-08 12:46:12 +10:00
2021-03-24 19:30:34 +01:00
2021-06-05 15:09:06 -07:00
2021-03-24 19:30:34 +01:00
2020-03-06 08:59:06 +00:00
2021-05-05 11:36:23 +01:00
2021-03-24 19:30:34 +01:00
2021-04-27 16:21:11 +01:00
2021-06-05 15:09:06 -07:00
2021-05-05 11:36:23 +01:00
2020-06-18 09:26:53 +01:00
2021-06-05 15:09:06 -07:00
2021-03-24 19:30:34 +01:00
2021-03-24 19:30:34 +01:00
2021-06-15 04:37:14 -04:00
2021-06-05 15:09:06 -07:00
2021-06-05 15:09:06 -07:00
2021-06-05 15:09:06 -07:00
2021-03-24 19:30:34 +01:00
2021-06-05 15:09:06 -07:00
2021-06-05 15:09:06 -07:00
2021-06-05 15:09:06 -07:00
2021-03-24 19:30:34 +01:00
2021-01-19 11:55:13 +00:00
2021-06-05 15:09:06 -07:00
2020-06-16 11:34:23 +03:00
2021-06-05 15:09:06 -07:00
2020-04-27 17:34:33 +01:00
2021-06-05 15:09:06 -07:00
2021-06-05 15:09:06 -07:00
2021-04-27 16:19:52 +01:00
2020-04-29 19:02:37 +01:00
2020-04-29 19:02:37 +01:00
2020-10-16 11:08:44 +01:00
2020-02-28 22:03:19 +00:00