mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Madhavan Srinivasan <maddy@linux.ibm.com>
To: mpe@ellerman.id.au, npiggin@gmail.com, chleroy@kernel.org,
	sshegde@linux.ibm.com, ruanjinjie@huawei.com,
	linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org,
	"Mukesh Kumar Chaurasiya (IBM)" <mkchauras@gmail.com>
Cc: Sayali Patil <sayalip@linux.ibm.com>
Subject: Re: [PATCH V2] powerpc: Restore KUAP registers on syscall restart exit
Date: Sat, 20 Jun 2026 03:29:32 +0530	[thread overview]
Message-ID: <178190618810.653308.8397573315437375026.b4-ty@linux.ibm.com> (raw)
In-Reply-To: <20260615162617.2861795-1-mkchauras@gmail.com>

On Mon, 15 Jun 2026 21:56:17 +0530, Mukesh Kumar Chaurasiya (IBM) wrote:
> During a syscall restart, block KUAP so that pending interrupts can be
> replayed. The original KUAP state is not restored before returning to
> userspace, causing subsequent userspace accesses to fault and eventually
> trigger bad_access_pkey(), crashing the kernel.
> 
> The original KUAP register values are already saved in
> arch_enter_from_user_mode(). Restore them on the syscall restart exit
> path before returning to userspace.
> 
> [...]

Applied to powerpc/next.

[1/1] powerpc: Restore KUAP registers on syscall restart exit
      https://git.kernel.org/powerpc/c/4e1187e12de40b5301977b2476d21b569358dafb

cheers

      parent reply	other threads:[~2026-06-19 22:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-15 16:26 Mukesh Kumar Chaurasiya (IBM)
2026-06-16  6:44 ` Sayali Patil
2026-06-19 21:59 ` Madhavan Srinivasan [this message]

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=178190618810.653308.8397573315437375026.b4-ty@linux.ibm.com \
    --to=maddy@linux.ibm.com \
    --cc=chleroy@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=mkchauras@gmail.com \
    --cc=mpe@ellerman.id.au \
    --cc=npiggin@gmail.com \
    --cc=ruanjinjie@huawei.com \
    --cc=sayalip@linux.ibm.com \
    --cc=sshegde@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®