You are not logged in.

#1 2018-07-03 09:06:32

ionree
Member
Registered: 2016-12-29
Posts: 4

[SOLVED] acpi_ev_notify_dispatch Null Pointer Dereference

Today acpid mysteriously stopped working for me, potentially after an AC power loss, although it continued to work fine for a while thereafter.
During my debugging, I noticed a probably related traceback in dmesg:

[    3.664130] ACPI: Battery Slot [BAT0] (battery present)
[    3.671705] thinkpad_acpi: rfkill switch tpacpi_bluetooth_sw: radio is blocked
[    3.726699] thinkpad_acpi: Standard ACPI backlight interface available, not loading native one
[    3.921062] BUG: unable to handle kernel NULL pointer dereference at 0000000000000010
[    3.921273] PGD 0 P4D 0 
[    3.921347] Oops: 0002 [#1] PREEMPT SMP PTI
[    3.921457] Modules linked in: btusb btrtl btbcm btintel bluetooth uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_common videodev medi
a ecdh_generic snd_soc_skl(+) snd_soc_skl_ipc snd_hda_ext_core iTCO_wdt snd_hda_codec_conexant(+) snd_soc_sst_dsp snd_soc_sst_ipc snd_soc_acpi arc4 iTCO_vendor
_support snd_hda_codec_generic snd_soc_core intel_rapl snd_compress ac97_bus snd_pcm_dmaengine x86_pkg_temp_thermal wmi_bmof intel_powerclamp intel_wmi_thunder
bolt coretemp r8822be(C) kvm nls_iso8859_1 mac80211 nls_cp437 vfat fat irqbypass crct10dif_pclmul tpm_crb crc32_pclmul ghash_clmulni_intel pcbc aesni_intel aes
_x86_64 snd_hda_intel crypto_simd cryptd glue_helper intel_cstate snd_hda_codec intel_uncore snd_hda_core intel_rapl_perf snd_hwdep input_leds snd_pcm psmouse 
cfg80211 snd_timer
[    3.923262]  i2c_i801 mei_me pcspkr r8169 mei tpm_tis tpm_tis_core ucsi_acpi tpm thinkpad_acpi(+) mii nvram intel_pch_thermal shpchp typec_ucsi rfkill typec
 rng_core snd wmi soundcore battery ac rtc_cmos evdev mac_hid crypto_user ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 fscrypto serio_raw atkbd li
bps2 crc32c_intel sdhci_pci cqhci xhci_pci sdhci led_class ahci xhci_hcd libahci libata usbcore mmc_core scsi_mod usb_common i8042 serio i915 intel_gtt i2c_alg
o_bit drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops drm agpgart
[    3.924405] CPU: 0 PID: 41 Comm: kworker/0:1 Tainted: G         C        4.17.3-1-ARCH #1
[    3.924590] Hardware name: LENOVO 20KQS0B800/20KQS0B800, BIOS R0PET35W (1.12 ) 01/22/2018
[    3.924760] Workqueue: kacpi_notify acpi_os_execute_deferred
[    3.924870] RIP: 0010:queue_work_on+0x17/0x40
[    3.924949] RSP: 0018:ffffbafb80e17e50 EFLAGS: 00010002
[    3.925051] RAX: 0000000000000202 RBX: 0000000000000202 RCX: 0000000000000000
[    3.925191] RDX: 0000000000000010 RSI: ffff986216806c00 RDI: 0000000000000140
[    3.925228] IPv6: ADDRCONF(NETDEV_UP): wlp5s0: link is not ready
[    3.925355] RBP: ffff9862157dfb88 R08: 0000000000027080 R09: ffffffffc072425c
[    3.925631] R10: fffff757882a4240 R11: 0000000000000000 R12: ffff98621f429c00
[    3.925793] R13: 0000000000000000 R14: 0ffff98621f429c0 R15: ffff9862154a2c00
[    3.925957] FS:  0000000000000000(0000) GS:ffff98621f400000(0000) knlGS:0000000000000000
[    3.926135] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    3.926273] CR2: 0000000000000010 CR3: 000000006900a003 CR4: 00000000003606f0
[    3.926432] Call Trace:
[    3.926477]  ucsi_notify+0x123/0x130 [typec_ucsi]
[    3.926547]  acpi_ev_notify_dispatch+0x4a/0x5f
[    3.926610]  acpi_os_execute_deferred+0x16/0x20
[    3.926675]  process_one_work+0x1d1/0x3b0
[    3.926763]  worker_thread+0x2b/0x3d0
[    3.926843]  ? process_one_work+0x3b0/0x3b0
[    3.926937]  kthread+0x112/0x130
[    3.927006]  ? kthread_flush_work_fn+0x10/0x10
[    3.927106]  ret_from_fork+0x35/0x40
[    3.927192] Code: e9 73 fc ff ff 0f 1f 44 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 53 9c 58 0f 1f 44 00 00 48 89 c3 fa 66 0f 1f 44 00 00 <f0> 48 0
f ba 2a 00 73 10 31 c9 48 89 df 57 9d 0f 1f 44 00 00 89 
[    3.927699] RIP: queue_work_on+0x17/0x40 RSP: ffffbafb80e17e50
[    3.927833] CR2: 0000000000000010
[    3.927920] ---[ end trace 1d6df4b8b6482483 ]---

There are lots of other dmesg messages that suggest ACPI in general is working fine (such as

thinkpad_acpi: battery 1 registered (start 95, stop 100)

).

Most ACPI based keyboard shortcuts (e.g. fn combos, the power button, etc) have stopped working. acpi_listen only prints events for the FN+volume keys combos.

What could have caused this issue, and is there something I can do to fix it?

Last edited by ionree (2018-07-03 09:31:52)

Offline

#2 2018-07-03 09:08:22

loqs
Member
Registered: 2014-03-06
Posts: 17,326

Re: [SOLVED] acpi_ev_notify_dispatch Null Pointer Dereference

Offline

#3 2018-07-03 09:31:36

ionree
Member
Registered: 2016-12-29
Posts: 4

Re: [SOLVED] acpi_ev_notify_dispatch Null Pointer Dereference

Thanks, the patch works perfectly on my machine.

Offline

Board footer

Powered by FluxBB