Commit c0e66047 authored by LongPing Wei's avatar LongPing Wei
Browse files

ANDROID: set emulate_zone_append=true in dm-default-key



All zone append writes to a zone of a zoned block device will
have the same BIO sector, the start of the zone. When the
cypher IV mode uses sector values, all data targeting a
zone will be encrypted using the first sector numbers of the
zone. This will not result in write errors but will
cause most reads to fail as reads will use the sector values
for the actual data locations, resulting in IV mismatch.
To avoid this problem, ask DM core to emulate zone append
operations with regular writes.

Bug: 374251833
Bug: 374633526

Change-Id: I620687c41d04e9ea1f54c5037dae97ddd5bb67eb
Signed-off-by: default avatarLongPing Wei <weilongping@oppo.com>
(cherry picked from commit e9ae1809)
parent 84dc81f5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment