Re: [PATCH] tools/nolibc: stackprotector: Avoid stalling program startup if crng is not init yet

From: Daniel Palmer

Date: Fri May 22 2026 - 05:13:16 EST


Sorry for the spam.

On Fri, 22 May 2026 at 18:07, Daniel Palmer <daniel@xxxxxxxxx> wrote:
> There is a comment in the code about mixing in the pid to make
> sure the canary isn't 0 even if getrandom fails so it seems ok
> to pass the non-blocking and insecure flags so it doesn't block
> and potentially return something even if the crng is not init
> yet.

My brain made the pid part up. I checked again add it's not using the pid..
anyhow the code still seems to have been prepared for getrandom
failing so it seems ok to let it actually fail.

Thanks,

Daniel