Huang Rui
cbcbea982a
drm/amdgpu: fix to add buffer funcs check
This patch fixes the case when buffer funcs is empty and bo evict is
executing. It must double check buffer funcs, otherwise, a NULL
pointer dereference kernel panic will be encountered.
BUG: unable to handle kernel NULL pointer dereference at 00000000000001a4
IP: [<ffffffffa067b6cd>] amdgpu_evict_flags+0x3d/0xf0 [amdgpu]
PGD 0
Oops: 0000 [#1] SMP
Modules linked in: amdgpu(OE) ttm drm_kms_helper drm i2c_algo_bit fb_sys_fops syscopyarea sysfillrect sysimgblt fmem(OE) physmem_drv(OE) rpcsec_gss_krb5 nfsv4 nfs fscache intel_rapl x86_pkg_temp_thermal intel_powerclamp snd_hda_codec_realtek snd_hda_codec_hdmi snd_hda_codec_generic kvm_intel snd_hda_intel snd_hda_codec kvm snd_hda_core joydev eeepc_wmi asus_wmi sparse_keymap snd_hwdep snd_pcm irqbypass crct10dif_pclmul snd_seq_midi snd_seq_midi_event snd_rawmidi snd_seq crc32_pclmul snd_seq_device ghash_clmulni_intel aesni_intel aes_x86_64 snd_timer lrw gf128mul mei_me snd glue_helper ablk_helper cryptd tpm_infineon mei lpc_ich serio_raw soundcore shpchp mac_hid nfsd auth_rpcgss nfs_acl lockd grace coretemp sunrpc parport_pc ppdev lp parport autofs4 hid_generic mxm_wmi r8169 usbhid ahci
psmouse libahci nvme mii hid nvme_core wmi video
CPU: 3 PID: 1627 Comm: kworker/u8:17 Tainted: G OE 4.9.0-custom #1
Hardware name: ASUS All Series/Z87-A, BIOS 1802 01/28/2014
Workqueue: events_unbound async_run_entry_fn
task: ffff88021e7057c0 task.stack: ffffc9000262c000
RIP: 0010:[<ffffffffa067b6cd>] [<ffffffffa067b6cd>] amdgpu_evict_flags+0x3d/0xf0 [amdgpu]
RSP: 0018:ffffc9000262fb30 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff88021e8a5858 RCX: 0000000000000000
RDX: 0000000000000001 RSI: ffffc9000262fb58 RDI: ffff88021e8a5800
RBP: ffffc9000262fb48 R08: 0000000000000000 R09: ffff88021e8a5814
R10: 000000001def8f01 R11: ffff88021def8c80 R12: ffffc9000262fb58
R13: ffff88021d2b1990 R14: 0000000000000000 R15: ffff88021e8a5858
FS: 0000000000000000(0000) GS:ffff88022ed80000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000000001a4 CR3: 0000000001c07000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Signed-off-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Ken Wang <Qingqing.Wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2017-04-28 17:32:13 -04:00
..
2016-11-30 14:18:51 +10:00
2016-10-25 14:38:45 -04:00
2017-01-27 11:12:39 -05:00
2017-03-29 23:53:24 -04:00
2016-09-19 20:58:35 +03:00
2016-09-19 20:58:35 +03:00
2016-09-22 10:24:16 -04:00
2016-02-27 22:52:40 +02:00
2017-04-28 17:32:13 -04:00
2017-04-04 14:42:40 -04:00
2017-04-28 17:32:13 -04:00
2017-03-29 23:54:17 -04:00
2017-03-29 23:53:24 -04:00
2016-10-25 14:40:39 +02:00
2017-03-29 23:54:16 -04:00
2017-04-06 13:28:07 -04:00
2017-03-29 23:55:49 -04:00
2016-11-30 14:18:51 +10:00
2015-06-03 21:03:15 -04:00
2017-04-07 15:15:45 -04:00
2017-04-28 16:38:00 -04:00
2017-04-07 15:15:43 -04:00
2017-04-07 12:20:39 -04:00
2017-03-29 23:53:24 -04:00
2017-03-29 23:53:03 -04:00
2017-04-07 15:15:43 -04:00
2015-08-17 16:50:21 -04:00
2015-06-03 21:03:15 -04:00
2017-03-29 23:53:24 -04:00
2016-11-11 10:20:58 -05:00
2017-03-29 23:54:42 -04:00
2016-08-19 12:30:58 -04:00
2017-04-07 12:20:39 -04:00
2017-01-27 11:13:32 -05:00
2016-10-25 14:38:58 -04:00
2017-02-03 11:10:32 +01:00
2017-01-27 11:12:39 -05:00
2016-09-27 13:00:52 -04:00
2017-03-29 23:55:48 -04:00
2016-09-14 15:10:27 -04:00
2017-03-29 23:54:36 -04:00
2015-06-03 21:03:15 -04:00
2017-04-06 13:27:20 -04:00
2017-03-29 23:53:37 -04:00
2017-01-27 12:20:37 -05:00
2017-04-06 13:28:07 -04:00
2017-04-04 13:40:32 -04:00
2017-03-29 09:56:25 +02:00
2017-04-07 12:20:39 -04:00
2017-01-27 11:13:17 -05:00
2016-09-14 15:10:37 -04:00
2015-06-03 21:03:15 -04:00
2017-03-29 23:55:20 -04:00
2017-01-27 11:13:07 -05:00
2017-03-29 23:54:54 -04:00
2016-10-25 14:38:45 -04:00
2016-11-11 10:20:04 -05:00
2017-04-28 17:32:12 -04:00
2017-04-28 16:37:58 -04:00
2017-03-29 23:55:53 -04:00
2017-03-29 23:55:38 -04:00
2016-11-11 10:21:07 -05:00
2016-10-25 14:40:39 +02:00
2016-10-28 11:33:52 +10:00
2017-03-29 23:53:29 -04:00
2015-06-03 21:03:15 -04:00
2017-04-04 13:40:32 -04:00
2017-04-28 17:32:13 -04:00
2017-01-27 12:20:33 -05:00
2017-03-29 23:54:40 -04:00
2017-03-29 23:54:41 -04:00
2017-04-04 13:40:32 -04:00
2017-03-29 23:53:46 -04:00
2017-04-04 13:40:32 -04:00
2017-03-29 23:53:44 -04:00
2017-04-06 13:28:04 -04:00
2017-03-29 23:55:10 -04:00
2017-04-07 15:15:43 -04:00
2017-04-07 15:15:43 -04:00
2017-04-04 23:34:27 -04:00
2017-04-28 16:37:59 -04:00
2017-03-29 23:54:17 -04:00
2017-03-29 23:54:17 -04:00
2016-10-25 14:38:58 -04:00
2016-05-04 20:23:53 -04:00
2016-08-08 13:28:39 -04:00
2015-06-03 21:03:15 -04:00
2017-01-27 11:12:39 -05:00
2015-06-03 21:03:15 -04:00
2016-09-14 15:10:37 -04:00
2016-07-14 16:39:35 -04:00
2017-03-29 23:53:37 -04:00
2017-03-29 23:52:52 -04:00
2015-06-03 21:03:17 -04:00
2015-06-03 21:03:51 -04:00
2017-03-29 23:53:37 -04:00
2016-10-25 14:38:45 -04:00
2017-03-29 23:55:50 -04:00
2016-10-25 14:38:45 -04:00
2017-03-29 23:54:33 -04:00
2016-10-25 14:38:45 -04:00
2017-03-29 23:53:21 -04:00
2015-06-03 21:03:17 -04:00
2017-03-29 23:54:30 -04:00
2017-01-27 12:20:41 -05:00
2015-06-03 21:03:17 -04:00
2017-03-29 23:53:37 -04:00
2016-10-25 14:38:45 -04:00
2017-04-11 07:41:10 +10:00
2016-10-25 14:38:45 -04:00
2017-04-11 07:41:10 +10:00
2016-10-25 14:38:45 -04:00
2017-04-11 07:41:10 +10:00
2016-10-25 14:38:45 -04:00
2017-04-11 07:41:10 +10:00
2016-10-25 14:38:45 -04:00
2017-04-06 10:21:55 +02:00
2016-10-25 14:38:45 -04:00
2017-03-29 23:53:51 -04:00
2016-10-25 14:38:45 -04:00
2017-03-29 23:53:37 -04:00
2016-10-25 14:38:45 -04:00
2017-04-06 13:28:04 -04:00
2016-10-25 14:38:45 -04:00
2017-04-28 16:38:00 -04:00
2017-03-29 23:54:45 -04:00
2017-04-06 13:27:18 -04:00
2017-03-29 23:54:44 -04:00
2017-04-07 15:15:43 -04:00
2016-10-25 14:38:45 -04:00
2017-04-07 15:15:43 -04:00
2016-10-25 14:38:45 -04:00
2017-04-07 15:15:43 -04:00
2016-10-25 14:38:45 -04:00
2017-04-07 15:15:43 -04:00
2017-03-29 23:54:44 -04:00
2017-03-29 23:53:37 -04:00
2016-10-25 14:38:45 -04:00
2015-09-02 12:21:35 -04:00
2016-10-04 11:15:59 -04:00
2017-03-29 23:53:37 -04:00
2015-06-03 21:03:17 -04:00
2015-06-03 21:03:17 -04:00
2017-03-29 23:55:05 -04:00
2017-04-06 13:27:18 -04:00
2017-03-29 23:54:44 -04:00
2017-03-29 23:55:12 -04:00
2017-04-06 13:28:05 -04:00
2017-04-06 13:28:06 -04:00
2017-03-29 23:53:37 -04:00
2017-03-29 23:52:38 -04:00
2017-03-29 23:55:19 -04:00
2017-03-29 23:55:19 -04:00
2016-10-25 14:38:06 -04:00
2016-07-15 12:33:31 -04:00
2017-03-29 23:54:48 -04:00
2017-04-28 16:37:58 -04:00
2017-04-28 16:37:58 -04:00
2016-08-31 15:21:09 -04:00
2017-03-29 23:55:50 -04:00
2016-10-25 14:38:45 -04:00
2017-03-29 23:55:50 -04:00
2016-10-25 14:38:45 -04:00
2017-04-06 13:27:18 -04:00
2017-03-29 23:54:45 -04:00
2017-03-29 23:55:50 -04:00
2016-10-25 14:38:45 -04:00
2017-03-29 23:53:37 -04:00
2016-08-31 15:21:09 -04:00
2017-02-08 17:25:02 -05:00
2017-03-29 23:53:37 -04:00
2016-10-25 14:38:45 -04:00
2017-01-27 12:20:41 -05:00
2017-03-29 23:53:41 -04:00
2016-10-25 14:38:45 -04:00
2017-01-27 12:20:41 -05:00
2016-09-28 16:13:17 -04:00
2017-04-28 16:37:59 -04:00
2017-04-06 13:28:07 -04:00
2017-03-29 23:54:31 -04:00
2017-03-29 23:55:35 -04:00
2017-03-29 23:53:53 -04:00
2016-10-25 14:38:45 -04:00
2015-09-02 12:21:35 -04:00
2017-04-04 13:40:33 -04:00
2016-10-25 14:38:45 -04:00
2017-04-04 13:40:33 -04:00
2016-10-25 14:38:45 -04:00
2017-04-04 13:40:33 -04:00
2016-10-25 14:38:45 -04:00
2017-04-06 13:27:18 -04:00
2017-03-29 23:54:47 -04:00
2017-04-04 13:40:33 -04:00
2016-10-25 14:38:45 -04:00
2017-04-04 13:40:33 -04:00
2016-10-25 14:38:45 -04:00
2017-04-06 13:27:18 -04:00
2017-03-29 23:54:47 -04:00
2017-03-30 15:16:00 -04:00
2017-03-29 23:54:46 -04:00
2017-03-29 23:54:30 -04:00
2017-01-27 11:12:43 -05:00
2017-03-30 14:44:00 -04:00
2017-03-29 23:53:31 -04:00
2017-04-04 23:33:41 -04:00