Linux kernel crash on Ubuntu 22.10 on Thinkpad X1 Carbon Gen 10

Bug #1993818 reported by Billy Kwong
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Fix Committed
Undecided
Unassigned
Kinetic
Won't Fix
Undecided
Unassigned

Bug Description

Been experiencing random hangs since upgraded to 22.10.

Looking at /var/log/kern.log after crash I'm seeing general protection fault from /var/log/kern.log.

Oct 21 20:41:38 tyrant kernel: [ 281.051619] general protection fault, probably for non-canonical address 0x258d1b2070000028: 0000 [#1] PREEMPT SMP NOPTI
Oct 21 20:41:38 tyrant kernel: [ 281.051629] CPU: 13 PID: 2445 Comm: gnome-shell Tainted: G W 5.19.0-21-generic #21-Ubuntu
Oct 21 20:41:38 tyrant kernel: [ 281.051633] Hardware name: LENOVO 21CBCTO1WW/21CBCTO1WW, BIOS N3AET67W (1.32 ) 09/27/2022
Oct 21 20:41:38 tyrant kernel: [ 281.051636] RIP: 0010:rm_hole+0x1a7/0x340 [drm]
Oct 21 20:41:38 tyrant kernel: [ 281.051676] Code: 8b 78 08 eb 1c 48 89 50 28 48 8b 10 48 89 d0 48 83 e0 fc 48 83 fa 03 76 32 48 8b 48 10 48 8b 78 08 48 8b 50 20 48 85 c9 74 0b <48> 8b 49 28 48 39 ca 48 0f 42 d1 48 85 ff 74 0b 48 8b 4f 28 48 39
Oct 21 20:41:38 tyrant kernel: [ 281.051679] RSP: 0018:ffffac26834ab9c0 EFLAGS: 00010206
Oct 21 20:41:38 tyrant kernel: [ 281.051683] RAX: ffff90258161d1b0 RBX: ffff902580fd7800 RCX: 258d1b2070000000
Oct 21 20:41:38 tyrant kernel: [ 281.051686] RDX: 0003ccf000000000 RSI: ffff9025a4351528 RDI: 0000000000ffff90
Oct 21 20:41:38 tyrant kernel: [ 281.051688] RBP: ffffac26834ab9e0 R08: 0000000000000000 R09: 0000000000000000
Oct 21 20:41:38 tyrant kernel: [ 281.051690] R10: ffff902580fd7870 R11: ffff902581747740 R12: ffff902580fd7858
Oct 21 20:41:38 tyrant kernel: [ 281.051692] R13: ffff9025a4351528 R14: ffff9025a43515f8 R15: 0000000000110000
Oct 21 20:41:38 tyrant kernel: [ 281.051694] FS: 00007f553c5d45c0(0000) GS:ffff902cbf740000(0000) knlGS:0000000000000000
Oct 21 20:41:38 tyrant kernel: [ 281.051697] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Oct 21 20:41:38 tyrant kernel: [ 281.051700] CR2: 00007f35e73685c0 CR3: 000000013119a001 CR4: 0000000000770ee0
Oct 21 20:41:38 tyrant kernel: [ 281.051702] PKRU: 55555554
Oct 21 20:41:38 tyrant kernel: [ 281.051704] Call Trace:
Oct 21 20:41:38 tyrant kernel: [ 281.051707] <TASK>
Oct 21 20:41:38 tyrant kernel: [ 281.051711] drm_mm_insert_node_in_range+0x26a/0x500 [drm]
Oct 21 20:41:38 tyrant kernel: [ 281.051745] _i915_gem_object_stolen_init+0x28c/0x2e0 [i915]
Oct 21 20:41:38 tyrant kernel: [ 281.051871] __i915_gem_object_create_region+0xb2/0x170 [i915]
Oct 21 20:41:38 tyrant kernel: [ 281.051977] i915_gem_object_create_region+0x1e/0x30 [i915]
Oct 21 20:41:38 tyrant kernel: [ 281.052080] i915_gem_object_create_stolen+0x19/0x30 [i915]
Oct 21 20:41:38 tyrant kernel: [ 281.052184] intel_dpt_create+0x20b/0x2c0 [i915]
Oct 21 20:41:38 tyrant kernel: [ 281.052299] intel_framebuffer_init+0x749/0x960 [i915]
Oct 21 20:41:38 tyrant kernel: [ 281.052408] ? kmem_cache_alloc_trace+0x189/0x310
Oct 21 20:41:38 tyrant kernel: [ 281.052414] intel_framebuffer_create+0x40/0x90 [i915]
Oct 21 20:41:38 tyrant kernel: [ 281.052521] intel_user_framebuffer_create+0xf8/0x1d0 [i915]
Oct 21 20:41:38 tyrant kernel: [ 281.052626] drm_internal_framebuffer_create+0xb3/0x150 [drm]
Oct 21 20:41:38 tyrant kernel: [ 281.052667] drm_mode_addfb2+0x44/0xd0 [drm]
Oct 21 20:41:38 tyrant kernel: [ 281.052705] ? drm_mode_addfb_ioctl+0x20/0x20 [drm]
Oct 21 20:41:38 tyrant kernel: [ 281.052743] drm_mode_addfb2_ioctl+0xe/0x20 [drm]
Oct 21 20:41:38 tyrant kernel: [ 281.052780] drm_ioctl_kernel+0xd3/0x180 [drm]
Oct 21 20:41:38 tyrant kernel: [ 281.052811] drm_ioctl+0x29d/0x4d0 [drm]
Oct 21 20:41:38 tyrant kernel: [ 281.052840] ? drm_mode_addfb_ioctl+0x20/0x20 [drm]
Oct 21 20:41:38 tyrant kernel: [ 281.052879] __x64_sys_ioctl+0x9d/0xe0
Oct 21 20:41:38 tyrant kernel: [ 281.052884] do_syscall_64+0x58/0x90
Oct 21 20:41:38 tyrant kernel: [ 281.052888] ? __do_sys_kcmp+0x208/0x550
Oct 21 20:41:38 tyrant kernel: [ 281.052894] ? exit_to_user_mode_prepare+0x30/0xb0
Oct 21 20:41:38 tyrant kernel: [ 281.052899] ? syscall_exit_to_user_mode+0x26/0x50
Oct 21 20:41:38 tyrant kernel: [ 281.052902] ? __x64_sys_kcmp+0x1f/0x30
Oct 21 20:41:38 tyrant kernel: [ 281.052905] ? do_syscall_64+0x67/0x90
Oct 21 20:41:38 tyrant kernel: [ 281.052908] ? sysvec_apic_timer_interrupt+0x4b/0xd0
Oct 21 20:41:38 tyrant kernel: [ 281.052911] entry_SYSCALL_64_after_hwframe+0x63/0xcd
Oct 21 20:41:38 tyrant kernel: [ 281.052915] RIP: 0033:0x7f5540712d8f
Oct 21 20:41:38 tyrant kernel: [ 281.052919] Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 18 48 8b 44 24 18 64 48 2b 04 25 28 00 00
Oct 21 20:41:38 tyrant kernel: [ 281.052922] RSP: 002b:00007ffdee1cb5f0 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
Oct 21 20:41:38 tyrant kernel: [ 281.052925] RAX: ffffffffffffffda RBX: 00007ffdee1cb76c RCX: 00007f5540712d8f
Oct 21 20:41:38 tyrant kernel: [ 281.052927] RDX: 00007ffdee1cb680 RSI: 00000000c06864b8 RDI: 0000000000000009
Oct 21 20:41:38 tyrant kernel: [ 281.052929] RBP: 00007ffdee1cb680 R08: 00007ffdee1cb7cc R09: 00007ffdee1cb7ec
Oct 21 20:41:38 tyrant kernel: [ 281.052931] R10: 0000000000000009 R11: 0000000000000246 R12: 00000000c06864b8
Oct 21 20:41:38 tyrant kernel: [ 281.052933] R13: 0000000000000009 R14: 00007ffdee1cb76c R15: 00007ffdee1cb970
Oct 21 20:41:38 tyrant kernel: [ 281.052936] </TASK>
Oct 21 20:41:38 tyrant kernel: [ 281.052938] Modules linked in: ccm rfcomm cmac algif_hash algif_skcipher af_alg xt_CHECKSUM xt_MASQUERADE xt_conntrack ipt_REJECT nf_reject_ipv4 xt_tcpudp nft_compat snd_seq_dummy snd_hrtimer nft_chain_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 bnep btusb uvcvideo btrtl videobuf2_vmalloc videobuf2_memops btbcm videobuf2_v4l2 btintel videobuf2_common btmtk videodev bluetooth nf_tables mc libcrc32c ecdh_generic ecc nfnetlink bridge stp llc nls_iso8859_1 snd_ctl_led snd_soc_skl_hda_dsp snd_soc_intel_hda_dsp_common snd_soc_hdac_hdmi snd_sof_probes snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic snd_soc_dmic snd_sof_pci_intel_tgl snd_sof_intel_hda_common soundwire_intel soundwire_generic_allocation soundwire_cadence snd_sof_intel_hda snd_sof_pci snd_sof_xtensa_dsp snd_sof snd_sof_utils snd_soc_hdac_hda snd_hda_ext_core snd_soc_acpi_intel_match snd_soc_acpi soundwire_bus snd_soc_core snd_compress ac97_bus snd_pcm_dmaengine snd_hda_intel snd_intel_dspcfg
Oct 21 20:41:38 tyrant kernel: [ 281.053003] snd_intel_sdw_acpi snd_hda_codec snd_hda_core snd_hwdep iwlmvm snd_pcm intel_tcc_cooling x86_pkg_temp_thermal intel_powerclamp snd_seq_midi snd_seq_midi_event coretemp mac80211 snd_rawmidi kvm_intel snd_seq thinkpad_acpi joydev nvram snd_seq_device libarc4 snd_timer kvm ledtrig_audio iwlwifi pmt_telemetry mei_pxp mei_hdcp input_leds platform_profile snd spi_nor think_lmi soc_button_array int3403_thermal rapl pmt_class intel_rapl_msr processor_thermal_device_pci intel_cstate firmware_attributes_class serio_raw wmi_bmof hid_multitouch cfg80211 mtd soundcore mei_me processor_thermal_device mei ucsi_acpi processor_thermal_rfim typec_ucsi processor_thermal_mbox processor_thermal_rapl typec intel_rapl_common intel_vsec igen6_edac int340x_thermal_zone mac_hid intel_hid int3400_thermal sparse_keymap acpi_thermal_rel acpi_pad acpi_tad msr parport_pc ppdev lp parport ramoops pstore_blk reed_solomon pstore_zone efi_pstore ip_tables x_tables autofs4 dm_crypt usbhid r8153_ecm cdc_ether
Oct 21 20:41:38 tyrant kernel: [ 281.053074] usbnet r8152 mii hid_generic i915 drm_buddy i2c_algo_bit ttm drm_display_helper cec rc_core drm_kms_helper syscopyarea sysfillrect crct10dif_pclmul intel_lpss_pci sysimgblt crc32_pclmul ghash_clmulni_intel aesni_intel crypto_simd i2c_hid_acpi fb_sys_fops intel_lpss nvme cryptd psmouse drm idma64 i2c_hid i2c_i801 nvme_core thunderbolt xhci_pci spi_intel_pci spi_intel i2c_smbus xhci_pci_renesas wmi hid video pinctrl_tigerlake
Oct 21 20:41:38 tyrant kernel: [ 281.053114] ---[ end trace 0000000000000000 ]---
Oct 21 20:41:38 tyrant kernel: [ 281.708374] RIP: 0010:rm_hole+0x1a7/0x340 [drm]
Oct 21 20:41:38 tyrant kernel: [ 281.708420] Code: 8b 78 08 eb 1c 48 89 50 28 48 8b 10 48 89 d0 48 83 e0 fc 48 83 fa 03 76 32 48 8b 48 10 48 8b 78 08 48 8b 50 20 48 85 c9 74 0b <48> 8b 49 28 48 39 ca 48 0f 42 d1 48 85 ff 74 0b 48 8b 4f 28 48 39
Oct 21 20:41:38 tyrant kernel: [ 281.708422] RSP: 0018:ffffac26834ab9c0 EFLAGS: 00010206
Oct 21 20:41:38 tyrant kernel: [ 281.708425] RAX: ffff90258161d1b0 RBX: ffff902580fd7800 RCX: 258d1b2070000000
Oct 21 20:41:38 tyrant kernel: [ 281.708427] RDX: 0003ccf000000000 RSI: ffff9025a4351528 RDI: 0000000000ffff90
Oct 21 20:41:38 tyrant kernel: [ 281.708429] RBP: ffffac26834ab9e0 R08: 0000000000000000 R09: 0000000000000000
Oct 21 20:41:38 tyrant kernel: [ 281.708431] R10: ffff902580fd7870 R11: ffff902581747740 R12: ffff902580fd7858
Oct 21 20:41:38 tyrant kernel: [ 281.708432] R13: ffff9025a4351528 R14: ffff9025a43515f8 R15: 0000000000110000
Oct 21 20:41:38 tyrant kernel: [ 281.708434] FS: 00007f553c5d45c0(0000) GS:ffff902cbf740000(0000) knlGS:0000000000000000
Oct 21 20:41:38 tyrant kernel: [ 281.708436] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Oct 21 20:41:38 tyrant kernel: [ 281.708438] CR2: 00007f35e73685c0 CR3: 000000013119a002 CR4: 0000000000770ee0
Oct 21 20:41:38 tyrant kernel: [ 281.708440] PKRU: 55555554

ProblemType: Bug
DistroRelease: Ubuntu 22.10
Package: linux-image-5.19.0-21-generic 5.19.0-21.21
ProcVersionSignature: Ubuntu 5.19.0-21.21-generic 5.19.7
Uname: Linux 5.19.0-21-generic x86_64
ApportVersion: 2.23.1-0ubuntu3
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: tuppa 2314 F.... pipewire
                      tuppa 2316 F.... wireplumber
 /dev/snd/seq: tuppa 2314 F.... pipewire
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Sat Oct 22 00:19:50 2022
InstallationDate: Installed on 2022-05-18 (156 days ago)
InstallationMedia: Kubuntu 22.04 LTS "Jammy Jellyfish" - Release amd64 (20220419)
MachineType: LENOVO 21CBCTO1WW
ProcFB: 0 i915drmfb
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-5.19.0-21-generic root=/dev/mapper/vg0-root0 ro quiet splash vt.handoff=7
PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No PulseAudio daemon running, or not running as session daemon.
RelatedPackageVersions:
 linux-restricted-modules-5.19.0-21-generic N/A
 linux-backports-modules-5.19.0-21-generic N/A
 linux-firmware 20220923.gitf09bebf3-0ubuntu1
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 09/27/2022
dmi.bios.release: 1.32
dmi.bios.vendor: LENOVO
dmi.bios.version: N3AET67W (1.32 )
dmi.board.asset.tag: Not Available
dmi.board.name: 21CBCTO1WW
dmi.board.vendor: LENOVO
dmi.board.version: SDK0T76530 WIN
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: None
dmi.ec.firmware.release: 1.15
dmi.modalias: dmi:bvnLENOVO:bvrN3AET67W(1.32):bd09/27/2022:br1.32:efr1.15:svnLENOVO:pn21CBCTO1WW:pvrThinkPadX1CarbonGen10:rvnLENOVO:rn21CBCTO1WW:rvrSDK0T76530WIN:cvnLENOVO:ct10:cvrNone:skuLENOVO_MT_21CB_BU_Think_FM_ThinkPadX1CarbonGen10:
dmi.product.family: ThinkPad X1 Carbon Gen 10
dmi.product.name: 21CBCTO1WW
dmi.product.sku: LENOVO_MT_21CB_BU_Think_FM_ThinkPad X1 Carbon Gen 10
dmi.product.version: ThinkPad X1 Carbon Gen 10
dmi.sys.vendor: LENOVO

Revision history for this message
Billy Kwong (tuppa) wrote :
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
Andrea Righi (arighi) wrote :

I noticed that we're missing some i915 fixes from stable updates, so I've applied a bunch of patches from stable and produced this test kernel:

https://kernel.ubuntu.com/~arighi/lp-1993818/

It'd be great if someone affected by this bug could give it a try and verify if the problem is still happening. Thanks in advance!

Revision history for this message
Dan Meyers (dannnnnnnn) wrote :

Hi Andrea, I was seeing the problem quite frequently (maybe every 5-10 minutes), although I haven't seen it in the past 30 minutes, since I've updated to your kernel.

And since this is related to i915, I'm also going to mention that I see some visual distortions on the screen when I move my mouse across a specific area of the screen. The distortions are multi-colored horizontal lines that stretch all the way across the display. This issue also existed prior to installing your test kernel. Anyhow, just thought I'd mention it in case it could be somehow related to something that went missing along the way (22.04 works beautifully for me).

Thanks for the quick fix on the stability issues!

Revision history for this message
Andrea Righi (arighi) wrote :

Thanks for testing and good to know that the kernel doesn't seem to crash (so far). All the i915 fixes that I applied will be available in the next official Kinetic kernel, so we should be good. Let me know if the problem happens again.

About the color distortions I'll investigate a bit. I may ask you to test another kernel if I find something interesting. :)

Revision history for this message
Dan Meyers (dannnnnnnn) wrote :

Still no crashes/freezes after almost day of usage, so I think we're good in that respect.

I also resolved the distortion issue I was having by adding the "i915.enable_psr=0" kernel option. I was detecting some slight lag w/ the mouse periodically and found that as a potential solution -- it seems to fix both the lag AND the distortion!

Anyhow, at the moment my system feels much like the sturdy/stable system I had with 22.04. Thanks again for the help!

Andrea Righi (arighi)
Changed in linux (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
Billy Kwong (tuppa) wrote :

Sorry for the late comment, I've tried the patches from the linked kernel packages, no crashes for me so far either.

Revision history for this message
chortya (chortya-x) wrote :

I can also confirm that the patches posted here and enabling ""i915.enable_psr=0" fixed all issues. I have also tried kernel 6.2.1 using "Ubuntu Mainline Kernel Installer" but that kernel has suspend issues. How do I report this properly?

Revision history for this message
Utkarsh Gupta (utkarsh) wrote :

Ubuntu 22.10 (Kinetic Kudu) has reached end of life, so this bug will not be fixed for that specific release.

Changed in linux (Ubuntu Kinetic):
status: New → Won't Fix
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.