Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I get random numbers on L4RE #1

Closed
josephlr opened this issue Jul 7, 2019 · 5 comments
Closed

How do I get random numbers on L4RE #1

josephlr opened this issue Jul 7, 2019 · 5 comments

Comments

@josephlr
Copy link

josephlr commented Jul 7, 2019

I'm working on the getrandom Rust crate, and we're looking to add an implementation for the new x86_64-unknown-l4re-uclibc target.

Is there an easy way (like Linux's getrandom(2)) to get entropy on L4Re?

@lonvia
Copy link
Contributor

lonvia commented Jul 9, 2019

Not really, I'm afraid. The L4Re kernel does not provide randomness by itself. Instead a user-land service would need to provide randomness using appropriate hardware for the system. There is currently no such service implemented as part of the L4Re core services, so you'd have to write your own.

@josephlr
Copy link
Author

josephlr commented Jul 9, 2019

Thanks for the response @lonvia

We're just going to fallback to using RDRAND for crypto RNG then, as it looks like l4re is only on x86_64 at the moment.

@icedieler
Copy link
Contributor

... l4re is only on x86_64 at the moment.

That is a false impression. L4Re supports x86, ARM and MIPS all in 32 and 64 bit.

@josephlr
Copy link
Author

josephlr commented Jul 9, 2019

That is a false impression. L4Re supports x86, ARM and MIPS all in 32 and 64 bit.

Sorry, I meant to say that the only supported Rust targets are for x86_64.

@jermar
Copy link
Contributor

jermar commented Nov 26, 2019

I guess this can be closed now...

@jermar jermar closed this as completed Nov 26, 2019
kk-infra pushed a commit that referenced this issue Feb 29, 2024
This commit collects the following upstream updates to uclibc-ng in
features that are not currently used by L4Re, such as the ARC and nds32
architectures or nptl:

add init_module/delete_module syscall wrappers
use multiline comment for better copyright parsing
nptl: remove pthread_attr_init/pthread_create weak aliases
nptl_db: fix gcc compiler warnings

--

fts: fix gcc compiler warning

Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>

--

ARC: ldso: don't use _DYNAMIC@gotpc construct #1
ARC: ldso: don't use _DYNAMIC@gotpc construct #2

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>

--

nds32: add NPTL/TLS, *context function, libm changes and code cleanup

Signed-off-by: Vincent Ren-Wei Chen <vincentc@andestech.com>

--

remove PID caching

Reviewed-by: Max Filippov <jcmvbkbc@gmail.com>
Reviewed-by: Vineet Gupta <Vineet.Gupta1@synopsys.com>
Acked-by: Matthew Fortune <Matthew.Fortune@imgtec.com>
Acked-by: Alexey Brodkin <Alexey.Brodkin@synopsys.com>

--

extract six-argument syscalls from the rest
use safe, even if possibly a few cycles slower, six-argument syscall implementation

Signed-off-by: mirabilos <m@mirbsd.org>
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>

Change-Id: I3cabbe3768071c547d1b19eb9aa9360a72712aa3
scholzp pushed a commit to scholzp/l4re-core that referenced this issue Jun 5, 2024
This commit collects the following upstream updates to uclibc-ng in
features that are not currently used by L4Re, such as the ARC and nds32
architectures or nptl:

add init_module/delete_module syscall wrappers
use multiline comment for better copyright parsing
nptl: remove pthread_attr_init/pthread_create weak aliases
nptl_db: fix gcc compiler warnings

--

fts: fix gcc compiler warning

Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>

--

ARC: ldso: don't use _DYNAMIC@gotpc construct kernkonzept#1
ARC: ldso: don't use _DYNAMIC@gotpc construct kernkonzept#2

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>

--

nds32: add NPTL/TLS, *context function, libm changes and code cleanup

Signed-off-by: Vincent Ren-Wei Chen <vincentc@andestech.com>

--

remove PID caching

Reviewed-by: Max Filippov <jcmvbkbc@gmail.com>
Reviewed-by: Vineet Gupta <Vineet.Gupta1@synopsys.com>
Acked-by: Matthew Fortune <Matthew.Fortune@imgtec.com>
Acked-by: Alexey Brodkin <Alexey.Brodkin@synopsys.com>

--

extract six-argument syscalls from the rest
use safe, even if possibly a few cycles slower, six-argument syscall implementation

Signed-off-by: mirabilos <m@mirbsd.org>
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>

Change-Id: I3cabbe3768071c547d1b19eb9aa9360a72712aa3
scholzp pushed a commit to scholzp/l4re-core that referenced this issue Jun 5, 2024
This commit collects the following upstream updates to uclibc-ng in
features that are not currently used by L4Re, such as the ARC and nds32
architectures or nptl:

add init_module/delete_module syscall wrappers
use multiline comment for better copyright parsing
nptl: remove pthread_attr_init/pthread_create weak aliases
nptl_db: fix gcc compiler warnings

--

fts: fix gcc compiler warning

Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>

--

ARC: ldso: don't use _DYNAMIC@gotpc construct kernkonzept#1
ARC: ldso: don't use _DYNAMIC@gotpc construct kernkonzept#2

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>

--

nds32: add NPTL/TLS, *context function, libm changes and code cleanup

Signed-off-by: Vincent Ren-Wei Chen <vincentc@andestech.com>

--

remove PID caching

Reviewed-by: Max Filippov <jcmvbkbc@gmail.com>
Reviewed-by: Vineet Gupta <Vineet.Gupta1@synopsys.com>
Acked-by: Matthew Fortune <Matthew.Fortune@imgtec.com>
Acked-by: Alexey Brodkin <Alexey.Brodkin@synopsys.com>

--

extract six-argument syscalls from the rest
use safe, even if possibly a few cycles slower, six-argument syscall implementation

Signed-off-by: mirabilos <m@mirbsd.org>
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>

Change-Id: I3cabbe3768071c547d1b19eb9aa9360a72712aa3
scholzp pushed a commit to scholzp/l4re-core that referenced this issue Jun 5, 2024
This commit collects the following upstream updates to uclibc-ng in
features that are not currently used by L4Re, such as the ARC and nds32
architectures or nptl:

add init_module/delete_module syscall wrappers
use multiline comment for better copyright parsing
nptl: remove pthread_attr_init/pthread_create weak aliases
nptl_db: fix gcc compiler warnings

--

fts: fix gcc compiler warning

Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>

--

ARC: ldso: don't use _DYNAMIC@gotpc construct kernkonzept#1
ARC: ldso: don't use _DYNAMIC@gotpc construct kernkonzept#2

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>

--

nds32: add NPTL/TLS, *context function, libm changes and code cleanup

Signed-off-by: Vincent Ren-Wei Chen <vincentc@andestech.com>

--

remove PID caching

Reviewed-by: Max Filippov <jcmvbkbc@gmail.com>
Reviewed-by: Vineet Gupta <Vineet.Gupta1@synopsys.com>
Acked-by: Matthew Fortune <Matthew.Fortune@imgtec.com>
Acked-by: Alexey Brodkin <Alexey.Brodkin@synopsys.com>

--

extract six-argument syscalls from the rest
use safe, even if possibly a few cycles slower, six-argument syscall implementation

Signed-off-by: mirabilos <m@mirbsd.org>
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>

Change-Id: I3cabbe3768071c547d1b19eb9aa9360a72712aa3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants