From: Christian Hesse Subject: Re: NULL pointer dereference in intel_fb_obj_invalidate Date: Wed, 2 Mar 2016 09:47:03 +0100 Message-ID: <20160302094703.3d0c2c32@leda.localdomain> References: <20160226093116.1b3901f3@leda.localdomain> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0092767558==" Return-path: Received: from mx.mylinuxtime.de (mx.mylinuxtime.de [IPv6:2a01:4f8:202:62a9:5054:ff:fe05:a137]) by gabe.freedesktop.org (Postfix) with ESMTPS id E0BA689FF6 for ; Wed, 2 Mar 2016 08:47:15 +0000 (UTC) Received: from leda.localdomain (unknown [87.190.244.126]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx.mylinuxtime.de (Postfix) with ESMTPSA id 47BC121AFA for ; Wed, 2 Mar 2016 09:47:14 +0100 (CET) In-Reply-To: <20160226093116.1b3901f3@leda.localdomain> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org --===============0092767558== Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/h.aEzKZMXcYfXB.jhBzFhkg"; protocol="application/pgp-signature" --Sig_/h.aEzKZMXcYfXB.jhBzFhkg Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Christian Hesse on Fri, 2016/02/26 09:31: > Hello everybody, >=20 > I am running a Lenovo Thinkpad X250 with this graphics controller: >=20 > 00:02.0 VGA compatible controller: Intel Corporation Broadwell-U Integrat= ed > Graphics (rev 09) >=20 > Everything works just fine when using the integrated display. >=20 > The notebook is connected to a docking station with two connected display > ports. With light-locker I can lock and unlock the screen once, system > panics with a kernel NULL pointer dereference in intel_fb_obj_invalidate > the second time. > > [...] > > Any chance to get that fixed? Thanks! Tested linux 4.4.4-rc, which has some drm and i915. The behavior is still t= he some, kernel gives two traces, though: kernel: ------------[ cut here ]------------ kernel: WARNING: CPU: 1 PID: 1152 at include/linux/kref.h:46 drm_framebuffe= r_reference+0x64/0x70 [drm]() kernel: Modules linked in: fuse bridge stp llc nf_log_ipv6 nf_log_ipv4 nf_l= og_common nft_redir_ipv4 nft_redir nf_nat_redirect nft_log nft_reject_inet = nf_reject_ipv4 nf_reject_ipv6 nft_reject nft_limit nft_meta nf_conntrack_ip= v6 nf_defrag_ipv6 nft_ct nft_hash nft_rbtree nft_masq_ipv4 nf_nat_masquerad= e_ipv4 nft_masq nft_chain_nat_ipv4 nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_= ipv4 nf_nat nf_conntrack nf_tables_inet nf_tables_ipv6 nf_tables_ipv4 nf_ta= bles nfnetlink sch_fq_codel zram lz4_compress vboxnetflt(O) vboxnetadp(O) s= nd_hda_codec_hdmi vboxdrv(O) nls_iso8859_1 usbserial udf crc_itu_t uas usb_= storage tun nfs lockd grace sunrpc fscache loop iscsi_tcp libiscsi_tcp libi= scsi scsi_transport_iscsi hfsplus iTCO_wdt iTCO_vendor_support hfs xfs arc4= libcrc32c crc32c_generic nls_cp437 vfat fat intel_rapl kernel: iosf_mbi x86_pkg_temp_thermal intel_powerclamp squashfs isofs core= temp btrfs kvm_intel cdc_ether iwlmvm kvm mac80211 usbnet irqbypass r8152 b= tusb xor btrtl mii joydev btbcm btintel iwlwifi rtsx_pci_ms evdev mousedev = input_leds bluetooth i915 mac_hid psmouse snd_hda_codec_realtek e1000e snd_= hda_codec_generic pcspkr memstick cfg80211 drm_kms_helper snd_hda_intel snd= _hda_codec intel_pch_thermal lpc_ich i2c_i801 shpchp serio_raw snd_hda_core= drm snd_hwdep ptp pps_core snd_pcm thinkpad_acpi intel_gtt syscopyarea nvr= am led_class sysfillrect snd_timer sysimgblt fb_sys_fops i2c_algo_bit mei_m= e snd thermal mei soundcore wmi rfkill battery ac fjes video tpm_tis button= tpm raid6_pq dummy dm_snapshot dm_bufio processor cdrom ip_tables x_tables= ext4 crc16 mbcache jbd2 jitterentropy_rng sha256_ssse3 kernel: sha256_generic hmac drbg ansi_cprng dm_crypt algif_skcipher af_alg= hid_generic usbhid hid dm_mod sd_mod rtsx_pci_sdmmc mmc_core atkbd libps2 = crct10dif_pclmul crc32_pclmul crc32c_intel aesni_intel ahci aes_x86_64 lrw = libahci gf128mul glue_helper ablk_helper cryptd libata ehci_pci xhci_pci sc= si_mod xhci_hcd ehci_hcd rtsx_pci usbcore usb_common i8042 serio kernel: CPU: 1 PID: 1152 Comm: Xorg Tainted: G U W O 4.4.4-1-rc #1 kernel: Hardware name: LENOVO 20CLS06D00/20CLS06D00, BIOS N10ET41W (1.20 ) = 01/19/2016 kernel: 0000000000000286 0000000013ea9013 ffff8800c2467920 ffffffff812cb101 kernel: 0000000000000000 ffffffffa051f7f3 ffff8800c2467958 ffffffff810776e2 kernel: ffff88021dc54780 ffff8800cb8d0f00 ffff8800cb8d0f00 ffff8800bb2fd800 kernel: Call Trace: kernel: [] dump_stack+0x63/0x82 kernel: [] warn_slowpath_common+0x82/0xc0 kernel: [] warn_slowpath_null+0x1a/0x20 kernel: [] drm_framebuffer_reference+0x64/0x70 [drm] kernel: [] drm_atomic_set_fb_for_plane+0x2d/0x90 [drm] kernel: [] __drm_atomic_helper_set_config+0xde/0x3c0 [dr= m_kms_helper] kernel: [] restore_fbdev_mode+0x221/0x260 [drm_kms_helpe= r] kernel: [] drm_fb_helper_restore_fbdev_mode_unlocked+0x3= 3/0x80 [drm_kms_helper] kernel: [] drm_fb_helper_set_par+0x2d/0x50 [drm_kms_help= er] kernel: [] intel_fbdev_set_par+0x1a/0x60 [i915] kernel: [] ? fb_set_var+0x2ef/0x460 kernel: [] fb_set_var+0x236/0x460 kernel: [] ? do_sys_poll+0x146/0x570 kernel: [] ? update_curr+0x7d/0x180 kernel: [] fbcon_blank+0x30f/0x350 kernel: [] ? ttwu_do_wakeup+0x19/0x100 kernel: [] do_unblank_screen+0xc3/0x190 kernel: [] complete_change_console+0x59/0xe0 kernel: [] vt_ioctl+0x710/0x12e0 kernel: [] ? drm_dropmaster_ioctl+0x68/0x80 [drm] kernel: [] ? drm_ioctl+0x189/0x540 [drm] kernel: [] tty_ioctl+0x361/0xc30 kernel: [] ? kernfs_fop_write+0xa1/0x170 kernel: [] ? __vfs_write+0x37/0x100 kernel: [] do_vfs_ioctl+0x298/0x480 kernel: [] ? __fget+0x77/0xb0 kernel: [] SyS_ioctl+0x79/0x90 kernel: [] entry_SYSCALL_64_fastpath+0x12/0x6d kernel: ---[ end trace 2ad3c1c199e798ec ]--- kernel: BUG: unable to handle kernel NULL pointer dereference at 0000000000= 000060 kernel: IP: [] intel_fb_obj_invalidate+0x1c/0xf0 [i915] kernel: PGD c2bbc067 PUD c2bed067 PMD 0=20 kernel: Oops: 0000 [#1] PREEMPT SMP=20 kernel: Modules linked in: fuse bridge stp llc nf_log_ipv6 nf_log_ipv4 nf_l= og_common nft_redir_ipv4 nft_redir nf_nat_redirect nft_log nft_reject_inet = nf_reject_ipv4 nf_reject_ipv6 nft_reject nft_limit nft_meta nf_conntrack_ip= v6 nf_defrag_ipv6 nft_ct nft_hash nft_rbtree nft_masq_ipv4 nf_nat_masquerad= e_ipv4 nft_masq nft_chain_nat_ipv4 nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_= ipv4 nf_nat nf_conntrack nf_tables_inet nf_tables_ipv6 nf_tables_ipv4 nf_ta= bles nfnetlink sch_fq_codel zram lz4_compress vboxnetflt(O) vboxnetadp(O) s= nd_hda_codec_hdmi vboxdrv(O) nls_iso8859_1 usbserial udf crc_itu_t uas usb_= storage tun nfs lockd grace sunrpc fscache loop iscsi_tcp libiscsi_tcp libi= scsi scsi_transport_iscsi hfsplus iTCO_wdt iTCO_vendor_support hfs xfs arc4= libcrc32c crc32c_generic nls_cp437 vfat fat intel_rapl kernel: iosf_mbi x86_pkg_temp_thermal intel_powerclamp squashfs isofs core= temp btrfs kvm_intel cdc_ether iwlmvm kvm mac80211 usbnet irqbypass r8152 b= tusb xor btrtl mii joydev btbcm btintel iwlwifi rtsx_pci_ms evdev mousedev = input_leds bluetooth i915 mac_hid psmouse snd_hda_codec_realtek e1000e snd_= hda_codec_generic pcspkr memstick cfg80211 drm_kms_helper snd_hda_intel snd= _hda_codec intel_pch_thermal lpc_ich i2c_i801 shpchp serio_raw snd_hda_core= drm snd_hwdep ptp pps_core snd_pcm thinkpad_acpi intel_gtt syscopyarea nvr= am led_class sysfillrect snd_timer sysimgblt fb_sys_fops i2c_algo_bit mei_m= e snd thermal mei soundcore wmi rfkill battery ac fjes video tpm_tis button= tpm raid6_pq dummy dm_snapshot dm_bufio processor cdrom ip_tables x_tables= ext4 crc16 mbcache jbd2 jitterentropy_rng sha256_ssse3 kernel: sha256_generic hmac drbg ansi_cprng dm_crypt algif_skcipher af_alg= hid_generic usbhid hid dm_mod sd_mod rtsx_pci_sdmmc mmc_core atkbd libps2 = crct10dif_pclmul crc32_pclmul crc32c_intel aesni_intel ahci aes_x86_64 lrw = libahci gf128mul glue_helper ablk_helper cryptd libata ehci_pci xhci_pci sc= si_mod xhci_hcd ehci_hcd rtsx_pci usbcore usb_common i8042 serio kernel: CPU: 1 PID: 1152 Comm: Xorg Tainted: G U W O 4.4.4-1-rc #1 kernel: Hardware name: LENOVO 20CLS06D00/20CLS06D00, BIOS N10ET41W (1.20 ) = 01/19/2016 kernel: task: ffff8802218f8dc0 ti: ffff8800c2464000 task.ti: ffff8800c24640= 00 kernel: RIP: 0010:[] [] intel_fb_obj_i= nvalidate+0x1c/0xf0 [i915] kernel: RSP: 0018:ffff8800c2467a58 EFLAGS: 00010246 kernel: RAX: ffff8802218f8dc0 RBX: ffff88020339b500 RCX: 0000000000c59581 kernel: RDX: ffff88021dc54780 RSI: 0000000000000000 RDI: ffff88020339b500 kernel: RBP: ffff8800c2467a80 R08: 0000000000018ac0 R09: ffffffffa0509eb6 kernel: R10: ffffea0007ea3f80 R11: ffff8801fa8fec00 R12: 0000000000000000 kernel: R13: 0000000000000000 R14: 0000000000200001 R15: 0000000000000080 kernel: FS: 00007f9507e18940(0000) GS:ffff88022dc40000(0000) knlGS:0000000= 000000000 kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 kernel: CR2: 0000000000000060 CR3: 00000000c7ef9000 CR4: 00000000003406e0 kernel: DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 kernel: DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 kernel: Stack: kernel: ffff88022327c600 ffff88021dc7a000 0000000000000000 0000000000200001 kernel: 0000000000000080 ffff8800c2467aa0 ffffffffa07951b3 000000008133f84f kernel: ffff8800c2467c48 ffff8800c2467c18 ffffffff8133f796 ffff88021dc7a060 kernel: Call Trace: kernel: [] intel_fbdev_set_par+0x43/0x60 [i915] kernel: [] fb_set_var+0x236/0x460 kernel: [] ? do_sys_poll+0x146/0x570 kernel: [] ? update_curr+0x7d/0x180 kernel: [] fbcon_blank+0x30f/0x350 kernel: [] ? ttwu_do_wakeup+0x19/0x100 kernel: [] do_unblank_screen+0xc3/0x190 kernel: [] complete_change_console+0x59/0xe0 kernel: [] vt_ioctl+0x710/0x12e0 kernel: [] ? drm_dropmaster_ioctl+0x68/0x80 [drm] kernel: [] ? drm_ioctl+0x189/0x540 [drm] kernel: [] tty_ioctl+0x361/0xc30 kernel: [] ? kernfs_fop_write+0xa1/0x170 kernel: [] ? __vfs_write+0x37/0x100 kernel: [] do_vfs_ioctl+0x298/0x480 kernel: [] ? __fget+0x77/0xb0 kernel: [] SyS_ioctl+0x79/0x90 kernel: [] entry_SYSCALL_64_fastpath+0x12/0x6d kernel: Code: 41 5f 5d c3 90 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 5= 5 48 89 e5 41 57 41 56 41 55 41 54 41 89 f5 53 4c 8b 67 08 48 89 fb <41> 8b= 44 24 60 4d 8b 74 24 28 83 f8 01 74 58 8b b3 5c 01 00 00=20 kernel: RIP [] intel_fb_obj_invalidate+0x1c/0xf0 [i915] kernel: RSP kernel: CR2: 0000000000000060 kernel: ---[ end trace 2ad3c1c199e798ed ]--- --=20 main(a){char*c=3D/* Schoene Gruesse */"B?IJj;MEH" "CX:;",b;for(a/* Best regards my address: */=3D0;b=3Dc[a+= +];) putchar(b-1/(/* Chris cc -ox -xc - && ./x */b/42*2-3)*42);} --Sig_/h.aEzKZMXcYfXB.jhBzFhkg Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJW1qiHAAoJEIlFIdfMgPR2BuUIAMWL736hnJwuWD/bBBJgh4VH hlk/JCkWhwrM3GKyQU+8bS8CkKY5C2GRuuk9Ep8MjPz3YUHI0KmmKNi3aHk6C2TA AplaDzs0rJWYhsI5J0i7tGK8np8Thl2CpLvjoWR1W+Hi6YiaY3ojpWl15TYJP2+J H7RjRlqabdXtfik4OUYmkOdkT9eC3OEGHYf9ywdwxCjTbb8WfLsq32WdoSdwBNMO uLaZoIHYIxxBvUoyx0WyXRxwuCl8dsx7ZUyyTbc0+xcvaP4UnvXKCN5nBRUs03zy nJfQwRofSQGKJpBdfliXK8ZbJZSp/3+PvcXZ0SpGGlA60Kk2F7U4Cd7OdJWXyNw= =r1oM -----END PGP SIGNATURE----- --Sig_/h.aEzKZMXcYfXB.jhBzFhkg-- --===============0092767558== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KSW50ZWwtZ2Z4 IG1haWxpbmcgbGlzdApJbnRlbC1nZnhAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vaW50ZWwtZ2Z4Cg== --===============0092767558==--