No description
Find a file
Nich ca8a75680f compat: libc: Add pthread_mutex_destroy hack for camera
In Pie, Google added checks to prevent destroying of the same mutexes
consecutively, and aborts the program on fortify fatal call.

Our camera blobs trigger this check when tearing down an ISP session,
destroying the same mutex consecutively by adding a destroy instruction
in a loop. This causes the whole daemon to crash and fail.

(Specifically, the violating instructions were from isp_module_stop_session
and when isp_module_start_session fails to create a thread.)

Workaround the issue by shimming the function; catching destroyed
mutexes and returning -EBUSY without passing on the bad mutexes to libc.

Change-Id: I4f8542a496dc25c53f8208a647cc0d6acc8662eb
2023-09-25 16:58:50 +00:00
interfaces compat: Add some HIDL interfaces types shims 2023-07-17 21:53:55 +02:00
libbase compat: Keep only one copy of clang-format style 2023-07-17 20:51:56 +02:00
libbinder compat: Provide shim with IPermissionController stubs 2023-07-18 18:10:41 +00:00
libc compat: libc: Add pthread_mutex_destroy hack for camera 2023-09-25 16:58:50 +00:00
libcamera_metadata compat: Keep only one copy of clang-format style 2023-07-17 20:51:56 +02:00
libcomparetf2 compat: Add libcomparetf2 shim 2023-09-18 15:33:36 +00:00
libcutils libcutils_shim: jstring: Import strcpy8to16 definition 2022-09-21 13:10:09 -04:00
libgui compat: Keep only one copy of clang-format style 2023-07-17 20:51:56 +02:00
libmemset Provide shim for android_memset32 2022-09-21 16:26:12 +01:00
libpiex compat: libpiex_shim: Improve shim 2022-11-01 10:35:17 +00:00
libtinyxml2 compat: Add libtinyxml2 shim 2023-07-18 12:10:42 +02:00
libui compat: Keep only one copy of clang-format style 2023-07-17 20:51:56 +02:00
libutils compat: Add libutils shim 2023-07-19 21:32:21 +02:00
.clang-format compat: Keep only one copy of clang-format style 2023-07-17 20:51:56 +02:00
Android.bp compat: Add libcomparetf2 shim 2023-09-18 15:33:36 +00:00