* Re: [PREEMPT] Kernel panic - not syncing: stack-protector: Kernel stack is corrupted
[not found] <D0ECD6B8-7F15-48C8-87A4-DFE5F35A42D8@xenosoft.de>
@ 2026-11-25 8:46 ` Christian Zigotzky
2026-11-25 8:50 ` Shrikanth Hegde
0 siblings, 1 reply; 5+ messages in thread
From: Christian Zigotzky @ 2026-11-25 8:46 UTC (permalink / raw)
To: Shrikanth Hegde
Cc: Ritesh Harjani, Narayana Murty N, maddy, linuxppc-dev, mpe,
npiggin, christophe.leroy, linux-kernel, msuchanek, harshpb,
gautam, amachhiw, venkat88, R.T.Dickinson, mad skateman,
Damien Stewart, Christian Zigotzky
On 06 November 2026 at 07:09 am, Shrikanth Hegde wrote:
Hi Christian.
We had one known issue which michal had brought up.
Do you have tracing enabled or running a bpf/bcc program?
- - -
Yes, we have BPF and Tracing activated in the kernel config.
Nemo kernel config: https://github.com/chzigotzky/kernels/blob/main/configs/x1000_defconfig
Edit: I have deactivated tracing
Link: https://github.com/chzigotzky/kernels/releases/tag/v7.4.0-rc4-3
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PREEMPT] Kernel panic - not syncing: stack-protector: Kernel stack is corrupted
2026-11-25 8:46 ` [PREEMPT] Kernel panic - not syncing: stack-protector: Kernel stack is corrupted Christian Zigotzky
@ 2026-11-25 8:50 ` Shrikanth Hegde
0 siblings, 0 replies; 5+ messages in thread
From: Shrikanth Hegde @ 2026-11-25 8:50 UTC (permalink / raw)
To: Christian Zigotzky
Cc: Ritesh Harjani, Narayana Murty N, maddy, linuxppc-dev, mpe,
npiggin, christophe.leroy, linux-kernel, msuchanek, harshpb,
gautam, amachhiw, venkat88, R.T.Dickinson, mad skateman,
Damien Stewart, Christian Zigotzky
On 11/25/26 2:16 PM, Christian Zigotzky wrote:
> On 06 November 2026 at 07:09 am, Shrikanth Hegde wrote:
>
> Hi Christian.
>
> We had one known issue which michal had brought up.
> Do you have tracing enabled or running a bpf/bcc program?
>
> - - -
>
> Yes, we have BPF and Tracing activated in the kernel config.
>
> Nemo kernel config: https://github.com/chzigotzky/kernels/blob/main/configs/x1000_defconfig
>
> Edit: I have deactivated tracing
>
> Link: https://github.com/chzigotzky/kernels/releases/tag/v7.4.0-rc4-3
If possible, please share the logs. Lets see if it gives any clues. Is it while system is idle
or running some workload?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] KVM: PPC: BookE: Disable preemption before loading guest FP and Altivec
@ 2026-11-02 13:07 Shrikanth Hegde
2026-11-05 9:06 ` Christian Zigotzky
0 siblings, 1 reply; 5+ messages in thread
From: Shrikanth Hegde @ 2026-11-02 13:07 UTC (permalink / raw)
To: Christian Zigotzky, Ritesh Harjani (IBM),
Narayana Murty N, maddy, linuxppc-dev
Cc: mpe, npiggin, christophe.leroy, linux-kernel, msuchanek, harshpb,
gautam, amachhiw, venkat88, R.T.Dickinson, mad skateman,
Damien Stewart
Hi.
On 11/1/26 1:58 PM, Christian Zigotzky wrote:
> On 30/10/26 17:21, Ritesh Harjani (IBM) wrote:
>> Shrikanth Hegde <sshegde@linux.ibm.com> writes:
>>
>>> Hi Narayana.
>>>
>>> On 10/1/26 4:56 PM, Narayana Murty N wrote:
>>>> Hi Shrikanth,
>>>> Thanks for the fixes. I had one question on patch 1.
>>> See response below.
>>>
>>>>> diff --git a/arch/powerpc/kvm/booke.c b/arch/powerpc/kvm/booke.c
>>>>> index 13ad4cf5fa71..5b9118eefe1d 100644
>>>>> --- a/arch/powerpc/kvm/booke.c
>>>>> +++ b/arch/powerpc/kvm/booke.c
>>>>> @@ -1404,10 +1404,17 @@ int kvmppc_handle_exit(struct kvm_vcpu *vcpu, unsigned int exit_nr)
>>>>> if (s <= 0)
>>>>> r = (s << 2) | RESUME_HOST | (r & RESUME_FLAG_NV);
>>>>> else {
>>>>> - /* interrupts now hard-disabled */
>>>>> + /*
>>>>> + * kvmppc_fix_ee_before_entry() marks the software
>>>>> + * IRQ state enabled while interrupts are still
>>>>> + * hard-disabled. So disable preemption while loading
>>>>> + * guest FP and Altivec.
>>>>> + */
>>>>> kvmppc_fix_ee_before_entry();
>>>>> + preempt_disable();
>>>>> kvmppc_load_guest_fp(vcpu);
>>>>> kvmppc_load_guest_altivec(vcpu);
>>>>> + preempt_enable_no_resched();
>>>> Would it be simpler to move kvmppc_fix_ee_before_entry() after the
>>>> FP/Altivec loads instead?
>>>>
>>>> The normal kvmppc_vcpu_run() entry path already loads the guest
>>>> FP/Altivec state while interrupts are still disabled and calls
>>>> kvmppc_fix_ee_before_entry() immediately before entering the guest.
>>>>
>>>> So could this path follow the same ordering:
>>>>
>>>> kvmppc_load_guest_fp(vcpu);
>>>> kvmppc_load_guest_altivec(vcpu);
>>>> kvmppc_fix_ee_before_entry();
>>>>
>> Thanks Narayana, that actually make more sense to me.
>>
>>
>>>> That would avoid making the software IRQ state enabled before loading
>>>> the guest FP/Altivec state, and also avoid the additional
>>>> preempt_disable()/preempt_enable_no_resched() pair.
>>>>
>>>> Thanks,
>>>> Narayana Murty.
>>>>> }
>>>>> }
>>> I thought I had put that for discussion after ---, but looks like I forgot.
>>>
>>> I don't mind the above too. but I didn't have a way to test it.
>> Actually I agree with Narayan's reasoning here.
>>
>> Sorry for being so late to the game. As you know we have been occupied
>> with other things internally.
>>
>>> So kept it as is based on what Christian said works for him.
>>> If you have a way to test the patches, please let me know.
>>> We can try that too.
>> Let's ask Christian directly :)
>> @Christian - Once we have v2, would you kindly help us test that
>> please?
>>
>> We think the other approach which Narayana suggested might be a better
>> fix for this and it can avoid preempt_enable/disable() dance. However,
>> looks like we may not have the board where we can reproduce this.
>>
>>
>> -ritesh
>>
>
> Yes, I can help with testing.
>
Thanks Christian.
> - Christian
>
Hi Ritesh, Narayana,
I am afraid I won't be able to work on this at-least for couple of weeks from now.
If v2 can be worked upon by our kvm team meanwhile, it would be helpful. It is always
good to fix long standing bugs sooner.
Where applicable, feel free to carry the tags.
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH 1/2] KVM: PPC: BookE: Disable preemption before loading guest FP and Altivec
2026-11-02 13:07 [PATCH 1/2] KVM: PPC: BookE: Disable preemption before loading guest FP and Altivec 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
0 siblings, 1 reply; 5+ messages in thread
From: Christian Zigotzky @ 2026-11-05 9:06 UTC (permalink / raw)
To: Shrikanth Hegde
Cc: Ritesh Harjani, Narayana Murty N, maddy, linuxppc-dev, mpe,
npiggin, christophe.leroy, linux-kernel, msuchanek, harshpb,
gautam, amachhiw, venkat88, R.T.Dickinson, mad skateman,
Damien Stewart, Christian Zigotzky
On 02 November 2026 at 2:07 pm, Shrikanth Hegde <sshegde@linux.ibm.com> wrote:
Hi.
On 11/1/26 1:58 PM, Christian Zigotzky wrote:
Yes, I can help with testing.
- - -
Thanks Christian.
- - -
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 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PREEMPT] Kernel panic - not syncing: stack-protector: Kernel stack is corrupted
2026-11-05 9:06 ` Christian Zigotzky
@ 2026-11-06 5:07 ` Christian Zigotzky
2026-11-06 6:09 ` Shrikanth Hegde
0 siblings, 1 reply; 5+ messages in thread
From: Christian Zigotzky @ 2026-11-06 5:07 UTC (permalink / raw)
To: Shrikanth Hegde
Cc: Ritesh Harjani, Narayana Murty N, maddy, linuxppc-dev, mpe,
npiggin, christophe.leroy, linux-kernel, msuchanek, harshpb,
gautam, amachhiw, venkat88, R.T.Dickinson, mad skateman,
Damien Stewart
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 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
--
Sent with BrassMonkey 35.0.2 (https://github.com/chzigotzky/Web-Browsers-and-Suites-for-Linux-PPC/releases/tag/BrassMonkey_35.0.2)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PREEMPT] Kernel panic - not syncing: stack-protector: Kernel stack is corrupted
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
0 siblings, 1 reply; 5+ messages in thread
From: Shrikanth Hegde @ 2026-11-06 6:09 UTC (permalink / raw)
To: Christian Zigotzky
Cc: Ritesh Harjani, Narayana Murty N, maddy, linuxppc-dev, mpe,
npiggin, christophe.leroy, linux-kernel, msuchanek, harshpb,
gautam, amachhiw, venkat88, R.T.Dickinson, mad skateman,
Damien Stewart
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
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PREEMPT] Kernel panic - not syncing: stack-protector: Kernel stack is corrupted
2026-11-06 6:09 ` Shrikanth Hegde
@ 2026-11-25 4:28 ` Christian Zigotzky
0 siblings, 0 replies; 5+ messages in thread
From: Christian Zigotzky @ 2026-11-25 4:28 UTC (permalink / raw)
To: Shrikanth Hegde
Cc: Ritesh Harjani, Narayana Murty N, maddy, linuxppc-dev, mpe,
npiggin, christophe.leroy, linux-kernel, msuchanek, harshpb,
gautam, amachhiw, venkat88, R.T.Dickinson, mad skateman,
Damien Stewart, Christian Zigotzky
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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-11-25 8:50 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <D0ECD6B8-7F15-48C8-87A4-DFE5F35A42D8@xenosoft.de>
2026-11-25 8:46 ` [PREEMPT] Kernel panic - not syncing: stack-protector: Kernel stack is corrupted Christian Zigotzky
2026-11-25 8:50 ` Shrikanth Hegde
2026-11-02 13:07 [PATCH 1/2] KVM: PPC: BookE: Disable preemption before loading guest FP and Altivec 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 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®