Skip to content
This repository has been archived by the owner on Feb 2, 2019. It is now read-only.

Limiting uio size of trng_write() #1

Closed
jj1bdx opened this issue Jul 30, 2015 · 1 comment
Closed

Limiting uio size of trng_write() #1

jj1bdx opened this issue Jul 30, 2015 · 1 comment

Comments

@jj1bdx
Copy link
Owner

jj1bdx commented Jul 30, 2015

Too many bytes in the uio data will cause DoS or at least flooding of entropy by random_harvest() too many times per each uio.

  • Upper limit as the rule of thumb: 512 bytes or 1024 bytes?
  • If exceeded the limit, an error should be returned and the uio data should be immediately discarded
@jj1bdx
Copy link
Owner Author

jj1bdx commented Aug 4, 2015

Done. Set to 1024 bytes max. See 5280834

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant