Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test/alternator: reproducer for DoS in unlimited-precision addition
As already noted in issue scylladb#6794, whereas DynamoDB limits the magnitude of numbers to between 10^-130 and 10^125, Scylla does not. In this patch we add yet another test for this problem, but unlike previous tests which just shown too much magnitude being allowed which always sounded like a benign problem - the test in this patch shows that this "feature" can be used to DoS Scylla - a user user can send a short request that causes arbitrarily-large allocations, stalls and CPU usage. The test is currently marked "skip" because it cause cause Scylla to take a very long time and/or run out of memory. It passes on DynamoDB because the excessive magnitude is simply not allowed there. Refs scylladb#6794 Signed-off-by: Nadav Har'El <nyh@scylladb.com>
- Loading branch information