[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAAhV-H5oex-q_Pq4ibhXzvoQTQORmi+O8waJQwEm6jyDJ=xF4A@mail.gmail.com>
Date: Sun, 3 Oct 2021 17:09:38 +0800
From: Huacai Chen <chenhuacai@...il.com>
To: Al Viro <viro@...iv.linux.org.uk>
Cc: Huacai Chen <chenhuacai@...ngson.cn>,
Arnd Bergmann <arnd@...db.de>,
Andy Lutomirski <luto@...nel.org>,
Thomas Gleixner <tglx@...utronix.de>,
Peter Zijlstra <peterz@...radead.org>,
Andrew Morton <akpm@...ux-foundation.org>,
David Airlie <airlied@...ux.ie>,
Jonathan Corbet <corbet@....net>,
Linus Torvalds <torvalds@...ux-foundation.org>,
linux-arch <linux-arch@...r.kernel.org>,
"open list:DOCUMENTATION" <linux-doc@...r.kernel.org>,
LKML <linux-kernel@...r.kernel.org>,
Xuefeng Li <lixuefeng@...ngson.cn>,
Yanteng Si <siyanteng@...ngson.cn>,
Jiaxun Yang <jiaxun.yang@...goat.com>,
Eric Biederman <ebiederm@...ssion.com>
Subject: Re: [PATCH V4 14/22] LoongArch: Add signal handling support
Hi, Al,
On Sun, Oct 3, 2021 at 10:36 AM Al Viro <viro@...iv.linux.org.uk> wrote:
>
> On Mon, Sep 27, 2021 at 02:42:51PM +0800, Huacai Chen wrote:
> > This patch adds signal handling support for LoongArch.
>
> No matter what you get in regs[4] after sys_rt_sigreturn(),
> you should *NOT* treat it as restartable. IOW, you need to set
> regs[0] to 0 in there (or in restore_sigcontext()). See e.g.
> 653d48b22166 for details of similar bug on arm.
Thanks, regs[0] should be cleared here.
Huacai
Powered by blists - more mailing lists