lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Fri, 9 Sep 2022 16:02:04 -0400
From:   Mathieu Desnoyers <mathieu.desnoyers@...icios.com>
To:     Guo Ren <guoren@...nel.org>, Peter Zijlstra <peterz@...radead.org>,
        paulmck <paulmck@...nel.org>, Boqun Feng <boqun.feng@...il.com>
Cc:     linux-kernel <linux-kernel@...r.kernel.org>,
        Alexander Viro <viro@...iv.linux.org.uk>,
        Linus Torvalds <torvalds@...ux-foundation.org>,
        "linux-csky@...r.kernel.org" <linux-csky@...r.kernel.org>
Subject: Re: [RFC PATCH 2/2] Revert "csky: Add support for restartable
 sequence"

On 2021-07-26 12:28, Mathieu Desnoyers wrote:
> ----- On Jul 26, 2021, at 12:10 PM, Guo Ren guoren@...nel.org wrote:
> 
>> Hi Mathieu,
>>
>> Sorry for forgetting to CC you in the last patch, and that patch has
>> been merged into master which has the problem of syscall restart.
>>
>> I still want to keep rseq feature for csky, and implement the
>> RSEQ_SKIP_FASTPATH for self-test, it that okay?
> 
> No, the RSEQ_SKIP_FASTPATH is the one special-case of test build which
> skips building rseq critical sections entirely. This leaves out any
> relevant testing of rseq per-se. With what we have in the upstream
> selftests, I expect this test configuration to abort at runtime because
> no slow-path fallbacks are available when the fastpath is disabled.
> 
> The asm glue to test rseq user-space really needs to be implemented
> for any useful testing to be done here.
> 
> Unless that asm glue is contributed, none of the rseq logic is actually
> tested on that architecture.
> 
> Considering the extremely-hard-to-debug nature of races with a broken
> rseq kernel implementation, proper testing coverage is paramount, so I
> still recommend the revert unless the selftests user-space asm glue is
> contributed for C-Sky.

Hi Guo,

A friendly ping after 1.5 year about the fact that the selftests code is
still missing for the csky architecture. So there is no way to validate
that the kernel pieces that were merged actually work on that architecture.

What is the timeline for contribution of the missing bits needed to enable
those tests ?

Here are the required header files:

tools/testing/selftests/rseq/rseq-csky.h
tools/testing/selftests/rseq/rseq-csky-thread-pointer.h (only if __builtin_thread_pointer is not implemented by gcc)

I'm open to suggestions from other rseq co-maintainers on how to best address
this situation.

Thanks,

Mathieu

-- 
Mathieu Desnoyers
EfficiOS Inc.
https://www.efficios.com

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