diff options
| author | Chenbo Feng <fengc@google.com> | 2019-04-10 12:54:41 -0700 |
|---|---|---|
| committer | Chenbo Feng <fengc@google.com> | 2019-04-12 12:16:54 -0700 |
| commit | b049513d366c37ca481317c0ff51e49932cae8b3 (patch) | |
| tree | 72a5330af16ab57cc4377aa508c5c3812eeefc82 /server/InterfaceController.cpp | |
| parent | 873ae1491d9ea8a6084ffe6816658cc4c27e22b1 (diff) | |
Add overflow protection for network stats maps
Since we moved both uid stats and uid tag stats to the same map now. It
is possible for apps to create as many tags as possible to overflow the
uid tag stats map. To prevent that, add a check when tagging a socket,
and start to block request when a uid created to many entries in the
stats map.
Bug: 111441138
Test: android.app.usage.cts.NetworkUsageStatsTest
android.net.cts.TrafficStatsTest
Change-Id: I11f42ffc83efc917ac0871a0326375031ae0a6e0
Diffstat (limited to 'server/InterfaceController.cpp')
0 files changed, 0 insertions, 0 deletions
