Chris Wilson
530197795f
drm/i915/gem: Protect the obj->vma.list during iteration
Take the obj->vma.lock to prevent modifications to the list as we
iterate, to avoid the dreaded NULL pointer.
<1>[ 347.820823] BUG: kernel NULL pointer dereference, address: 0000000000000150
<1>[ 347.820856] #PF: supervisor read access in kernel mode
<1>[ 347.820874] #PF: error_code(0x0000) - not-present page
<6>[ 347.820892] PGD 0 P4D 0
<4>[ 347.820908] Oops: 0000 [#1] PREEMPT SMP NOPTI
<4>[ 347.820926] CPU: 3 PID: 1303 Comm: gem_persistent_ Tainted: G U 5.4.0-rc7-CI-CI_DRM_7352+ #1
<4>[ 347.820956] Hardware name: /NUC6CAYB, BIOS AYAPLCEL.86A.0049.2018.0508.1356 05/08/2018
<4>[ 347.821132] RIP: 0010:i915_gem_object_flush_write_domain+0xd9/0x1d0 [i915]
<4>[ 347.821157] Code: 0f 84 e9 00 00 00 48 8b 80 e0 fd ff ff f6 c4 40 75 11 e9 ed 00 00 00 48 8b 80 e0 fd ff ff f6 c4 40 74 26 48 8b 83 b0 00 00 00 <48> 8b b8 50 01 00 00 e8 fb 20 fb ff 48 8b 83 30 03 00 00 49 39 c4
<4>[ 347.821210] RSP: 0018:ffffc90000a1f8f8 EFLAGS: 00010202
<4>[ 347.821229] RAX: 0000000000000000 RBX: ffffc900008479a0 RCX: 0000000000000018
<4>[ 347.821252] RDX: 0000000000000000 RSI: 000000000000000d RDI: ffff888275a090b0
<4>[ 347.821274] RBP: ffff8882673c8040 R08: ffff88825991b8d0 R09: 0000000000000000
<4>[ 347.821297] R10: 0000000000000000 R11: 0000000000000000 R12: ffff8882673c8280
<4>[ 347.821319] R13: ffff8882673c8368 R14: 0000000000000000 R15: ffff888266a54000
<4>[ 347.821343] FS: 00007f75865f4240(0000) GS:ffff888277b80000(0000) knlGS:0000000000000000
<4>[ 347.821368] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
<4>[ 347.821389] CR2: 0000000000000150 CR3: 000000025aee0000 CR4: 00000000003406e0
<4>[ 347.821411] Call Trace:
<4>[ 347.821555] i915_gem_object_prepare_read+0xea/0x2a0 [i915]
<4>[ 347.821706] intel_engine_cmd_parser+0x5ce/0xe90 [i915]
<4>[ 347.821834] ? __i915_sw_fence_complete+0x1a0/0x250 [i915]
<4>[ 347.821990] i915_gem_do_execbuffer+0xb4c/0x2550 [i915]
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191119100929.2628356-8-chris@chris-wilson.co.uk
2019-11-19 15:12:47 +00:00
..
2019-11-01 09:30:48 -07:00
2019-10-23 06:26:33 -04:00
2019-10-17 05:58:44 -07:00
2019-10-25 14:22:20 -06:00
2019-09-25 13:54:45 +02:00
2019-09-17 16:22:26 -07:00
2019-10-21 02:05:21 +02:00
2019-09-13 16:44:49 +03:00
2019-11-08 06:55:22 -07:00
2019-09-15 14:17:27 +02:00
2019-10-18 08:45:32 -07:00
2019-10-02 13:49:43 -07:00
2019-11-08 08:15:01 -08:00
2019-11-04 18:43:23 +01:00
2019-11-08 11:29:58 +01:00
2019-10-22 11:43:17 +02:00
2019-11-01 14:57:52 -07:00
2019-08-26 21:37:37 +09:00
2019-10-23 21:15:21 +05:30
2019-10-30 16:41:49 -04:00
2019-10-17 11:27:05 +02:00
2019-09-19 14:14:28 -07:00
2019-10-31 09:40:21 +01:00
2019-09-18 11:14:31 -07:00
2019-08-28 22:59:18 +02:00
2019-11-03 23:41:11 +01:00
2019-11-19 15:12:47 +00:00
2019-08-27 19:03:08 +02:00
2019-11-07 11:54:54 -08:00
2019-09-22 12:02:21 -07:00
2019-10-01 14:49:45 -04:00
2019-10-28 18:46:55 -07:00
2019-11-04 15:01:25 +01:00
2019-10-24 20:52:21 +02:00
2019-08-27 09:43:59 +02:00
2019-08-16 11:33:56 -07:00
2019-08-28 11:29:32 +02:00
2019-10-27 15:57:19 +00:00
2019-10-28 15:06:38 -03:00
2019-10-25 17:31:53 -04:00
2019-10-20 12:14:41 +03:00
2019-10-30 10:30:22 +01:00
2019-10-25 14:25:15 +02:00
2019-10-28 13:33:41 -07:00
2019-09-12 20:45:52 +02:00
2019-09-05 13:17:01 -06:00
2019-10-21 02:05:21 +02:00
2019-09-17 00:54:29 -05:00
2019-10-18 22:29:36 -04:00
2019-10-23 12:10:05 +02:00
2019-08-30 15:57:27 +02:00
2019-10-09 11:08:03 +02:00
2019-10-24 08:49:25 +01:00
2019-10-23 12:10:05 +02:00
2019-10-21 16:16:38 +02:00
2019-10-07 09:56:36 +02:00
2019-11-08 16:50:14 -08:00
2019-11-06 21:48:29 -08:00
2019-09-23 17:20:40 -04:00
2019-09-29 10:33:41 -07:00
2019-11-08 18:15:55 -08:00
2019-09-18 11:14:31 -07:00
2019-10-23 15:15:05 -05:00
2019-10-23 10:58:44 +05:30
2019-10-14 21:44:26 +02:00
2019-09-18 11:14:31 -07:00
2019-10-15 23:51:36 +02:00
2019-09-28 08:14:15 -07:00
2019-08-30 12:46:12 +01:00
2019-09-23 19:16:01 -07:00
2019-11-07 10:06:46 +01:00
2019-10-14 15:31:50 +03:00
2019-09-22 12:04:59 -07:00
2019-09-17 19:15:14 -07:00
2019-10-07 14:55:46 -04:00
2019-11-08 18:38:06 +01:00
2019-10-23 15:31:17 -04:00
2019-09-22 10:55:08 -07:00
2019-10-24 10:26:33 +02:00
2019-09-17 15:33:31 -07:00
2019-09-22 11:05:43 -07:00
2019-10-22 17:55:51 +02:00
2019-11-02 11:15:52 -07:00
2019-08-18 12:56:10 +02:00
2019-10-26 19:47:31 +08:00
2019-10-24 16:55:45 +05:30
2019-09-17 18:40:42 -07:00
2019-09-13 17:23:18 +03:00
2019-11-07 16:29:18 +01:00
2019-11-02 11:15:52 -07:00
2019-09-25 17:51:41 -07:00
2019-10-21 02:05:21 +02:00
2019-10-08 12:08:21 +03:00
2019-10-15 21:38:41 +02:00
2019-09-18 11:14:31 -07:00
2019-10-31 18:57:54 +01:00
2019-10-15 14:07:01 -06:00
2019-10-28 04:25:04 -04:00
2019-11-14 05:53:10 +10:00
2019-10-10 14:50:32 +02:00
2019-10-28 04:24:46 -04:00
2019-10-10 15:35:41 +02:00
2019-11-05 16:58:12 +01:00
2019-10-19 17:09:11 -04:00
2019-09-18 11:05:34 -07:00
2019-09-18 11:05:34 -07:00