Messages in this thread | | | Date | Sun, 5 Jul 2020 18:19:56 -0700 | From | Kees Cook <> | Subject | Re: [PATCH] riscv: Add STACKPROTECTOR supported |
| |
On Mon, Jul 06, 2020 at 08:55:35AM +0800, Guo Ren wrote: > On Mon, Jul 6, 2020 at 4:31 AM Kees Cook <keescook@chromium.org> wrote: > > Sure -- I assume get_cycles64() is architecturally "simple"? (i.e. it > > doesn't require that the entire time-keeping subsystem has started?) > Yes, it's just a csr read. But it's necessary? get_random_bytes should enough.
Well, that depends on how early _all_ riscv platforms are able to initialize their random pool correctly. I'd include a csr mix.
-- Kees Cook
| |