[Lenovo ThinkPad X230] Input freeze, kernel crash in input_handle_event

Bug #1900360 reported by james
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Description: Ubuntu 20.04.1 LTS
Release: 20.04
xorg:
  Installed: 1:7.7+19ubuntu14
  Candidate: 1:7.7+19ubuntu14
  Version table:
 *** 1:7.7+19ubuntu14 500
        500 http://gb.archive.ubuntu.com/ubuntu focal/main amd64 Packages
        100 /var/lib/dpkg/status

I think the problem arises from use of a USB switch. However it does not necessarily happen when engaging or disengaging USB hub. Inbuilt trackpad allows use of cursor during freeze, but not usb attatched mouse. aside from that nothing gets a response on the display.

Using a Thinkpad X230

kern.log includes crash

```
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.457323] usb 3-3.1: USB disconnect, device number 4
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.457328] usb 3-3.1.1: USB disconnect, device number 5
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.504690] usb 3-3.1.4: USB disconnect, device number 8
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663393] BUG: unable to handle page fault for address: 0000000000001c18
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663396] #PF: supervisor read access in kernel mode
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663398] #PF: error_code(0x0000) - not-present page
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663399] PGD 0 P4D 0
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663402] Oops: 0000 [#1] SMP PTI
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663405] CPU: 2 PID: 25 Comm: kworker/2:0 Not tainted 5.4.0-51-generic #56-Ubuntu
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663406] Hardware name: LENOVO 2324AS7/2324AS7, BIOS G2ETB2WW (2.72 ) 04/11/2018
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663412] Workqueue: usb_hub_wq hub_event
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663417] RIP: 0010:holtek_kbd_input_event+0x4d/0x80 [hid_holtek_kbd]
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663419] Code: 80 10 19 00 00 48 8b 78 40 48 81 ef a0 00 00 00 e8 78 b4 62 d5 48 85 c0 74 2f 48 8b 80 a8 00 00 00 44 89 f1 44 89 ea 44 89 e6 <48> 8b 80 18 1c 00 00 48 8b 78 18 48 8b 87 e0 01 00 00 e8 4c 5c c4
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663420] RSP: 0018:ffffb8018014b7b8 EFLAGS: 00010086
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663422] RAX: 0000000000000000 RBX: 0000000000000011 RCX: 0000000000000000
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663424] RDX: 0000000000000000 RSI: 0000000000000011 RDI: ffff9ea909877000
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663425] RBP: ffffb8018014b7d0 R08: ffff9ea9138cd800 R09: 0000000000000004
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663426] R10: ffff9ea8c3f2cd9d R11: ffff9ea9c3f2cd97 R12: 0000000000000011
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663427] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000003
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663429] FS: 0000000000000000(0000) GS:ffff9ea916480000(0000) knlGS:0000000000000000
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663430] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663431] CR2: 0000000000001c18 CR3: 000000013580a001 CR4: 00000000001606e0
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663432] Call Trace:
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663439] input_handle_event+0x7f/0x610
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663441] input_inject_event+0x82/0x84
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663445] input_leds_brightness_set+0x27/0x30 [input_leds]
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663449] led_set_brightness_nopm+0x17/0x40
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663450] led_set_brightness+0x28/0x60
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663452] led_trigger_set+0x12c/0x2a0
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663455] ? synchronize_rcu+0x67/0x70
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663457] ? __call_rcu+0x1d0/0x1d0
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663459] led_classdev_unregister.part.0+0x32/0xd0
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663460] led_classdev_unregister+0x1f/0x30
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663462] input_leds_disconnect+0x39/0x70 [input_leds]
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663464] __input_unregister_device+0xb5/0x150
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663465] input_unregister_device+0x49/0x70
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663471] hidinput_disconnect+0x89/0xf0 [hid]
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663474] hid_disconnect+0x5c/0x80 [hid]
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663476] hid_device_remove+0x92/0xb0 [hid]
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663479] device_release_driver_internal+0xf0/0x1d0
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663481] device_release_driver+0x12/0x20
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663483] bus_remove_device+0xe1/0x150
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663485] device_del+0x165/0x370
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663488] hid_destroy_device+0x4a/0x60 [hid]
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663491] usbhid_disconnect+0x55/0x70 [usbhid]
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663495] usb_unbind_interface+0x8c/0x260
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663497] device_release_driver_internal+0xf0/0x1d0
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663498] device_release_driver+0x12/0x20
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663499] bus_remove_device+0xe1/0x150
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663501] device_del+0x165/0x370
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663503] ? usb_remove_ep_devs+0x1f/0x30
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663505] usb_disable_device+0x9f/0x250
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663507] usb_disconnect+0xc0/0x270
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663509] usb_disconnect+0xa5/0x270
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663511] hub_port_connect+0x7d/0x850
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663513] port_event+0x502/0x780
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663516] ? __switch_to_asm+0x34/0x70
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663518] hub_event+0x152/0x390
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663521] ? psi_avgs_work+0x64/0xd0
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663523] process_one_work+0x1eb/0x3b0
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663525] worker_thread+0x4d/0x400
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663527] kthread+0x104/0x140
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663529] ? process_one_work+0x3b0/0x3b0
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663530] ? kthread_park+0x90/0x90
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663532] ret_from_fork+0x35/0x40
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663534] Modules linked in: ccm rfcomm cmac algif_hash algif_skcipher af_alg bnep hid_holtek_kbd btusb btrtl btbcm btintel uvcvideo videobuf2_vmalloc bluetooth videobuf2_memops videobuf2_v4l2 videobuf2_common ecdh_generic videodev ecc mc cdc_mbim cdc_ncm usbnet cdc_acm cdc_wdm mii intel_rapl_msr mei_hdcp snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic intel_rapl_common x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm crct10dif_pclmul ghash_clmulni_intel snd_hda_intel aesni_intel snd_intel_dspcfg crypto_simd cryptd glue_helper snd_hda_codec rapl snd_hda_core intel_cstate snd_hwdep i915 snd_seq_midi snd_seq_midi_event joydev snd_pcm iwldvm mac80211 input_leds wmi_bmof serio_raw libarc4 snd_rawmidi iwlwifi drm_kms_helper snd_seq thinkpad_acpi nvram ledtrig_audio i2c_algo_bit cfg80211 snd_seq_device fb_sys_fops syscopyarea mei_me snd_timer mei sysfillrect sysimgblt snd soundcore mac_hid sch_fq_codel parport_pc ppdev lp parport drm ip_tables x_tables autofs4
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663562] hid_generic usbhid hid ahci crc32_pclmul psmouse i2c_i801 libahci lpc_ich sdhci_pci e1000e cqhci sdhci wmi video
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663571] CR2: 0000000000001c18
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663573] ---[ end trace ba407eb493646712 ]---
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663576] RIP: 0010:holtek_kbd_input_event+0x4d/0x80 [hid_holtek_kbd]
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663578] Code: 80 10 19 00 00 48 8b 78 40 48 81 ef a0 00 00 00 e8 78 b4 62 d5 48 85 c0 74 2f 48 8b 80 a8 00 00 00 44 89 f1 44 89 ea 44 89 e6 <48> 8b 80 18 1c 00 00 48 8b 78 18 48 8b 87 e0 01 00 00 e8 4c 5c c4
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663579] RSP: 0018:ffffb8018014b7b8 EFLAGS: 00010086
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663580] RAX: 0000000000000000 RBX: 0000000000000011 RCX: 0000000000000000
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663581] RDX: 0000000000000000 RSI: 0000000000000011 RDI: ffff9ea909877000
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663582] RBP: ffffb8018014b7d0 R08: ffff9ea9138cd800 R09: 0000000000000004
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663582] R10: ffff9ea8c3f2cd9d R11: ffff9ea9c3f2cd97 R12: 0000000000000011
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663583] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000003
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663584] FS: 0000000000000000(0000) GS:ffff9ea916480000(0000) knlGS:0000000000000000
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663585] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Oct 18 21:43:21 james-ThinkPad-X230 kernel: [ 2327.663586] CR2: 0000000000001c18 CR3: 000000013580a001 CR4: 00000000001606e0

```

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: xorg 1:7.7+19ubuntu14
ProcVersionSignature: Ubuntu 5.4.0-51.56-generic 5.4.65
Uname: Linux 5.4.0-51-generic x86_64
.tmp.unity_support_test.0:

