You are not logged in.

#1 2024-04-11 20:04:29

MetalInMyVeins
Member
Registered: 2024-02-03
Posts: 16

[SOLVED] Random kernel panics

Problem: I'm having random kernel panics in my laptop for almost a week now.

Symptom: The laptop completely freezes and the caps locks keeps blinking. The fan starts rotating at full speed (3400+ rpm) and the air is warm. I noted that the kernel panic is more likely to occur if I leave the laptop idle for quite some time (10-30 minutes).

Device:
Lenovo Thinkpad L14 Gen 1
Core i5-10201U
1 TB HDD
8 GB Ram

┬─(metal111㉿Archpad1)──(~)──(02:06:25)
╰───>> neofetch
                   -`                    metal111@Archpad1 
                  .o+`                   ----------------- 
                 `ooo/                   OS: Arch Linux x86_64 
                `+oooo:                  Host: 20U2S8L200 ThinkPad L14 Gen 1 
               `+oooooo:                 Kernel: 6.8.4-arch1-1 
               -+oooooo+:                Uptime: 58 mins 
             `/:-:++oooo+:               Packages: 1113 (pacman), 11 (flatpak) 
            `/++++/+++++++:              Shell: fish 3.7.1 
           `/++++++++++++++:             Resolution: 1366x768 
          `/+++ooooooooooooo/`           DE: Plasma 6.0.3 
         ./ooosssso++osssssso+`          WM: kwin 
        .oossssso-````/ossssss+`         Theme: Breeze-Dark [GTK2], Breeze [GTK3] 
       -osssssso.      :ssssssso.        Icons: BeautySolar [GTK2/3] 
      :osssssss/        osssso+++.       Terminal: tilix 
     /ossssssss/        +ssssooo/-       CPU: Intel i5-10210U (8) @ 4.200GHz 
   `/ossssso+/:-        -:/+osssso+-     GPU: Intel CometLake-U GT2 [UHD Graphics] 
  `+sso+:-`                 `.-/+oso:    Memory: 1891MiB / 7608MiB 
 `++:.                           `-/+/
 .`                                 `/                           
                                                                 

┬─(metal111㉿Archpad1)──(~)──(02:06:31)
╰───>> uname -a
Linux Archpad1 6.8.4-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 05 Apr 2024 00:14:23 +0000 x86_64 GNU/Linux

Possible Clues:
Integrated Camera: For whatever reason, the webcam doesn't work (it used to work once). Going in Zoom shows the integrated camera continuously connecting and disconnecting in the Video settings. I asked about this problem about 2 months ago [https://bbs.archlinux.org/viewtopic.php?id=292728] here but it didn't solve the issue.
HDD: GNOME disk utility says there are 1080 bad sectors in the HDD.
Harmless (?) errors: I get errors like `ACPI Bios error` and `Malformed MSFT vendor error 0x02` while booting in and shutting down.

How I tried to solve:
1. The first thing that I did was reinstall (multiple times). I switched to the lts kernel. Still the issue persisted. I haven't still tried linux-mainline.
2. To rule out faulty RAM possibility, I ran Memtest86 from arch live usb. It passed and there was 0 errors.
3. To rule out faulty CPU possibility, I ran cpu stress test for 10 minutes. It worked perfectly fine and the temperature was average 85'C at all times.
4. To rule out faulty HDD possibility, I ran `smartctl` and `badblocks`. badblocks took more than 2.5 hours but concluded there was 0 errors in HDD. And here is the smartctl output.

┬─(metal111㉿Archpad1)──(~)──(01:51:40)
╰───>> sudo smartctl -x /dev/sda
smartctl 7.4 2023-08-01 r5530 [x86_64-linux-6.8.4-arch1-1] (local build)
Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Seagate Barracuda Pro Compute
Device Model:     ST1000LM049-2GH172
Serial Number:    WN93ZF6B
LU WWN Device Id: 5 000c50 0d58380bd
Firmware Version: LXM6
User Capacity:    1,000,204,886,016 bytes [1.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    7200 rpm
Form Factor:      2.5 inches
TRIM Command:     Available
Device is:        In smartctl database 7.3/5528
ATA Version is:   ACS-3 T13/2161-D revision 3b
SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Fri Apr 12 01:53:17 2024 +06
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
AAM feature is:   Unavailable
APM level is:     128 (minimum power consumption without standby)
Rd look-ahead is: Enabled
Write cache is:   Enabled
DSN feature is:   Unavailable
ATA Security is:  Disabled, frozen [SEC2]
Wt Cache Reorder: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x00)	Offline data collection activity
					was never started.
					Auto Offline Data Collection: Disabled.
