android_packages_modules_Co.../framework-t
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Nathan Harold 98b708d5a2 Fix a Rare Race In Clearing ResourceId
If the IpSecTransform is being manipulated in
multiple threads, there is a race between the
clearing of the resource id (setting it to
INVALID_RESOURCE_ID and making binder calls
with it. This wasn't a significant problem before
becasue the only side effect was that it could
occasionally cause an IAE instead of an ISE when
the caller was doing something weird. Unfortunately
the exception type now matters because it is being
relied upon to provide a callback rather than a
throw in the event of an error. Accordingly reads of
mResourceId have to be synchronized against the
the possibility of close() of that resourceId to
ensure that the right exception is thrown on the
service side of the binder.

Bug: 336897538
Test: atest CtsNetTestCases:IpSecManagerTest
Change-Id: I21c893034efa7f322ae2aa81d6c7e00dc9ef8d2f
2024-05-06 22:27:19 +00:00
..
api Merge "IpSecTransformState: Rename API methods and improve docs" into main 2024-02-16 01:12:21 +00:00
hiddenapi Make the hiddenapi*-tiramisu.txt files part of framework-connectivity-t 2022-09-13 15:13:15 +00:00
jni Move socket tagging implementation to mainline. 2022-01-30 15:59:44 +09:00
src/android Fix a Rare Race In Clearing ResourceId 2024-05-06 22:27:19 +00:00
Android.bp Merge "Move VpnManagerServiceTest and VpnTest to frameworks" into main 2024-03-01 00:58:31 +00:00
Sources.bp Use filegroup defaults for framework sources 2023-03-15 10:36:52 +00:00