Re: [PREEMPT] Kernel panic - not syncing: stack-protector: Kernel stack is corrupted

From: Christian Zigotzky

Date: Tue Nov 24 2026 - 23:28:47 EST


On 06 November 2026 at 07:09 am, Shrikanth Hegde wrote:
Hi Christian.

On 11/6/26 10:37 AM, Christian Zigotzky wrote:
Hi all,

Ever since we enabled PREEMPT on our Nemo boards [1], we have been experiencing occasional problems with the kernel stack.

Kernel panic - not syncing: stack-protector: Kernel stack is corrupted in: srcu_gp_start_if_needed+0x534/0x538
Rebooting in 180 seconds..


We had one known issue which michal had brought up.
Do you have tracing enabled or running a bpf/bcc program?

This is the fix already in upstream. Do you have this patch?
https://lore.kernel.org/all/20260921072151.35531-1-sshegde@xxxxxxxxxxxxx/#t

We are using the following patches: [2] [3]

We have disabled PREEMPT with a patch [4] again, and since then our Nemo boards have been running perfectly once more.

As the problem with the kernel stack only occurs sporadically, bisection is impossible.

I hope you can fix the kernel stack issue.

Thanks,
Christian

[1] https://en.wikipedia.org/wiki/AmigaOne_X1000

[2] https://raw.githubusercontent.com/chzigotzky/kernels/refs/heads/main/patches/X1000/preempt_v1.patch

[3] https://raw.githubusercontent.com/chzigotzky/kernels/refs/heads/main/patches/X1000/kvm_powerpc.patch

[4] https://raw.githubusercontent.com/chzigotzky/kernels/refs/heads/main/patches/X1000/Kconfig.preempt.patch

[5] Kernel config: https://raw.githubusercontent.com/chzigotzky/kernels/31c064092e3aab0875c47d44838443c9515b2970/configs/x1000_defconfig

Hi,

We still have stack issues if we using preempt kernels. The patch above doesn't solve this issue. I created a patch for disabling preempt for Nemo boards.

diff -rupN a/arch/powerpc/platforms/pasemi/Kconfig b/arch/powerpc/platforms/pasemi/Kconfig
--- a/arch/powerpc/platforms/pasemi/Kconfig    2026-11-22 23:57:40.000000000 +0100
+++ b/arch/powerpc/platforms/pasemi/Kconfig    2026-11-24 13:17:52.878712432 +0100
@@ -19,6 +19,7 @@ config PPC_PASEMI_NEMO
     bool "Nemo motherboard Support"
     depends on PPC_PASEMI
     select PPC_I8259
+    select ARCH_NO_PREEMPT
     help
       This option enables support for the 'Nemo' motherboard
       used in A-Eons's Amigaone X1000. This consists of some

---

It is very difficult to figure out what the issue is because it occurs sporadically.

Cheers,
Christian