[VTS11R1]vts_kernel_encryption_test FBEPolicyTest#TestAesPerFileKeysPolicy

问题描述

vts_kernel_encryption_test
vts_kernel_encryption_test FBEPolicyTest#TestAesPerFileKeysPolicy
FAILURE:
[  INFO ] test/vts-testcase/kernel/encryption/utils.cpp:210:: /dev/block/platform/bootdevice/by-name/userdata is not a device-mapper device; metadata encryption is disabled
[  INFO ] test/vts-testcase/kernel/encryption/utils.cpp:265:: /dev/block/platform/bootdevice/by-name/userdata is mounted on /data with type ext4; UUID is 1bcf32795ea347bab94ae54d0cefd86c, raw block device is /dev/block/platform/bootdevice/by-name/userdata
[  INFO ] test/vts-testcase/kernel/encryption/file_based_encryption_tests.cpp:431:: Adding fscrypt master key, flags are 0x0, raw bytes are 67c6697351ff4aec29cdbaabf2fbe3467cc254f81be8e78d765a2e63339fc99a66320db73158a35a255d051758e95ed4abb2cdc69bb454110e827441213ddc87
[  INFO ] test/vts-testcase/kernel/encryption/file_based_encryption_tests.cpp:448:: Master key identifier is 9a281f7b673e99788e6caa93e612ec4b
[  INFO ] test/vts-testcase/kernel/encryption/file_based_encryption_tests.cpp:618:: Derived subkey 9a281f7b673e99788e6caa93e612ec4b using HKDF info 667363727970740001
[  INFO ] test/vts-testcase/kernel/encryption/file_based_encryption_tests.cpp:531:: Setting encryption policy on /data/unencrypted/vts-test-dir
[  INFO ] test/vts-testcase/kernel/encryption/file_based_encryption_tests.cpp:317:: Creating test file /data/unencrypted/vts-test-dir/file containing 1048576 bytes of data
[  INFO ] test/vts-testcase/kernel/encryption/file_based_encryption_tests.cpp:330:: Reading the raw ciphertext of /data/unencrypted/vts-test-dir/file from disk
[  INFO ] test/vts-testcase/kernel/encryption/file_based_encryption_tests.cpp:277:: Extent 1 of 1 is logical offset 0, physical offset 24117248, length 1048576, flags 0x1
[  INFO ] test/vts-testcase/kernel/encryption/file_based_encryption_tests.cpp:592:: Inode number: 917516
[  INFO ] test/vts-testcase/kernel/encryption/file_based_encryption_tests.cpp:600:: File nonce: 5b9443b10900d00691acad71a9c10a4a
[  INFO ] test/vts-testcase/kernel/encryption/file_based_encryption_tests.cpp:618:: Derived subkey e6387290d70f19f05482c3c6890052335aa8a52719df2ebc0183cdc40663d412c12db1344aba1dbf16c9c03773f9294b434660bd9b18a76a4c5d6b3d0592ae19 using HKDF info 6673637279707400025b9443b10900d00691acad71a9c10a4a
[  INFO ] test/vts-testcase/kernel/encryption/file_based_encryption_tests.cpp:704:: Verifying correctness of encrypted data
test/vts-testcase/kernel/encryption/file_based_encryption_tests.cpp:722: Failure
Expected equality of these values:
file_info.actual_ciphertext
Which is: { '5' (53, 0x35), 'n' (110, 0x6E), '\xDA' (218), '\x83' (131), '\xAE' (174), '\xAD' (173), 'x' (120, 0x78), '\x1B' (27), '\xC8' (200), '>' (62, 0x3E), '\x13' (19), '_' (95, 0x5F), 'o' (111, 0x6F), '\x87' (135), '\x16' (22), '\x98' (152), 'M' (77, 0x4D), '\xBD' (189), '\xA3' (163), '\xF' (15), '\xE' (14), '\xF1' (241), '\xB0' (176), '+' (43, 0x2B), '\x91' (145), 'B' (66, 0x42), '\xCC' (204), '\xC4' (196), '\xF' (15), 'A' (65, 0x41), '\xBD' (189), '\xD8' (216), ... }
computed_ciphertext
Which is: { '5' (53, 0x35), 'n' (110, 0x6E), '\xDA' (218), '\x83' (131), '\xAE' (174), '\xAD' (173), 'x' (120, 0x78), '\x1B' (27), '\xC8' (200), '>' (62, 0x3E), '\x13' (19), '_' (95, 0x5F), 'o' (111, 0x6F), '\x87' (135), '\x16' (22), '\x98' (152), 'M' (77, 0x4D), '\xBD' (189), '\xA3' (163), '\xF' (15), '\xE' (14), '\xF1' (241), '\xB0' (176), '+' (43, 0x2B), '\x91' (145), 'B' (66, 0x42), '\xCC' (204), '\xC4' (196), '\xF' (15), 'A' (65, 0x41), '\xBD' (189), '\xD8' (216), ... }

解决方案

确保以下patch合入以后,再用最新的daily build tool和daily build gsi image验证
 以下branch请申请ALPS05356431 patch
Kernel-4.19  alps-mp-r0.mp1
Kernel-4.14  alps-mp-r0.mp1
Kernel-4.19  alps-mp-r0.mp1.tc31sp
Kernel-4.14  alps-mp-r0.mp1.tc31sp
以下branch请申请ALPS05406486 patch
Kernel-4.14  alps-mp-r0.mp1.tc8sp2

 

微信扫码打赏

作者: RESSRC

个人资源站

发表评论

电子邮件地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据