Self-test execution status:      (   0)	The previous self-test routine completed
					without error or no self-test has ever 
					been run.
Total time to complete Offline 
data collection: 		(    0) seconds.
Offline data collection
capabilities: 			 (0x71) SMART execute Offline immediate.
					No Auto Offline data collection support.
					Suspend Offline collection upon new
					command.
					No Offline surface scan supported.
					Self-test supported.
					Conveyance Self-test supported.
					Selective Self-test supported.
SMART capabilities:            (0x0003)	Saves SMART data before entering
					power-saving mode.
					Supports SMART auto save timer.
Error logging capability:        (0x01)	Error logging supported.
					General Purpose Logging supported.
Short self-test routine 
recommended polling time: 	 (   1) minutes.
Extended self-test routine
recommended polling time: 	 ( 124) minutes.
Conveyance self-test routine
recommended polling time: 	 (   2) minutes.
SCT capabilities: 	       (0x3035)	SCT Status supported.
					SCT Feature Control supported.
					SCT Data Table supported.

SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAGS    VALUE WORST THRESH FAIL RAW_VALUE
  1 Raw_Read_Error_Rate     POSR--   068   057   034    -    72179907
  3 Spin_Up_Time            PO----   099   099   000    -    0
  4 Start_Stop_Count        -O--CK   037   037   020    -    65535
  5 Reallocated_Sector_Ct   PO--CK   098   098   036    -    1080
  7 Seek_Error_Rate         POSR--   085   060   045    -    298446650
  9 Power_On_Hours          -O--CK   086   086   000    -    12279 (107 254 0)
 10 Spin_Retry_Count        PO--C-   100   100   097    -    0
 12 Power_Cycle_Count       -O--CK   098   098   020    -    2474
184 End-to-End_Error        -O--CK   100   100   099    -    0
187 Reported_Uncorrect      -O--CK   100   100   000    -    0
188 Command_Timeout         -O--CK   100   099   000    -    3
189 High_Fly_Writes         -O-RCK   100   100   000    -    0
190 Airflow_Temperature_Cel -O---K   061   045   040    -    39 (Min/Max 34/41)
191 G-Sense_Error_Rate      -O--CK   100   100   000    -    14
192 Power-Off_Retract_Count -O--CK   100   100   000    -    77
193 Load_Cycle_Count        -O--CK   001   001   000    -    594185
194 Temperature_Celsius     -O---K   039   055   000    -    39 (0 15 0 0 0)
196 Reallocated_Event_Count -O--CK   098   098   000    -    1080
197 Current_Pending_Sector  -O--C-   100   100   000    -    0
198 Offline_Uncorrectable   ----C-   100   100   000    -    0
199 UDMA_CRC_Error_Count    -OSRCK   200   200   000    -    0
240 Head_Flying_Hours       POSR--   089   089   030    -    10494 (30 1 0)
254 Free_Fall_Sensor        -O--CK   100   100   000    -    0
                            ||||||_ K auto-keep
                            |||||__ C event count
                            ||||___ R error rate
                            |||____ S speed/performance
                            ||_____ O updated online
                            |______ P prefailure warning

General Purpose Log Directory Version 1
SMART           Log Directory Version 1 [multi-sector log support]
Address    Access  R/W   Size  Description
0x00       GPL,SL  R/O      1  Log Directory
0x01           SL  R/O      1  Summary SMART error log
0x02           SL  R/O      5  Comprehensive SMART error log
0x03       GPL     R/O      5  Ext. Comprehensive SMART error log
0x04       GPL,SL  R/O      8  Device Statistics log
0x06           SL  R/O      1  SMART self-test log
0x07       GPL     R/O      1  Extended self-test log
0x09           SL  R/W      1  Selective self-test log
0x10       GPL     R/O      1  NCQ Command Error log
0x11       GPL     R/O      1  SATA Phy Event Counters log
0x21       GPL     R/O      1  Write stream error log
0x22       GPL     R/O      1  Read stream error log
0x24       GPL     R/O    512  Current Device Internal Status Data log
0x30       GPL,SL  R/O      9  IDENTIFY DEVICE data log
0x80-0x9f  GPL,SL  R/W     16  Host vendor specific log
0xa1       GPL,SL  VS      24  Device vendor specific log
0xa2       GPL     VS    8160  Device vendor specific log
0xa8       GPL,SL  VS     136  Device vendor specific log
0xa9       GPL,SL  VS       1  Device vendor specific log
0xab       GPL     VS       1  Device vendor specific log
0xb0       GPL     VS    8920  Device vendor specific log
0xbe-0xbf  GPL     VS   65535  Device vendor specific log
0xc0       GPL,SL  VS       1  Device vendor specific log
0xc1       GPL,SL  VS      16  Device vendor specific log
0xc2       GPL,SL  VS     240  Device vendor specific log
0xc3       GPL,SL  VS       8  Device vendor specific log
0xc4       GPL,SL  VS      24  Device vendor specific log
0xc9       GPL,SL  VS       1  Device vendor specific log
0xca       GPL,SL  VS      16  Device vendor specific log
0xd3       GPL     VS    1920  Device vendor specific log
0xdf       GPL,SL  VS       1  Device vendor specific log
0xe0       GPL,SL  R/W      1  SCT Command/Status
0xe1       GPL,SL  R/W      1  SCT Data Transfer

