Chris Wilson
6cb304b312
drm/i915/gt: Check for a registered driver with IPS
If the ips module calls into the driver during an unbind/bind cycle, we
may see the driver while it has unregistered itself from ips and try and
dereference a NULL ips_mchdev pointer.
<1> [211.928844] BUG: kernel NULL pointer dereference, address: 0000000000000014
<1> [211.928861] #PF: supervisor read access in kernel mode
<1> [211.928871] #PF: error_code(0x0000) - not-present page
<6> [211.928881] PGD 0 P4D 0
<4> [211.928890] Oops: 0000 [#1] PREEMPT SMP PTI
<4> [211.928900] CPU: 3 PID: 327 Comm: ips-monitor Not tainted 5.9.0-rc5-CI-CI_DRM_9008+ #1
<4> [211.928914] Hardware name: Hewlett-Packard HP EliteBook 8440p/172A, BIOS 68CCU Ver. F.24 09/13/2013
<4> [211.929056] RIP: 0010:mchdev_get+0x5a/0x180 [i915]
<4> [211.929067] Code: c0 5a 74 0d 80 3d f1 53 29 00 00 0f 84 ab 00 00 00 48 8b 1d c8 a8 29 00 e8 d3 18 89 e1 85 c0 74 09 80 3d d1 53 29 00 00 74 65 <8b> 4b 14 48 8d 7b 14 85 c9 0f 84 09 01 00 00 8d 51 01 89 c8 f0 0f
<4> [211.929095] RSP: 0018:ffffc900002efe60 EFLAGS: 00010202
<4> [211.929105] RAX: 0000000000000001 RBX: 0000000000000000 RCX: ffff8881297acf40
<4> [211.929118] RDX: 0000000000000000 RSI: ffffffff8264e2c0 RDI: ffff8881297ad820
<4> [211.929130] RBP: ffffc900002efe68 R08: ffff8881297ad820 R09: 00000000fffffffe
<4> [211.929143] R10: ffff8881297acf40 R11: 00000000fff74c96 R12: ffff8881294dfa18
<4> [211.929155] R13: 0000000000000067 R14: ffff888126eff640 R15: ffff888126efe840
<4> [211.929168] FS: 0000000000000000(0000) GS:ffff888133d80000(0000) knlGS:0000000000000000
<4> [211.929182] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
<4> [211.929194] CR2: 0000000000000014 CR3: 0000000002610000 CR4: 00000000000006e0
<4> [211.929206] Call Trace:
<4> [211.929294] i915_read_mch_val+0x15/0x380 [i915]
<4> [211.929309] ? ips_monitor+0x3fb/0x630 [intel_ips]
<4> [211.929321] ips_monitor+0x53c/0x630 [intel_ips]
<4> [211.929334] ? ips_gpu_lower+0x30/0x30 [intel_ips]
<4> [211.929348] kthread+0x14d/0x170
<4> [211.929358] ? kthread_park+0x80/0x80
<4> [211.929369] ret_from_fork+0x22/0x30
<4> [211.929382] Modules linked in: vgem snd_hda_codec_hdmi snd_hda_codec_generic ledtrig_audio i915 coretemp crct10dif_pclmul crc32_pclmul ghash_clmulni_intel snd_hda_intel snd_intel_dspcfg snd_hda_codec snd_hwdep snd_hda_core e1000e snd_pcm mei_me mei intel_ips lpc_ich ptp prime_numbers pps_core
<4> [211.929437] CR2: 0000000000000014
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/20200915105113.26564-1-chris@chris-wilson.co.uk
2020-09-15 14:21:30 +01:00
..
2020-08-28 12:38:06 +10:00
2020-06-10 09:02:03 +02:00
2020-08-18 15:26:32 +02:00
2020-06-24 15:45:51 +10:00
2020-07-24 08:48:05 +10:00
2020-08-19 09:14:40 +02:00
2020-07-02 20:25:51 +02:00
2020-08-11 11:58:31 +10:00
2020-08-26 19:13:37 +02:00
2020-07-23 15:28:10 +10:00
2020-08-18 14:14:25 +02:00
2020-08-08 09:06:33 +02:00
2020-08-19 15:49:10 +02:00
2020-08-25 20:49:06 -04:00
2020-08-06 14:27:31 -07:00
2020-07-20 09:34:24 +02:00
2020-09-15 14:21:30 +01:00
2020-08-12 20:42:08 +02:00
2020-07-30 18:19:57 +02:00
2020-08-11 11:58:31 +10:00
2020-08-15 12:14:18 +02:00
2020-08-08 09:06:33 +02:00
2020-07-24 08:48:05 +10:00
2020-08-27 11:17:52 +02:00
2020-08-18 14:14:25 +02:00
2020-07-28 17:21:58 +02:00
2020-08-24 17:00:48 +10:00
2020-08-21 15:15:11 +03:00
2020-08-21 19:14:28 +02:00
2020-08-18 14:14:25 +02:00
2020-07-23 10:06:22 +02:00
2020-08-24 17:00:48 +10:00
2020-04-03 17:11:41 +02:00
2020-08-24 17:06:08 +10:00
2020-08-12 20:42:08 +02:00
2020-08-18 14:14:25 +02:00
2020-08-06 11:55:43 -07:00
2020-06-23 15:57:30 +02:00
2020-06-10 09:05:18 +02:00
2020-08-18 14:14:25 +02:00
2020-07-08 11:47:01 +02:00
2020-08-18 10:49:13 +02:00
2020-08-12 20:42:08 +02:00
2020-08-21 15:17:05 +03:00
2020-07-14 10:32:33 +02:00
2020-06-24 09:17:34 +02:00
2020-08-24 17:06:08 +10:00
2020-06-10 09:06:11 +02:00
2020-06-10 10:17:21 +02:00
2020-08-10 15:32:00 +02:00
2020-07-16 22:12:50 +02:00
2020-07-07 10:51:58 +02:00
2020-08-10 15:31:02 +02:00
2020-08-28 12:38:06 +10:00
2020-08-10 15:31:19 +02:00
2020-08-24 17:00:48 +10:00
2020-08-14 13:34:37 -07:00
2020-08-01 01:56:10 +00:00
2020-08-06 14:27:31 -07:00
2020-06-23 19:53:27 +02:00
2020-07-02 20:25:51 +02:00
2020-07-02 15:26:00 +02:00
2020-07-02 15:26:00 +02:00
2020-06-15 14:49:50 +01:00
2020-05-14 02:10:52 +03:00
2020-08-26 19:11:41 +02:00
2020-06-23 19:53:27 +02:00
2020-07-02 15:26:00 +02:00
2020-05-27 14:31:42 +03:00
2020-05-26 13:31:01 +02:00
2020-08-11 14:06:04 +02:00
2020-03-16 09:23:55 +01:00
2020-07-13 13:29:20 -04:00
2020-07-02 15:26:00 +02:00
2020-03-18 17:53:28 +01:00
2020-07-02 15:26:00 +02:00
2020-06-25 15:47:14 -07:00
2020-04-03 17:11:41 +02:00
2020-08-11 14:06:04 +02:00
2020-08-04 12:21:11 -04:00
2020-07-27 22:06:13 +02:00
2020-08-05 19:50:06 -07:00
2020-06-19 09:20:21 +02:00
2020-04-21 08:15:03 +02:00
2020-08-11 11:58:31 +10:00
2020-07-02 15:26:00 +02:00
2020-05-26 13:33:08 +02:00
2020-06-19 13:33:40 +01:00
2020-07-02 15:26:00 +02:00
2020-07-20 09:34:24 +02:00
2020-05-19 22:31:31 +01:00
2020-06-16 19:11:51 +02:00
2020-05-19 22:31:31 +01:00
2020-08-24 17:00:48 +10:00
2020-08-11 12:00:30 +10:00
2020-05-05 14:01:53 -04:00
2020-07-16 18:16:31 -04:00
2020-07-02 15:26:00 +02:00
2020-06-24 15:45:51 +10:00
2020-05-29 12:58:11 +02:00
2020-07-02 15:26:00 +02:00
2020-07-02 15:26:00 +02:00
2020-05-18 16:27:54 +01:00
2020-08-11 11:58:31 +10:00
2020-07-10 20:21:45 +02:00
2020-06-23 15:46:40 +02:00
2020-07-02 15:26:00 +02:00
2020-05-05 10:51:56 +02:00
2020-07-20 11:47:28 +02:00
2020-08-11 11:58:31 +10:00
2020-08-04 11:45:23 +02:00
2020-08-16 17:12:18 +02:00
2020-07-02 15:26:00 +02:00
2020-07-02 15:26:00 +02:00
2020-07-02 15:26:00 +02:00
2020-07-31 14:42:37 +10:00
2020-06-02 10:59:11 -07:00
2020-03-06 09:24:29 +01:00
2020-08-02 15:22:31 +02:00
2020-06-03 10:24:23 +02:00
2020-08-06 11:55:43 -07:00
2020-07-21 11:08:35 -04:00
2020-06-24 15:45:51 +10:00
2020-05-20 20:03:45 +02:00
2020-07-18 02:59:16 +03:00
2020-07-23 15:31:38 +10:00