lkml.org 
[lkml]   [2022]   [Jan]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH V3 13/17] riscv: compat: signal: Add rt_frame implementation
On Thu, Jan 20, 2022 at 6:31 PM Arnd Bergmann <arnd@arndb.de> wrote:
>
> On Thu, Jan 20, 2022 at 8:39 AM <guoren@kernel.org> wrote:
> >
> > From: Guo Ren <guoren@linux.alibaba.com>
> >
> > Implement compat_setup_rt_frame for sigcontext save & restore. The
> > main process is the same with signal, but the rv32 pt_regs' size
> > is different from rv64's, so we needs convert them.
> >
> > Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
> > Signed-off-by: Guo Ren <guoren@kernel.org>
> > Cc: Arnd Bergmann <arnd@arndb.de>
>
> I hope someone else can properly review this part, it's not my area
> but it looks complex enough that it could bring subtle bugs.
Here are ltp signal test results:

sigaction01 PASS 0
sigaction02 PASS 0
sigaltstack01 PASS 0
sigaltstack02 PASS 0
sighold02 PASS 0
signal01 PASS 0
signal02 PASS 0
signal03 PASS 0
signal04 PASS 0
signal05 PASS 0
signal06 CONF 32
signalfd01 PASS 0
signalfd4_01 PASS 0
signalfd4_02 PASS 0
sigpending02 PASS 0
sigprocmask01 PASS 0
sigrelse01 PASS 0
sigsuspend01 PASS 0
sigtimedwait01 PASS 0
sigwait01 PASS 0
sigwaitinfo01 CONF 32


>
> Arnd



--
Best Regards
Guo Ren

ML: https://lore.kernel.org/linux-csky/

\
 
 \ /
  Last update: 2022-01-21 08:13    [W:0.041 / U:0.580 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site