mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Christian Zigotzky <chzigotzky@xenosoft.de>
To: Shrikanth Hegde <sshegde@linux.ibm.com>
Cc: Ritesh Harjani <ritesh.list@gmail.com>,
	Narayana Murty N <nnmlinux@linux.ibm.com>,
	maddy@linux.ibm.com, linuxppc-dev@lists.ozlabs.org,
	mpe@ellerman.id.au, npiggin@gmail.com,
	christophe.leroy@csgroup.eu, linux-kernel@vger.kernel.org,
	msuchanek@suse.de, harshpb@linux.ibm.com, gautam@linux.ibm.com,
	amachhiw@linux.ibm.com, venkat88@linux.ibm.com,
	"R.T.Dickinson" <rtd2@xtra.co.nz>,
	mad skateman <madskateman@gmail.com>,
	Damien Stewart <hypexed@yahoo.com.au>,
	Christian Zigotzky <info@xenosoft.de>
Subject: Re: [PREEMPT] Kernel panic - not syncing: stack-protector: Kernel stack is corrupted
Date: Wed, 25 Nov 2026 05:28:16 +0100	[thread overview]
Message-ID: <c7636032-b541-4ae9-b3b6-e3bf6fcec143@xenosoft.de> (raw)
In-Reply-To: <fb22e9be-3d8d-4849-b191-d004f9b6c457@linux.ibm.com>

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@linux.ibm.com/#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

  reply	other threads:[~2026-11-25  4:28 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-28 11:04 [PATCH 0/2] KVM: PPC: BookE: Fix boot hang on preemptible kernels Shrikanth Hegde
2026-09-28 11:04 ` [PATCH 1/2] KVM: PPC: BookE: Disable preemption before loading guest FP and Altivec Shrikanth Hegde
2026-10-01 11:26   ` Narayana Murty N
2026-10-01 11:53     ` Shrikanth Hegde
2026-10-30 16:21       ` Ritesh Harjani
2026-11-01  8:28         ` Christian Zigotzky
2026-11-02 13:07           ` Shrikanth Hegde
2026-11-05  9:06             ` Christian Zigotzky
2026-11-06  5:07               ` [PREEMPT] Kernel panic - not syncing: stack-protector: Kernel stack is corrupted Christian Zigotzky
2026-11-06  6:09                 ` Shrikanth Hegde
2026-11-25  4:28                   ` Christian Zigotzky [this message]
2026-11-01 11:35         ` [PATCH] powerpc/pasemi: Defer Nemo IRQ initialization Christian Zigotzky
2026-09-28 11:04 ` [PATCH 2/2] KVM: PPC: Replay pending interrupts before entering the guest Shrikanth Hegde
2026-10-01 11:28   ` Narayana Murty N
2026-10-01 11:57     ` Shrikanth Hegde
2026-10-06 15:37   ` Gautam Menghani
2026-10-30 16:30   ` Ritesh Harjani
2026-11-04 15:46     ` Mukesh Kumar Chaurasiya
2026-09-29 15:51 ` [PATCH 0/2] KVM: PPC: BookE: Fix boot hang on preemptible kernels Christian Zigotzky
2026-10-22 16:42   ` Christian Zigotzky
2026-11-07 15:10 ` Shrikanth Hegde

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c7636032-b541-4ae9-b3b6-e3bf6fcec143@xenosoft.de \
    --to=chzigotzky@xenosoft.de \
    --cc=amachhiw@linux.ibm.com \
    --cc=christophe.leroy@csgroup.eu \
    --cc=gautam@linux.ibm.com \
    --cc=harshpb@linux.ibm.com \
    --cc=hypexed@yahoo.com.au \
    --cc=info@xenosoft.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=maddy@linux.ibm.com \
    --cc=madskateman@gmail.com \
    --cc=mpe@ellerman.id.au \
    --cc=msuchanek@suse.de \
    --cc=nnmlinux@linux.ibm.com \
    --cc=npiggin@gmail.com \
    --cc=ritesh.list@gmail.com \
    --cc=rtd2@xtra.co.nz \
    --cc=sshegde@linux.ibm.com \
    --cc=venkat88@linux.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®