From: Madhavan Srinivasan <maddy@linux.ibm.com>
To: linuxppc-dev@lists.ozlabs.org, Michal Suchanek <msuchanek@suse.de>
Cc: Michael Ellerman <mpe@ellerman.id.au>,
Nicholas Piggin <npiggin@gmail.com>,
"Christophe Leroy (CS GROUP)" <chleroy@kernel.org>,
"Ritesh Harjani (IBM)" <ritesh.list@gmail.com>,
Shrikanth Hegde <sshegde@linux.ibm.com>,
Kees Cook <kees@kernel.org>,
Andy Lutomirski <luto@amacapital.net>,
Will Drewry <wad@chromium.org>,
"Mukesh Kumar Chaurasiya (IBM)" <mkchauras@gmail.com>,
Alexander Gordeev <agordeev@linux.ibm.com>,
Mukesh Kumar Chaurasiya <mchauras@linux.ibm.com>,
"Bernhard M. Wiedemann" <bwiedemann@suse.de>,
linux-kernel@vger.kernel.org, stable@vger.kernel.org
Subject: Re: [PATCH v2 1/2] powerpc: Restore all registers after a traced syscall again
Date: Mon, 30 Nov 2026 17:56:36 +0530 [thread overview]
Message-ID: <179604151701.510846.3596282611295794561.b4-ty@linux.ibm.com> (raw)
In-Reply-To: <961c058f3f3e03045552186c083a68a0fde3f43f.1791975972.git.msuchanek@suse.de>
On Wed, 14 Oct 2026 13:06:51 +0200, Michal Suchanek wrote:
> syscall_exit_prepare() asks the exit assembly to reload all GPRs, CTR
> and XER from pt_regs only if the thread flags contain any of the flags
> in _TIF_SYSCALL_DOTRACE. With the new entry code based GENERIC_ENTRY the
> flags are no longer set.
>
> This breaks tracers that modify a stopped syscall, for example ones that
> re-execute the syscall instruction by moving the NIP back by 4 at the
> syscall-exit stop with the syscall number put back into r0: the sc then
> runs with r0 = 0, which is __NR_restart_syscall. dettrace fails like
> this with "No filter rule for system call: restart_syscall". A tracer
> that writes r4 at the syscall-exit stop of an sc sees the tracee
> continue with r4 = 0 instead; with a 7.1 kernel both work.
>
> [...]
Applied to powerpc/next.
[1/2] powerpc: Restore all registers after a traced syscall again
https://git.kernel.org/powerpc/c/ddb295763e25062636b81caf4dcad61f924e5618
[2/2] powerpc: Remove unused thread info flags
https://git.kernel.org/powerpc/c/378d5f96ab4d0a9ffc1a1db1dd5727bf46b55f70
cheers
prev parent reply other threads:[~2026-11-30 12:27 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-14 11:06 [PATCH v2 1/2] powerpc: Restore all registers after a traced syscall again Michal Suchanek
2026-10-14 11:06 ` [PATCH v2 2/2] powerpc: Remove unused thread info flags Michal Suchanek
2026-10-15 6:32 ` [PATCH v2 1/2] powerpc: Restore all registers after a traced syscall again Mukesh Kumar Chaurasiya
2026-11-02 10:53 ` samir
2026-11-23 13:51 ` Shrikanth Hegde
2026-11-30 12:26 ` 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=179604151701.510846.3596282611295794561.b4-ty@linux.ibm.com \
--to=maddy@linux.ibm.com \
--cc=agordeev@linux.ibm.com \
--cc=bwiedemann@suse.de \
--cc=chleroy@kernel.org \
--cc=kees@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=luto@amacapital.net \
--cc=mchauras@linux.ibm.com \
--cc=mkchauras@gmail.com \
--cc=mpe@ellerman.id.au \
--cc=msuchanek@suse.de \
--cc=npiggin@gmail.com \
--cc=ritesh.list@gmail.com \
--cc=sshegde@linux.ibm.com \
--cc=stable@vger.kernel.org \
--cc=wad@chromium.org \
/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