AdityaGarg8 / pve-edge-kernel-t2

Newer Linux kernels for Proxmox VE 8 - For T2 Macs
35 stars 2 forks source link

Kernel panic - corrupted stack end detected inside scheduler on custom kernel #8

Open barzag opened 3 months ago

barzag commented 3 months ago

Hello,

I’m encountering a kernel panic on my Proxmox setup using a custom kernel.

The kernel is unstable because this has happened several times. Do you have any idea how to resolve it?

Below are the details:

System Information:

•   Hardware: Apple Inc. Macmini8,1/Mac-7BA5B2DFE22DDD0C, BIOS 1916.40.8.0.0
•   Proxmox Version: 6.8.8-1-pve
•   Kernel Version: 6.8.8-1-pve-t2 #1

Error Message:

Kernel panic - not syncing: corrupted stack end detected inside scheduler

Call Trace:

[471961.989086] Kernel panic - not syncing: corrupted stack end detected inside scheduler [471961.989937] CPU: 5 PID: 2396244 Comm: vgs Tainted: G C O 6.8.0-1-pve-t2 #1 [471961.990359] Hardware name: Apple Inc. Macmini8,1/Mac-7BA5B2DFE22DDD0C, BIOS 1916.40.8.0.0 09/29/2022 [471961.990963] Call Trace: [471961.991354] ? __schedule+0x15d/0x15e0 [471961.991732] ? schedule+0x33/0x110 [471961.992092] ? do_user_mode+0x22d/0x260 ... [471961.992467] Code: 48 8b 05 b2 5b d3 c6 2e 0f 1f 40 00 48 89 fb 48 89 5c 24 10 48 89 6c 24 18 48 89 74 24 20 48 89 7c 24 28 4c 8b 6d 08 <4c> 8b 45 20 48 8b 55 28 48 8b 75 30 48 8b 7d 38 41 0f b7 46 60 66 [471961.993230] RSP: 002b:00007ffee780bf88 EFLAGS: 00000246 [471961.993739] RAX: 0000000000000000 RBX: 00007ffee780c2e0 RCX: 0000000000000000 [471961.994270] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 [471961.994784] RBP: 00007ffee780bfc0 R08: 0000000000000000 R09: 00007ffee780bf80 [471961.995306] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [471961.995822] R13: 00007ffee780c0c0 R14: 00007ffee780c0c0 R15: 0000000000000000

image

barzag commented 3 months ago

The problem might be related to another issue. Is it possible to get the update for the Linux kernel 6.8.8-2-pve-t2, please?

AdityaGarg8 commented 1 month ago

Hi @barzag is the issue still there?

barzag commented 1 month ago

Hello @AdityaGarg8,

The issue seems to originate from a UGREEN hub that isn't discharging correctly when the Mac Mini restarts. I have a UGREEN M.2 NVMe SSD enclosure connected to this hub, and it appears that the kernel panic is caused by this setup rather than the kernel itself. All of my USB-C ports are in use, and according to some forums, using all ports can cause issues due to under-calibrated power supply... Quite a surprising problem. I appreciate your feedback.

AdityaGarg8 commented 1 month ago

Hello @AdityaGarg8,

The issue seems to originate from a UGREEN hub that isn't discharging correctly when the Mac Mini restarts. I have a UGREEN M.2 NVMe SSD enclosure connected to this hub, and it appears that the kernel panic is caused by this setup rather than the kernel itself. All of my USB-C ports are in use, and according to some forums, using all ports can cause issues due to under-calibrated power supply... Quite a surprising problem. I appreciate your feedback.

Oh I see @barzag , thanks for the clarification.