mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Madhavan Srinivasan <maddy@linux.ibm.com>
To: Thorsten Leemhuis <regressions@leemhuis.info>,
	mpe@ellerman.id.au, npiggin@gmail.com
Cc: thuth@redhat.com,
	"Mukesh Kumar Chaurasiya (IBM)" <mkchauras@gmail.com>,
	mchauras@linux.ibm.com, linuxppc-dev@lists.ozlabs.org,
	ruanjinjie@huawei.com, linux-kernel@vger.kernel.org,
	Andreas Schwab <schwab@linux-m68k.org>,
	John Ogness <john.ogness@linutronix.de>,
	chleroy@kernel.org, sshegde@linux.ibm.com,
	Linux kernel regressions list <regressions@lists.linux.dev>
Subject: Re: [PATCH] powerpc/970: fix nap return address corruption on async interrupt exit
Date: Wed, 29 Jul 2026 15:46:45 +0530	[thread overview]
Message-ID: <8dda7a5a-96ed-4a80-a6db-c01434ae897c@linux.ibm.com> (raw)
In-Reply-To: <67fd0bdf-237e-41d0-aa02-62ca2736942a@leemhuis.info>


On 7/29/26 2:27 PM, Thorsten Leemhuis wrote:
> On 7/23/26 13:52, John Ogness wrote:
>> On 2026-07-16, John Ogness <john.ogness@linutronix.de> wrote:
>>> On 2026-07-07, "Mukesh Kumar Chaurasiya (IBM)" <mkchauras@gmail.com> wrote:
>>>> On PowerMac G5 (PPC970, CONFIG_PPC_970_NAP) the system panics shortly
>>>> after boot with symptoms including instruction fetch faults, kernel data
>>>> access faults, and stack corruption, predominantly on SMP and always
>>>> somewhere inside softirq processing.
>>>> [...]
>>>> Fix this by calling nap_adjust_return() inside DEFINE_INTERRUPT_HANDLER_ASYNC
>>>> immediately before irq_exit_rcu(), ensuring _TLF_NAPPING is cleared and
>>>> regs->NIP is adjusted before any code that can re-enable interrupts or
>>>> invoke softirqs runs.  Move the explanatory comment into
>>>> nap_adjust_return() itself and remove it from arch_interrupt_async_exit_prepare().
>>>>
>>>> Fixes: bee25f97ad24 ("powerpc: Enable GENERIC_ENTRY feature")
>>>> Closes: https://lore.kernel.org/all/87wlvazrdy.fsf@igel.home/
>>>> Reported-by: Andreas Schwab <schwab@linux-m68k.org>
>>>> Signed-off-by: Mukesh Kumar Chaurasiya (IBM) <mkchauras@gmail.com>
>>> Tested-by: John Ogness <john.ogness@linutronix.de>
>> Is there a reason this is not being queued for 7.2? Without this fix,
>> PPC970 machines cannot boot 7.2.
> Wondering the same. Quick reminder: Linus afaik wants all regressions
> ideally be fixed by -rc6. So it would be good to get this mainlined
> within the next few days -- unless of course there is a reason why this
> fix is a bad idea. Is there?
I have added this to my fixes-test and will pull this as part of 
upcoming fixes PR
Maddy
>
> Ciao, Thorsten

  reply	other threads:[~2026-07-29 10:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-07 17:24 Mukesh Kumar Chaurasiya (IBM)
2026-07-08  4:27 ` Shrikanth Hegde
2026-07-08  5:34   ` Mukesh Kumar Chaurasiya
2026-07-16 16:34 ` John Ogness
2026-07-23 11:52   ` John Ogness
2026-07-29  8:57     ` Thorsten Leemhuis
2026-07-29 10:16       ` Madhavan Srinivasan [this message]
2026-07-30  5:41 ` Madhavan Srinivasan

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=8dda7a5a-96ed-4a80-a6db-c01434ae897c@linux.ibm.com \
    --to=maddy@linux.ibm.com \
    --cc=chleroy@kernel.org \
    --cc=john.ogness@linutronix.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=mchauras@linux.ibm.com \
    --cc=mkchauras@gmail.com \
    --cc=mpe@ellerman.id.au \
    --cc=npiggin@gmail.com \
    --cc=regressions@leemhuis.info \
    --cc=regressions@lists.linux.dev \
    --cc=ruanjinjie@huawei.com \
    --cc=schwab@linux-m68k.org \
    --cc=sshegde@linux.ibm.com \
    --cc=thuth@redhat.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®