ApportVersion: 2.20.11-0ubuntu27.9
Architecture: amd64
CasperMD5CheckResult: skip
CompizPlugins: No value set for `/apps/compiz-1/general/screen0/options/active_plugins'
CompositorRunning: None
CurrentDesktop: ubuntu:GNOME
Date: Sun Oct 18 22:35:21 2020
DistUpgraded: 2020-04-28 14:42:33,856 DEBUG Running PostInstallScript: './xorg_fix_proprietary.py'
DistroCodename: focal
DistroVariant: ubuntu
DkmsStatus:
 acpi-call, 1.1.0, 5.4.0-48-generic, x86_64: installed
 acpi-call, 1.1.0, 5.4.0-51-generic, x86_64: installed
ExtraDebuggingInterest: Yes
GpuHangFrequency: Several times a day
GpuHangReproducibility: Occurs more often under certain circumstances
GpuHangStarted: Within the last few days
GraphicsCard:
 Intel Corporation 3rd Gen Core processor Graphics Controller [8086:0166] (rev 09) (prog-if 00 [VGA controller])
   Subsystem: Lenovo 3rd Gen Core processor Graphics Controller [17aa:21fa]
InstallationDate: Installed on 2018-12-25 (663 days ago)
InstallationMedia: Ubuntu 16.04.3 LTS "Xenial Xerus" - Release amd64 (20170801)
MachineType: LENOVO 2324AS7
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.4.0-51-generic root=UUID=957184f1-8feb-4ca9-ac97-3fb70937b4ac ro quiet splash vt.handoff=7
SourcePackage: xorg
Symptom: display
Title: Xorg freeze
UpgradeStatus: Upgraded to focal on 2020-04-28 (173 days ago)
dmi.bios.date: 04/11/2018
dmi.bios.vendor: LENOVO
dmi.bios.version: G2ETB2WW (2.72 )
dmi.board.asset.tag: Not Available
dmi.board.name: 2324AS7
dmi.board.vendor: LENOVO
dmi.board.version: Not Defined
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Not Available
dmi.modalias: dmi:bvnLENOVO:bvrG2ETB2WW(2.72):bd04/11/2018:svnLENOVO:pn2324AS7:pvrThinkPadX230:rvnLENOVO:rn2324AS7:rvrNotDefined:cvnLENOVO:ct10:cvrNotAvailable:
dmi.product.family: ThinkPad X230
dmi.product.name: 2324AS7
dmi.product.sku: LENOVO_MT_2324
dmi.product.version: ThinkPad X230
dmi.sys.vendor: LENOVO
version.compiz: compiz 1:0.9.14.1+20.04.20200211-0ubuntu1
version.libdrm2: libdrm2 2.4.102-1ubuntu1~ppa1
version.libgl1-mesa-dri: libgl1-mesa-dri 20.1.8-1~ppa1
version.libgl1-mesa-glx: libgl1-mesa-glx 20.1.8-1~ppa1
version.xserver-xorg-core: xserver-xorg-core 2:1.20.8-2ubuntu2.4
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev 1:2.10.6-1
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:19.1.0-1
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.917+git20200226-1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.16-1
xserver.bootTime: Sun Oct 18 21:45:35 2020
xserver.configfile: default
xserver.errors:
 /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
 /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
xserver.logfile: /var/log/Xorg.0.log
xserver.version: 2:1.20.8-2ubuntu2.4
xserver.video_driver: modeset

Revision history for this message
james (pixelveteran) wrote :
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

This looks like an input-related kernel crash. But please also check /var/crash for evidence of any other crashes.

summary: - Xorg freeze
+ Freeze
affects: xorg (Ubuntu) → linux (Ubuntu)
Changed in linux (Ubuntu):
status: New → Incomplete
status: Incomplete → New
summary: - Freeze
+ Input freeze
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
james (pixelveteran) wrote : Re: Input freeze

I think this is from a crash that happened a bit later last night. The python traceback shows a permissions error, any clue on how to alleviate this?

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thanks. I don't think that crash file is relevant here so this is just a kernel bug.

summary: - Input freeze
+ Input freeze, kernel crash in input_handle_event
Changed in linux (Ubuntu):
status: Confirmed → New
summary: - Input freeze, kernel crash in input_handle_event
+ [Lenovo ThinkPad X230] Input freeze, kernel crash in input_handle_event
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
james (pixelveteran) wrote :

Changing dm from lightdm to gdm3 has stopped the crashes for me.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.