SMART Extended Comprehensive Error Log Version: 1 (5 sectors)
No Errors Logged

SMART Extended Self-test Log Version: 1 (1 sectors)
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline       Completed without error       00%     12278         -
# 2  Short offline       Completed without error       00%     12276         -
# 3  Vendor (0x50)       Completed without error       00%      7744         -
# 4  Short offline       Completed without error       00%      7744         -
# 5  Vendor (0x50)       Completed without error       00%         1         -
# 6  Short offline       Completed without error       00%         1         -

SMART Selective self-test log data structure revision number 1
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.

SCT Status Version:                  3
SCT Version (vendor specific):       522 (0x020a)
Device State:                        Active (0)
Current Temperature:                    39 Celsius
Power Cycle Min/Max Temperature:     34/41 Celsius
Lifetime    Min/Max Temperature:     15/56 Celsius
Under/Over Temperature Limit Count:   0/5
Vendor specific:
00 00 00 00 00 00 00 00 00 00 02 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

SCT Temperature History Version:     2
Temperature Sampling Period:         1 minute
Temperature Logging Interval:        11 minutes
Min/Max recommended Temperature:      0/ 0 Celsius
Min/Max Temperature Limit:            0/ 0 Celsius
Temperature History Size (Index):    128 (28)

Index    Estimated Time   Temperature Celsius
  29    2024-04-11 02:33    38  *******************
  30    2024-04-11 02:44    39  ********************
  31    2024-04-11 02:55    39  ********************
  32    2024-04-11 03:06     ?  -
  33    2024-04-11 03:17    39  ********************
  34    2024-04-11 03:28    41  **********************
  35    2024-04-11 03:39    40  *********************
  36    2024-04-11 03:50    39  ********************
  37    2024-04-11 04:01    40  *********************
  38    2024-04-11 04:12    39  ********************
  39    2024-04-11 04:23    39  ********************
  40    2024-04-11 04:34    40  *********************
  41    2024-04-11 04:45    39  ********************
  42    2024-04-11 04:56    39  ********************
  43    2024-04-11 05:07    39  ********************
  44    2024-04-11 05:18    36  *****************
  45    2024-04-11 05:29    34  ***************
  46    2024-04-11 05:40    34  ***************
  47    2024-04-11 05:51    33  **************
  48    2024-04-11 06:02    33  **************
  49    2024-04-11 06:13    35  ****************
  50    2024-04-11 06:24    37  ******************
  51    2024-04-11 06:35    37  ******************
  52    2024-04-11 06:46    39  ********************
  53    2024-04-11 06:57    38  *******************
  54    2024-04-11 07:08    40  *********************
  55    2024-04-11 07:19    40  *********************
  56    2024-04-11 07:30    39  ********************
 ...    ..(  3 skipped).    ..  ********************
  60    2024-04-11 08:14    39  ********************
  61    2024-04-11 08:25    38  *******************
  62    2024-04-11 08:36    38  *******************
  63    2024-04-11 08:47    36  *****************
  64    2024-04-11 08:58    35  ****************
 ...    ..(  2 skipped).    ..  ****************
  67    2024-04-11 09:31    35  ****************
  68    2024-04-11 09:42    36  *****************
  69    2024-04-11 09:53    38  *******************
  70    2024-04-11 10:04    39  ********************
  71    2024-04-11 10:15    39  ********************
  72    2024-04-11 10:26    39  ********************
  73    2024-04-11 10:37    38  *******************
  74    2024-04-11 10:48    37  ******************
  75    2024-04-11 10:59    37  ******************
  76    2024-04-11 11:10     ?  -
  77    2024-04-11 11:21    27  ********
  78    2024-04-11 11:32    34  ***************
  79    2024-04-11 11:43    36  *****************
  80    2024-04-11 11:54    37  ******************
  81    2024-04-11 12:05    37  ******************
  82    2024-04-11 12:16    37  ******************
  83    2024-04-11 12:27    36  *****************
  84    2024-04-11 12:38    36  *****************
  85    2024-04-11 12:49     ?  -
  86    2024-04-11 13:00    30  ***********
  87    2024-04-11 13:11     ?  -
  88    2024-04-11 13:22    30  ***********
  89    2024-04-11 13:33    38  *******************
  90    2024-04-11 13:44    40  *********************
  91    2024-04-11 13:55    40  *********************
  92    2024-04-11 14:06    39  ********************
  93    2024-04-11 14:17    39  ********************
  94    2024-04-11 14:28    38  *******************
  95    2024-04-11 14:39    37  ******************
  96    2024-04-11 14:50    36  *****************
  97    2024-04-11 15:01    38  *******************
  98    2024-04-11 15:12     ?  -
  99    2024-04-11 15:23    37  ******************
 100    2024-04-11 15:34     ?  -
 101    2024-04-11 15:45    27  ********
 102    2024-04-11 15:56    37  ******************
 103    2024-04-11 16:07    39  ********************
 ...    ..(  2 skipped).    ..  ********************
 106    2024-04-11 16:40    39  ********************
 107    2024-04-11 16:51    41  **********************
 108    2024-04-11 17:02    42  ***********************
 109    2024-04-11 17:13    42  ***********************
 110    2024-04-11 17:24    38  *******************
 111    2024-04-11 17:35    38  *******************
 112    2024-04-11 17:46    39  ********************
 113    2024-04-11 17:57    38  *******************
 114    2024-04-11 18:08    38  *******************
 115    2024-04-11 18:19     ?  -
 116    2024-04-11 18:30    28  *********
 117    2024-04-11 18:41    37  ******************
 118    2024-04-11 18:52    39  ********************
 119    2024-04-11 19:03    39  ********************
 120    2024-04-11 19:14    39  ********************
 121    2024-04-11 19:25    40  *********************
 122    2024-04-11 19:36     ?  -
 123    2024-04-11 19:47    39  ********************
 124    2024-04-11 19:58    40  *********************
 125    2024-04-11 20:09    40  *********************
 126    2024-04-11 20:20    39  ********************
 127    2024-04-11 20:31    39  ********************
   0    2024-04-11 20:42    48  *****************************
 ...    ..(  2 skipped).    ..  *****************************
   3    2024-04-11 21:15    48  *****************************
   4    2024-04-11 21:26    49  ******************************
   5    2024-04-11 21:37    50  *******************************
   6    2024-04-11 21:48    52  *********************************
   7    2024-04-11 21:59    51  ********************************
   8    2024-04-11 22:10    50  *******************************
   9    2024-04-11 22:21    51  ********************************
  10    2024-04-11 22:32    51  ********************************
  11    2024-04-11 22:43    49  ******************************
  12    2024-04-11 22:54    46  ***************************
  13    2024-04-11 23:05    46  ***************************
  14    2024-04-11 23:16    43  ************************
  15    2024-04-11 23:27    40  *********************
 ...    ..(  2 skipped).    ..  *********************
  18    2024-04-12 00:00    40  *********************
  19    2024-04-12 00:11    38  *******************
  20    2024-04-12 00:22    36  *****************
  21    2024-04-12 00:33    35  ****************
  22    2024-04-12 00:44    35  ****************
  23    2024-04-12 00:55     ?  -
  24    2024-04-12 01:06    34  ***************
  25    2024-04-12 01:17    39  ********************
  26    2024-04-12 01:28    40  *********************
  27    2024-04-12 01:39    39  ********************
  28    2024-04-12 01:50    39  ********************

