a4e76aab23
The shared memory buffer used by srcPtr can be freed by another thread because it is not protected by a mutex. Subsequently, a use after free AIGABRT can occur in a race condition. SafetyNet logging is not added to avoid log spamming. The mutex lock is called to setup for decryption, which is called frequently. The crash was reproduced on the device before the fix. Verified the test passes after the fix. Test: sts sts-tradefed run sts-engbuild-no-spl-lock -m StsHostTestCases --test android.security.sts.Bug_176495665#testPocBug_176495665 Test: push to device with target_hwasan-userdebug build adb shell /data/local/tmp/Bug-176495665_sts64 Bug: 176495665 Bug: 176444161 Change-Id: I4c83c44873eef960b654f387a3574fcad49c41a9 |
||
---|---|---|
.. | ||
include | ||
Android.bp | ||
android.hardware.drm@1.0-service-lazy.rc | ||
android.hardware.drm@1.0-service.rc | ||
Android.mk | ||
common_default_service.mk | ||
CryptoFactory.cpp | ||
CryptoFactory.h | ||
CryptoPlugin.cpp | ||
CryptoPlugin.h | ||
DrmFactory.cpp | ||
DrmFactory.h | ||
DrmPlugin.cpp | ||
DrmPlugin.h | ||
LegacyPluginPath.cpp | ||
LegacyPluginPath.h | ||
OWNERS | ||
service.cpp | ||
serviceLazy.cpp | ||
SharedLibrary.cpp | ||
TypeConvert.cpp | ||
TypeConvert.h |