From: Madhavan Srinivasan <maddy@linux.ibm.com>
To: mpe@ellerman.id.au, npiggin@gmail.com, chleroy@kernel.org,
mchauras@linux.ibm.com, msuchanek@suse.de, sshegde@linux.ibm.com,
david@kernel.org, thuth@redhat.com, agordeev@linux.ibm.com,
mark.rutland@arm.com, ruanjinjie@huawei.com,
ryan.roberts@arm.com, linuxppc-dev@lists.ozlabs.org,
linux-kernel@vger.kernel.org,
"Mukesh Kumar Chaurasiya (IBM)" <mkchauras@gmail.com>
Subject: Re: [PATCH V6] powerpc/syscall: Fix syscall skip handling for seccomp and ptrace
Date: Thu, 6 Aug 2026 09:46:22 +0530 [thread overview]
Message-ID: <178598971874.942627.7409142497641761431.b4-ty@linux.ibm.com> (raw)
In-Reply-To: <20260731081521.1852133-1-mkchauras@gmail.com>
On Fri, 31 Jul 2026 13:45:21 +0530, Mukesh Kumar Chaurasiya (IBM) wrote:
> After enabling GENERIC_ENTRY on PowerPC, syscall_enter_from_user_mode()
> returns -1 as a sentinel to signal that seccomp or ptrace has intercepted
> the syscall and already set a return value via syscall_set_return_value().
> system_call_exception() was not handling this sentinel, and since -1UL
> is >= NR_syscalls, the code fell into the out-of-range path and returned
> -ENOSYS, overwriting the errno already placed in regs->gpr[3].
>
> [...]
Applied to powerpc/next.
[1/1] powerpc/syscall: Fix syscall skip handling for seccomp and ptrace
https://git.kernel.org/powerpc/c/69cb2be898be6d5826cacd1a628f6945a24480b6
cheers
prev parent reply other threads:[~2026-08-06 4:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-31 8:15 Mukesh Kumar Chaurasiya (IBM)
2026-08-06 4:16 ` 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=178598971874.942627.7409142497641761431.b4-ty@linux.ibm.com \
--to=maddy@linux.ibm.com \
--cc=agordeev@linux.ibm.com \
--cc=chleroy@kernel.org \
--cc=david@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=mark.rutland@arm.com \
--cc=mchauras@linux.ibm.com \
--cc=mkchauras@gmail.com \
--cc=mpe@ellerman.id.au \
--cc=msuchanek@suse.de \
--cc=npiggin@gmail.com \
--cc=ruanjinjie@huawei.com \
--cc=ryan.roberts@arm.com \
--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®