Go to file
Akilesh Kailash 14e9504d2e snapuserd: Address alignment fault on 32-bit systems
When the scratch space is mmap'ed, the metadata buffer
will be un-aligned. This may lead to alignment fault
on 32-bit systems. Address this by temporarily copying
it to buffer.

No perf impact as this code path is not in I/O path
and the copy is a for the size of metadata buffer which
is 8k.

Bug: 206426215
Test: Full and Incremental OTA on pixel
1: Compile snapuserd as 32 bit and reproduced the bug on pixel.
2: With fix - OTA applied successfully.
3: Reboot the device when merge was in-flight as the fix is primarily
in that path.
4: Verify merge completion and data integrity post merge.

Signed-off-by: Akilesh Kailash <akailash@google.com>
Change-Id: I63c0d862057ebf138c9d1696a942030e30598739
2021-12-01 20:23:58 +00:00
bootstat
cli-test
code_coverage
debuggerd Remove non-protobuf path. 2021-11-19 02:07:30 +00:00
diagnose_usb
fastboot fastbootd: use O_DIRECT for write partition 2021-11-04 13:24:33 -07:00
fs_mgr snapuserd: Address alignment fault on 32-bit systems 2021-12-01 20:23:58 +00:00
gatekeeperd
healthd charger: vendor charger use resources from /vendor 2021-11-02 13:52:40 -07:00
include
init init: Remove first_stage_mount support for AVB 1.0. 2021-11-30 00:57:48 -08:00
janitors
libappfuse
libasyncio
libbinderwrapper
libcrypto_utils
libcutils cutils: only support safe list iteration. 2021-11-03 10:26:36 -07:00
libdiskconfig
libgrallocusage
libkeyutils
libmodprobe
libnetutils
libpackagelistparser
libprocessgroup Merge "libprocessgroup/tools: Add settaskprofile command-line tool" 2021-11-10 17:18:41 +00:00
libqtaguid
libsparse
libstats
libsuspend libsuspend: vendor_available. 2021-11-02 13:52:40 -07:00
libsync
libsystem
libsysutils Fix 32-bit userspace on 64-bit kernel quota2 compatibility. 2021-10-25 16:24:49 -07:00
libusbhost
libutils Remove libdl from shared_libs 2021-11-29 17:43:04 -05:00
libvndksupport Check vendor namespace for SPHAL namespace 2021-11-22 10:57:44 +09:00
llkd llkd: Disable in userdebug builds by default 2021-11-04 16:21:46 -07:00
mini_keyctl Merge "Make libmini_keyctl_static available in recovery" 2021-11-23 17:54:31 +00:00
mkbootfs
property_service remove 'net.qtaguid_enabled' property 2021-11-10 15:52:38 -08:00
reboot
rootdir Merge "Revert^2 "Load persist props before starting apexd."" 2021-11-17 21:24:28 +00:00
run-as
sdcard
set-verity-state
shell_and_utilities libprocessgroup/tools: Add settaskprofile command-line tool 2021-11-09 22:35:51 +00:00
storaged
toolbox
trusty Merge "trusty: update default_applicable_licenses "Android-Apache-2.0"" 2021-11-30 23:41:46 +00:00
usbd
watchdogd
.clang-format
.clang-format-2
.clang-format-4
.gitignore
CleanSpec.mk
METADATA
MODULE_LICENSE_APACHE2
OWNERS
PREUPLOAD.cfg