From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752354AbcAELpD (ORCPT ); Tue, 5 Jan 2016 06:45:03 -0500 Received: from mx1.redhat.com ([209.132.183.28]:47030 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752094AbcAELo7 (ORCPT ); Tue, 5 Jan 2016 06:44:59 -0500 Subject: Re: thinkpad_acpi: BUG: unable to handle kernel NULL pointer dereference To: =?UTF-8?Q?Pali_Roh=c3=a1r?= , Jeremiah Mahler , linux-kernel@vger.kernel.org, Henrique de Moraes Holschuh , Darren Hart References: <20160105023347.GA1646@hudson.localdomain> <20160105081718.GD22661@pali> From: Hans de Goede Message-ID: <568BACB6.1090403@redhat.com> Date: Tue, 5 Jan 2016 12:44:54 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <20160105081718.GD22661@pali> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, On 05-01-16 09:17, Pali Rohár wrote: > Hello, > > looks like this fault is in acpi video module, not in thinkpad. CCing > Hans who introduced this acpi video brightness key change. > > Hans, can you look at this bug? Pali thanks for bringing this to my attention. Adrien Schildknecht has already posted a fix for this, I've added all people receiving this mail to the Cc for my reply (my ack) for Adrien's fix. Regards, Hans > > On Monday 04 January 2016 18:33:47 Jeremiah Mahler wrote: >> all, >> >> Just tried linux-next 20160104 on a Lenovo Carbon X1 and I got a BUG >> message about a NULL pointer dereference. There is also a WARNING about >> a mutex (see below). It looks like it might be related to something in >> the thinkpad_acpi module. >> >> [...] >> [ 2.374627] thinkpad_acpi: ThinkPad ACPI Extras v0.25 >> [ 2.374630] thinkpad_acpi: http://ibm-acpi.sf.net/ >> [ 2.374632] thinkpad_acpi: ThinkPad BIOS G6ET59WW (2.03 ), EC unknown >> [ 2.374633] thinkpad_acpi: Lenovo ThinkPad X1 Carbon, model 3443CTO >> [ 2.375176] thinkpad_acpi: Unsupported brightness interface >> [ 2.375303] thinkpad_acpi: radio switch found; radios are enabled >> [ 2.375317] ------------[ cut here ]------------ >> [ 2.375384] WARNING: CPU: 1 PID: 303 at kernel/locking/mutex.c:526 __mutex_lock_slowpath+0x2d8/0x2f0() >> [ 2.375453] DEBUG_LOCKS_WARN_ON(l->magic != l) >> [ 2.375503] Modules linked in: >> [ 2.375592] battery thinkpad_acpi(+) mei_me snd_timer nvram ac snd mei video button tpm_tis(+) i2c_i801 shpchp soundcore lpc_ich tpm mfd_core i2c_core intel_smartconnect btusb btbcm btintel bluetooth rfkill loop ipv6 autofs4 ext4 crc16 mbcache jbd2 sd_mod ahci libahci libata scsi_mod sdhci_pci sdhci xhci_pci mmc_core xhci_hcd ehci_pci ehci_hcd usbcore usb_common thermal >> [ 2.377790] CPU: 1 PID: 303 Comm: systemd-udevd Not tainted 4.4.0-rc7-next-20160104+ #2 >> [ 2.377888] Hardware name: LENOVO 3443CTO/3443CTO, BIOS G6ET59WW (2.03 ) 09/11/2012 >> [ 2.377984] ffffffff81722534 ffffffff812d0967 ffff880035e07ae0 ffffffff8106ad7d >> [ 2.378269] ffffffffa0381360 ffff880035e07b30 ffffffffa0381368 ffff8801181ef100 >> [ 2.378550] ffffffffa03ea348 ffffffff8106adfc ffffffff8172251c 0000000000000020 >> [ 2.378817] Call Trace: >> [ 2.378895] [] ? dump_stack+0x40/0x59 >> [ 2.378971] [] ? warn_slowpath_common+0x7d/0xb0 >> [ 2.379033] [] ? warn_slowpath_fmt+0x4c/0x50 >> [ 2.379109] [] ? kernfs_add_one+0x103/0x160 >> [ 2.379185] [] ? __mutex_lock_slowpath+0x2d8/0x2f0 >> [ 2.379262] [] ? mutex_lock+0x16/0x30 >> [ 2.379343] [] ? acpi_video_handles_brightness_key_presses+0x12/0x40 [video] >> [ 2.379427] [] ? hotkey_init+0x5aa/0x716 [thinkpad_acpi] >> [ 2.379502] [] ? thinkpad_acpi_module_init.part.32+0x5f6/0x925 [thinkpad_acpi] >> [ 2.379598] [] ? thinkpad_acpi_module_init.part.32+0x925/0x925 [thinkpad_acpi] >> [ 2.379693] [] ? thinkpad_acpi_module_init+0x352/0x8cf [thinkpad_acpi] >> [ 2.379799] [] ? free_pcppages_bulk+0xbb/0x480 >> [ 2.379871] [] ? do_one_initcall+0xb2/0x200 >> [ 2.379947] [] ? do_init_module+0x5b/0x1e0 >> [ 2.380012] [] ? load_module+0x220e/0x2810 >> [ 2.380079] [] ? __symbol_put+0x30/0x30 >> [ 2.380147] [] ? SyS_finit_module+0x90/0xc0 >> [ 2.380219] [] ? entry_SYSCALL_64_fastpath+0x16/0x71 >> [ 2.380296] ---[ end trace 60661306144c0866 ]--- >> [ 2.380374] BUG: unable to handle kernel NULL pointer dereference at (null) >> [ 2.380552] IP: [] __mutex_lock_slowpath+0xd5/0x2f0 >> [ 2.380682] PGD 0 >> [ 2.380795] Oops: 0002 [#1] SMP >> [ 2.380968] Modules linked in: battery thinkpad_acpi(+) mei_me snd_timer nvram ac snd mei video button tpm_tis(+) i2c_i801 shpchp soundcore lpc_ich tpm mfd_core i2c_core intel_smartconnect btusb btbcm btintel bluetooth rfkill loop ipv6 autofs4 ext4 crc16 mbcache jbd2 sd_mod ahci libahci libata scsi_mod sdhci_pci sdhci xhci_pci mmc_core xhci_hcd ehci_pci ehci_hcd usbcore usb_common thermal >> [ 2.383278] CPU: 1 PID: 303 Comm: systemd-udevd Tainted: G W 4.4.0-rc7-next-20160104+ #2 >> [ 2.383358] Hardware name: LENOVO 3443CTO/3443CTO, BIOS G6ET59WW (2.03 ) 09/11/2012 >> [ 2.383455] task: ffff8801181ef100 ti: ffff880035e04000 task.ti: ffff880035e04000 >> [ 2.383547] RIP: 0010:[] [] __mutex_lock_slowpath+0xd5/0x2f0 >> [ 2.383634] ACPI: Battery Slot [BAT0] (battery present) >> [ 2.383706] RSP: 0018:ffff880035e07b40 EFLAGS: 00010002 >> [ 2.383761] RAX: 0000000000000000 RBX: ffffffffa0381360 RCX: ffffffffa0381380 >> [ 2.383820] RDX: 0000000000000000 RSI: ffff880035e07b50 RDI: ffffffffa0381360 >> [ 2.383874] RBP: ffff880035e07ba0 R08: 0000000000000000 R09: 00000000000002c4 >> [ 2.383924] R10: ffffffff81a85600 R11: 00000000000002c4 R12: ffffffffa0381368 >> [ 2.383975] R13: ffff8801181ef100 R14: 00000000ffffffff R15: 0000000000000246 >> [ 2.384026] FS: 00007f1c1743a8c0(0000) GS:ffff88011e280000(0000) knlGS:0000000000000000 >> [ 2.384087] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 >> [ 2.384136] CR2: 0000000000000000 CR3: 0000000035fa6000 CR4: 00000000001406e0 >> [ 2.384186] Stack: >> [ 2.384230] ffff8800c76612f8 ffffffffa0381380 ffffffffa0381380 0000000000000000 >> [ 2.384419] 1111111111111111 ffff880035e07b50 ffff8800c9ea1800 ffffffffa0381360 >> [ 2.384607] 0000000000000001 0000000000000001 ffffffffa03ea348 ffffffffa03e1c60 >> [ 2.384799] Call Trace: >> [ 2.384846] [] ? mutex_lock+0x16/0x30 >> [ 2.384896] [] ? acpi_video_handles_brightness_key_presses+0x12/0x40 [video] >> [ 2.384961] [] ? hotkey_init+0x5aa/0x716 [thinkpad_acpi] >> [ 2.385014] [] ? thinkpad_acpi_module_init.part.32+0x5f6/0x925 [thinkpad_acpi] >> [ 2.385085] [] ? thinkpad_acpi_module_init.part.32+0x925/0x925 [thinkpad_acpi] >> [ 2.385152] [] ? thinkpad_acpi_module_init+0x352/0x8cf [thinkpad_acpi] >> [ 2.385216] [] ? free_pcppages_bulk+0xbb/0x480 >> [ 2.385271] [] ? do_one_initcall+0xb2/0x200 >> [ 2.385323] [] ? do_init_module+0x5b/0x1e0 >> [ 2.385373] [] ? load_module+0x220e/0x2810 >> [ 2.385427] [] ? __symbol_put+0x30/0x30 >> [ 2.385484] [] ? SyS_finit_module+0x90/0xc0 >> [ 2.385535] [] ? entry_SYSCALL_64_fastpath+0x16/0x71 >> [ 2.385588] Code: 48 89 df e8 0e 24 bb ff 48 8d 43 20 48 8d 74 24 10 48 89 c1 48 89 44 24 08 48 8b 43 28 48 89 4c 24 10 48 89 73 28 48 89 44 24 18 <48> 89 30 4c 89 6c 24 20 8b 03 85 c0 78 0e 44 89 f0 87 03 83 f8 >> [ 2.387856] RIP [] __mutex_lock_slowpath+0xd5/0x2f0 >> [ 2.387945] RSP >> [ 2.387993] CR2: 0000000000000000 >> [ 2.388042] ---[ end trace 60661306144c0867 ]--- >> [ 2.392773] [drm] Initialized drm 1.1.0 20060810 >> [ 2.415803] tpm_tis 00:05: TPM is disabled/deactivated (0x6) >> [ 2.431086] wmi: Mapper loaded >> [...] >> >