Bug 217929 - ucsi_acpi_async_write NULL pointer dereference on VivoBook_ASUSLaptop
Summary: ucsi_acpi_async_write NULL pointer dereference on VivoBook_ASUSLaptop
Status: RESOLVED OBSOLETE
Alias: None
Product: ACPI
Classification: Unclassified
Component: ACPICA-Core (show other bugs)
Hardware: Intel Linux
: P3 blocking
Assignee: acpi_acpica-core@kernel-bugs.osdl.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-20 08:19 UTC by Francesco
Modified: 2023-09-28 07:33 UTC (History)
2 users (show)

See Also:
Kernel Version:
Subsystem:
Regression: No
Bisected commit-id:


Attachments
Kernel log (134.27 KB, text/plain)
2023-09-20 08:19 UTC, Francesco
Details

Description Francesco 2023-09-20 08:19:53 UTC
Created attachment 305130 [details]
Kernel log

On my VivoBook laptop, I encountered a critical kernel error that caused a system crash.
This error occurred while the system was running the 6.2.0-33-generic and 6.2.0-32-generic versions of the Ubuntu kernel, 6.2.0-32 works fine. The hardware used is an ASUS VivoBook K3502ZA with BIOS version K3502ZA.307, last updated on 09/08/2022.
Detaching all USB devices does not fix the issue.


Steps to Reproduce:
Boot the VivoBook laptop.
Start kernel


Expected Behavior:
The system should operate without encountering kernel NULL pointer dereference errors and subsequent crashes.


Actual Behavior:
The system crashes with the mentioned kernel error.


Please let me know if you need further information or logs to investigate and resolve this bug.
Comment 1 Bagas Sanjaya 2023-09-20 11:46:40 UTC
(In reply to Francesco from comment #0)
> Created attachment 305130 [details]
> Kernel log
> 
> On my VivoBook laptop, I encountered a critical kernel error that caused a
> system crash.
> This error occurred while the system was running the 6.2.0-33-generic and
> 6.2.0-32-generic versions of the Ubuntu kernel, 6.2.0-32 works fine. The
> hardware used is an ASUS VivoBook K3502ZA with BIOS version K3502ZA.307,
> last updated on 09/08/2022.
> Detaching all USB devices does not fix the issue.
> 

Seems like running distribution kernel. Can you reproduce this issue
on latest mainline (currently v6.6-rc2)?
Comment 2 Francesco 2023-09-27 08:31:05 UTC
(In reply to Bagas Sanjaya from comment #1)

Are these packages good for testing?
https://kernel.ubuntu.com/~kernel-ppa/mainline/v6.6-rc2/amd64/
Comment 3 Bagas Sanjaya 2023-09-28 00:20:13 UTC
(In reply to Francesco from comment #2)
> (In reply to Bagas Sanjaya from comment #1)
> 
> Are these packages good for testing?
> https://kernel.ubuntu.com/~kernel-ppa/mainline/v6.6-rc2/amd64/

You should try compiling your own kernel instead. See Documentation/admin-guide/quickly-build-trimmed-linux.rst in the kernel sources for how to do that.
Comment 4 Francesco 2023-09-28 07:33:31 UTC
I installed and booted linux-image-6.6.0-rc3_6.6.0-rc3-7_amd64.deb, it works.

I found this line in log:

$ grep -i ucsi dmesg.txt 
[    3.355927] ucsi_acpi USBC000:00: error -EOPNOTSUPP: PPM init failed
[   14.166777]  processor_thermal_rfim ecdh_generic mei ecc processor_thermal_mbox mc soundcore thunderbolt processor_thermal_rapl intel_rapl_common igen6_edac intel_vsec joydev int3403_thermal int340x_thermal_zone int3400_thermal acpi_thermal_rel acpi_pad acpi_tad hid_multitouch input_leds serio_raw mac_hid coretemp msr efi_pstore dmi_sysfs ip_tables x_tables autofs4 dm_crypt hid_microsoft ff_memless r8153_ecm cdc_ether usbnet r8152 mii usbhid uas usb_storage nvme nvme_core hid_generic nvme_common i915 i2c_algo_bit drm_buddy crct10dif_pclmul ttm crc32_pclmul polyval_clmulni drm_display_helper polyval_generic ghash_clmulni_intel i2c_hid_acpi sha512_ssse3 i2c_hid drm_kms_helper aesni_intel hid crypto_simd ucsi_acpi intel_lpss_pci cec spi_intel_pci i2c_i801 cryptd typec_ucsi intel_lpss drm xhci_pci spi_intel i2c_smbus vmd idma64 rc_core xhci_pci_renesas typec video wmi pinctrl_tigerlake

Thank you for your effort.

Note You need to log in before you can comment on or make changes to this bug.