Compare commits

Author SHA1 Message Date
HeroBuxx b3239f5570 Revert "dipper: Update namespace_imports to sdm845-4.19"
This reverts commit 0be0825944.
2026-10-25 17:25:51 +00:00
neroices 047ad60b37 dipper: Update ArcSoft refocus blobs with UAF fix
Apply the teardown reorder patches to the ArcSoft dual-camera refocus
binaries to fix use-after-free SIGSEGV when switching out of portrait
mode.

Change-Id: Ib8c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1
2026-09-28 14:50:05 +00:00
Raya Mahardika d0dcc301f8 dipper: Patch libmpbase with SIMD tail padding
ArcSoft's dual-camera refocus library (libarcsoft_dualcam_refocus_rear_t.so)
executes a 2D convolution filter over image/disparity rows using NEON
instructions (vld1.32 {d28, d29, d30}, [r10]). Because it advances by
16 bytes per iteration but loads 24 bytes, the final iteration of each
row over-reads 8 bytes past the allocated buffer.

On Android 14/15, Scudo's memory layout enforces strict guard pages and
page unmapping. When an image buffer ends on a page boundary, this 8-byte
over-read triggers a fatal SEGV_MAPERR (SIGSEGV) at the adjacent page
boundary (e.g. 0xda005000), crashing the camera provider service when
capturing portrait photos in MIUI Camera.

All ArcSoft proprietary libraries route their allocations through
libmpbase's MMemAlloc, MMemRealloc, and MMemAllocStatic. Patch these
allocation functions to add 128 bytes of padding to every buffer,
ensuring all NEON sliding-window loads land safely within mapped memory.

Change-Id: Ib6fdc56e3b5493a9f808cdcce87d26dcdd914ed3
2026-09-23 23:28:57 +09:00
Raya Mahardika 0be0825944 dipper: Update namespace_imports to sdm845-4.19
Change-Id: Ib1ff34ccf42ae39beb5a372de564844cb073b057
2026-09-04 16:49:36 +00:00
Raya Mahardika d18ca246ba dipper: Regen Vendor
Change-Id: Ibe7bd21c202ba55eb3a4ac154f3bffae6d946e9d
2026-09-04 16:49:17 +00:00
6 changed files with 8 additions and 8 deletions

No files matched your search

+4 -4
View File
@@ -2885,7 +2885,7 @@ cc_prebuilt_library_shared {
}
prebuilt_rfsa {
name: "dirac_resource",
name: "vendor_lib_rfsa_adsp_dirac_resource_dar",
filename: "dirac_resource.dar",
owner: "xiaomi",
src: "proprietary/vendor/lib/rfsa/adsp/dirac_resource.dar",
@@ -2894,7 +2894,7 @@ prebuilt_rfsa {
}
prebuilt_rfsa {
name: "libSuperSensor_skel",
name: "vendor_lib_rfsa_adsp_libSuperSensor_skel_so",
filename: "libSuperSensor_skel.so",
owner: "xiaomi",
src: "proprietary/vendor/lib/rfsa/adsp/libSuperSensor_skel.so",
@@ -2903,7 +2903,7 @@ prebuilt_rfsa {
}
prebuilt_rfsa {
name: "libarcsoft_dualcam_refocus_skel",
name: "vendor_lib_rfsa_adsp_libarcsoft_dualcam_refocus_skel_so",
filename: "libarcsoft_dualcam_refocus_skel.so",
owner: "xiaomi",
src: "proprietary/vendor/lib/rfsa/adsp/libarcsoft_dualcam_refocus_skel.so",
@@ -2912,7 +2912,7 @@ prebuilt_rfsa {
}
prebuilt_rfsa {
name: "misound_res",
name: "vendor_lib_rfsa_adsp_misound_res_bin",
filename: "misound_res.bin",
owner: "xiaomi",
src: "proprietary/vendor/lib/rfsa/adsp/misound_res.bin",
+4 -4
View File
@@ -230,10 +230,10 @@ PRODUCT_PACKAGES += \
libgps.utils \
libremosaiclib \
sensors.ssc \
dirac_resource \
libSuperSensor_skel \
libarcsoft_dualcam_refocus_skel \
misound_res \
vendor_lib_rfsa_adsp_dirac_resource_dar \
vendor_lib_rfsa_adsp_libSuperSensor_skel_so \
vendor_lib_rfsa_adsp_libarcsoft_dualcam_refocus_skel_so \
vendor_lib_rfsa_adsp_misound_res_bin \
glgps \
gps.cer \
android.hardware.keymaster@3.0-service-qti \
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.