summaryrefslogtreecommitdiff
path: root/framework-t/src/android/net/IpSecAlgorithm.java
diff options
context:
space:
mode:
authormarkchien <markchien@google.com>2022-02-18 12:48:02 +0800
committerMaciej Żenczykowski <maze@google.com>2022-02-18 10:11:15 +0000
commit2616b49c709b2e4aca5b20fb59f571b6fd987d03 (patch)
treefcdd993e5cc788a22f270bc3d557bd8eff77836d /framework-t/src/android/net/IpSecAlgorithm.java
parent397799787d6c332e5a6e8ccc206d9c2547323223 (diff)
Fix system_server crash while iterating CookieTagMap
When uid is removed, NetworkStatsService will iterate CookieTagMap and delete the corresponded uid socketTag value. But not only NetworkStatsService would detete CookieTagMap entries. There are other threads may also delete CookieTagMap entries such as #unTagSocket in bpfHandler and desctroy socket listener in TrafficController. System server crash as NPE because the CookieTagMap entry it iterate just be removed by other threads at the same time. This is just a simple fix to prevent the crash. Will have follow up CL for formal fix. Bug: 220084230 Test: m Change-Id: I08cad87f537fb09499faf1ff5cfd443fcb8ce436
Diffstat (limited to 'framework-t/src/android/net/IpSecAlgorithm.java')
0 files changed, 0 insertions, 0 deletions