SCT Error Recovery Control command not supported

Device Statistics (GP Log 0x04)
Page  Offset Size        Value Flags Description
0x01  =====  =               =  ===  == General Statistics (rev 1) ==
0x01  0x008  4            2474  ---  Lifetime Power-On Resets
0x01  0x010  4           12279  ---  Power-on Hours
0x01  0x018  6     23653983260  ---  Logical Sectors Written
0x01  0x020  6       196877922  ---  Number of Write Commands
0x01  0x028  6     25504294761  ---  Logical Sectors Read
0x01  0x030  6       196368825  ---  Number of Read Commands
0x01  0x038  6               -  ---  Date and Time TimeStamp
0x03  =====  =               =  ===  == Rotating Media Statistics (rev 1) ==
0x03  0x008  4             827  ---  Spindle Motor Power-on Hours
0x03  0x010  4             777  ---  Head Flying Hours
0x03  0x018  4          594185  ---  Head Load Events
0x03  0x020  4            1080  ---  Number of Reallocated Logical Sectors
0x03  0x028  4              13  ---  Read Recovery Attempts
0x03  0x030  4               0  ---  Number of Mechanical Start Failures
0x03  0x038  4               0  ---  Number of Realloc. Candidate Logical Sectors
0x04  =====  =               =  ===  == General Errors Statistics (rev 1) ==
0x04  0x008  4             259  ---  Number of Reported Uncorrectable Errors
0x04  0x010  4               3  ---  Resets Between Cmd Acceptance and Completion
                                |||_ C monitored condition met
                                ||__ D supports DSN
                                |___ N normalized value

Pending Defects log (GP Log 0x0c) not supported

SATA Phy Event Counters (GP Log 0x11)
ID      Size     Value  Description
0x000a  2            3  Device-to-host register FISes sent due to a COMRESET
0x0001  2            0  Command failed due to ICRC error
0x0003  2            0  R_ERR response for device-to-host data FIS
0x0004  2            0  R_ERR response for host-to-device data FIS
0x0006  2            0  R_ERR response for device-to-host non-data FIS
0x0007  2            0  R_ERR response for host-to-device non-data FIS

5. I unsuccessfully tried disabling the integrated camera following the accepted answer from [https://askubuntu.com/questions/166809/ … -my-webcam] here just a few minutes ago. Here's lsusb in case it matters.

┬─(metal111㉿Archpad1)──(~)──(01:57:11)
╰───>> lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 30c9:0014 Luxvisions Innotech Limited Integrated Camera
Bus 001 Device 003: ID 27c6:55b4 Shenzhen Goodix Technology Co.,Ltd. Fingerprint Reader
Bus 001 Device 004: ID 8087:0029 Intel Corp. AX200 Bluetooth
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

┬─(metal111㉿Archpad1)──(~)──(01:59:40)
╰───>> lsusb -t
/:  Bus 001.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/12p, 480M
    |__ Port 007: Dev 002, If 0, Class=Video, Driver=uvcvideo, 480M
    |__ Port 007: Dev 002, If 1, Class=Video, Driver=uvcvideo, 480M
    |__ Port 009: Dev 003, If 0, Class=Vendor Specific Class, Driver=[none], 480M
    |__ Port 010: Dev 004, If 0, Class=Wireless, Driver=btusb, 12M
    |__ Port 010: Dev 004, If 1, Class=Wireless, Driver=btusb, 12M
/:  Bus 002.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/6p, 10000M

At this point I'm out of any ideas. Please help!
Here's my journalctl output.
https://0x0.st/X-qY.txt

Last edited by MetalInMyVeins (2024-04-30 10:28:51)

Offline

#2 2024-04-12 09:36:29

seth
Member
Registered: 2012-09-03
Posts: 52,419

Re: [SOLVED] Random kernel panics

The disk would scare tf out of me and I'd not trust it, but if we rule that out and along "more likely to occur if I leave the laptop idle for quite some time" and "ran cpu stress test for 10 minutes. It worked perfectly fine"
=> https://wiki.archlinux.org/title/Intel_ … Intel_CPUs

Offline

#3 2024-04-12 15:59:56

MetalInMyVeins
Member
Registered: 2024-02-03
Posts: 16

Re: [SOLVED] Random kernel panics

seth wrote:

The disk would scare tf out of me and I'd not trust it, but if we rule that out and along "more likely to occur if I leave the laptop idle for quite some time" and "ran cpu stress test for 10 minutes. It worked perfectly fine"
=> https://wiki.archlinux.org/title/Intel_ … Intel_CPUs

Thank you. Added `ahci.mobile_lpm_policy=1` kernel parameter and waiting for the next panic (if it occurs). I'd let you know.

Offline

#4 2024-04-30 10:28:00

MetalInMyVeins
Member
Registered: 2024-02-03
Posts: 16

Re: [SOLVED] Random kernel panics

Been 18 days. No kernel panic so far. So this can be marked as solved.

Offline

Board footer

Powered by FluxBB