4 ms·
Thanks, I came across your research before and thought it was quite cool. In Section 8.5, when discussing whether hash tables would be suitable for handling TLB
by lorenzhs 10y ago
Thanks, I came across your research before and thought it was quite cool. In Section 8.5, when discussing whether hash tables would be suitable for handling TLB misses, wouldn't denial of service attacks also be a concern? If an attacker knows the hash function and can control the addresses being looked up, they might be able to trigger worst-case behaviour on every lookup, couldn't they?
- Veedrac 10y agoThat's addressed in that very section: > Moreover, an adversary can try to increase a number of necessary rehashes. It seems to me that the section is a bit too dismissive, though, as there are hash tables and hash functions that mitigate these concerns. In particular, collisions can be replaced with trees, like in Java, limiting the worst case to O(log n) again.
- lorenzhs 10y agoRehashes and bad probing behaviour aren't quite the same thing, but I'll let it count and admit I may have replied too quickly ;)