Skip to contentSkip to conversation

[6.13] Power Supply regression on bootup

DISCUSSION Mario Limonciello 2 participants 3 messages Dec 9, 2024 – Dec 10, 2024 Regressions

lore
Share & tools
lore
#0 lore raw

Hi,

I have a laptop here that upgrading from 6.11 to 6.13-rc1/6.13-rc2 is causing a kernel panic at startup.

I caught it with a crash kernel and it starts with what looks like a race condition of some sort to me. I didn't see something obvious on the list about this so I figured I'd raise it now in case it jumps out to anyone before I have any progress on a bisect. I'll come back with more details as I have them.

Oops: general protection fault, probably for non-canonical address 0x8be733ac87a733a8: 0000 [#1] PREEMPT SMP NOPTI
CPU: 15 UID: 0 PID: 657 Comm: udevadm Not tainted 6.13.0-rc2 #48
RIP: 0010:string+0x48/0xe0
Code: 3b 45 89 d1 45 31 c0 49 01 f9 66 45 85 d2 75 1a eb 1f 48 39 f7 73 02 88 07 48 83 c7 01 41 83 c0 01 48 83 c2 01 4c 39 cf 74 07 <0f> b6 02 84 c0 75 e1 48 89 f2 44 89 c6 e9 a6 ee ff ff 48 c7 c0 83
RSP: 0018:ffffb98b01197880 EFLAGS: 00010286
RAX: 8be733ac87a723a8 RBX: ffffffff90c1d519 RCX: ffff0a00ffffff04
RDX: 8be733ac87a733a8 RSI: ffff8f3a899b7a1c RDI: ffff8f3a899b72c0
RBP: ffff8f3a899b72c0 R08: 0000000000000000 R09: ffff8f3b899b72bf
R10: ffffffffffffffff R11: 0000000000000000 R12: ffffb98b011978e8
R13: ffff8f3a899b7a1c R14: ffffffff90c1d519 R15: 000000000000076e
FS:  00007f47992288c0(0000) GS:ffff8f41be380000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055a7520cc6a8 CR3: 0000000104206000 CR4: 0000000000f50ef0
PKRU: 55555554
Call Trace:
 <TASK>
 ? die_addr+0x32/0x80
 ? exc_general_protection+0x1c8/0x3b0
 ? asm_exc_general_protection+0x22/0x30
 ? string+0x48/0xe0
 vsnprintf+0x267/0x590
 add_uevent_var+0x96/0x190
 ? netlink_broadcast_filtered+0x143/0x490
 power_supply_uevent+0x59/0x1e0
 dev_uevent+0x10b/0x2c0
 kobject_uevent_env+0x28c/0x800
 kobject_synth_uevent+0x34a/0x380
 uevent_store+0x1a/0x50
 kernfs_fop_write_iter+0x11d/0x1b0
 vfs_write+0x263/0x430
 ksys_write+0x62/0xe0
 do_syscall_64+0x80/0x170
 ? terminate_walk+0xee/0x100
 ? path_openat+0x4aa/0x12e0
 ? syscall_exit_to_user_mode+0xc/0x200
 ? do_syscall_64+0x8c/0x170
 ? refill_obj_stock+0x169/0x230
 ? kmem_cache_alloc_noprof+0x27b/0x390
 ? preempt_count_add+0x69/0xa0
 ? do_sys_openat2+0x7d/0xc0
 ? syscall_exit_to_user_mode+0xc/0x200
 ? do_syscall_64+0x8c/0x170
 ? syscall_exit_to_user_mode+0xc/0x200
 ? do_syscall_64+0x8c/0x170
 ? do_syscall_64+0x8c/0x170
 ? do_syscall_64+0x8c/0x170
 ? do_syscall_64+0x8c/0x170
 ? common_interrupt+0x71/0x100
 entry_SYSCALL_64_after_hwframe+0x76/0x7e
RIP: 0033:0x7f479911c574
Code: c7 00 16 00 00 00 b8 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 f3 0f 1e fa 80 3d d5 ea 0e 00 00 74 13 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 54 c3 0f 1f 00 55 48 89 e5 48 83 ec 20 48 89
RSP: 002b:00007fffcecab378 EFLAGS: 00000202 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 00007f479911c574
RDX: 0000000000000004 RSI: 00007fffcecab430 RDI: 0000000000000004
RBP: 00007fffcecab3a0 R08: 0000000000000000 R09: 00007fffcecab530
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000004
R13: 00007fffcecab430 R14: 000055760d84e070 R15: 0000000000000004
 </TASK>
Modules linked in: squashfs parport_pc ppdev lp parport fuse loop nfnetlink ip_tables cdc_ncm cdc_ether usbnet typec_displayport r8152 mii hid_multitouch nvme i2c_hid_acpi crc32_pclmul i2c_hid thunderbolt crc32c_intel nvme_core ucsi_acpi drm typec_ucsi typec video drm_panel_orientation_quirks
---[ end trace 0000000000000000 ]---

A full kernel log is at https://gist.github.com/superm1/82f1c09b1572fd066759e44cb8787031

Thanks,

#1 lore raw

Hello Mario,

Quoted 8 lines · Mario Limonciello

I have a laptop here that upgrading from 6.11 to 6.13-rc1/6.13-rc2 is causing a kernel panic at startup.

I caught it with a crash kernel and it starts with what looks like a race condition of some sort to me. I didn't see something obvious on the list about this so I figured I'd raise it now in case it jumps out to anyone before I have any progress on a bisect. I'll come back with more details as I have them.

My guess is, that you ran into this:

https://lore.kernel.org/linux-usb/[email protected]/

Greetings,

-- Sebastian

#2 lore raw
Quoted 12 lines · Sebastian Reichel

Hello Mario,

Quoted 8 lines · Mario Limonciello

I have a laptop here that upgrading from 6.11 to 6.13-rc1/6.13-rc2 is causing a kernel panic at startup.

I caught it with a crash kernel and it starts with what looks like a race condition of some sort to me. I didn't see something obvious on the list about this so I figured I'd raise it now in case it jumps out to anyone before I have any progress on a bisect. I'll come back with more details as I have them.

Quoted 7 lines

My guess is, that you ran into this:

https://lore.kernel.org/linux-usb/[email protected]/

Greetings,

-- Sebastian

Thanks, that looks spot on! Sorry for the noise.