Closed chang614 closed 2 months ago
This issue has been marked as a stale issue because it has been open (more than) 30 days with no activity. Remove the stale label or add a comment, otherwise this issue will automatically be closed in 5 days. Note, that you can always re-open a closed issue at any time.
Hello. I'm currently doing rpmb write operations based on optee tag4.1 on linux, but I'm having some incredible issues.
I have tried to write data to rpmb several times, and there is a chance that there will be some errors that cause TA panic with the error code of 0xffff0000, 0xffff000e, 0xffff000f. when I enable the print of "struct rpmb_data_frme", Some of the failure logs are as follows:
D/TC:? 0 write_req:1311 Dumping data frame 0 from tee_rpmb_req_pack: D/TC:? 0 write_req:1312 000000009c6010ca 0b d2 57 38 b6 c4 87 da f8 78 9d 32 ee ad 38 db D/TC:? 0 write_req:1312 000000009c6010da 6b 01 ad dc 2f c3 72 ca cd fb 5d 0e 6c e3 8e a1 D/TC:? 0 write_req:1312 000000009c6010ea 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D/TC:? 0 write_req:1312 000000009c6010fa 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D/TC:? 0 write_req:1312 000000009c60110a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D/TC:? 0 write_req:1312 000000009c60111a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D/TC:? 0 write_req:1312 000000009c60112a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D/TC:? 0 write_req:1312 000000009c60113a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D/TC:? 0 write_req:1312 000000009c60114a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D/TC:? 0 write_req:1312 000000009c60115a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D/TC:? 0 write_req:1312 000000009c60116a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D/TC:? 0 write_req:1312 000000009c60117a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D/TC:? 0 write_req:1312 000000009c60118a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D/TC:? 0 write_req:1312 000000009c60119a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D/TC:? 0 write_req:1312 000000009c6011aa 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D/TC:? 0 write_req:1312 000000009c6011ba 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D/TC:? 0 write_req:1312 000000009c6011ca 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D/TC:? 0 write_req:1312 000000009c6011da 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D/TC:? 0 write_req:1312 000000009c6011ea 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D/TC:? 0 write_req:1312 000000009c6011fa 00 00 2e f5 00 02 00 01 00 00 00 03 D/TC:? 0 write_req:1353 Dumping data frame 0 to tee_rpmb_resp_unpack_verify: D/TC:? 0 write_req:1354 000000009c6020c4 cf e8 9c 93 b9 8c f6 7c b8 09 34 7f c5 62 58 e4 D/TC:? 0 write_req:1354 000000009c6020d4 c4 99 75 2c 7f d1 8c 58 f1 64 86 b9 81 56 86 85 D/TC:? 0 write_req:1354 000000009c6020e4 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D/TC:? 0 write_req:1354 000000009c6020f4 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D/TC:? 0 write_req:1354 000000009c602104 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D/TC:? 0 write_req:1354 000000009c602114 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D/TC:? 0 write_req:1354 000000009c602124 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D/TC:? 0 write_req:1354 000000009c602134 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D/TC:? 0 write_req:1354 000000009c602144 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D/TC:? 0 write_req:1354 000000009c602154 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D/TC:? 0 write_req:1354 000000009c602164 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D/TC:? 0 write_req:1354 000000009c602174 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D/TC:? 0 write_req:1354 000000009c602184 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D/TC:? 0 write_req:1354 000000009c602194 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D/TC:? 0 write_req:1354 000000009c6021a4 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D/TC:? 0 write_req:1354 000000009c6021b4 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D/TC:? 0 write_req:1354 000000009c6021c4 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D/TC:? 0 write_req:1354 000000009c6021d4 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D/TC:? 0 write_req:1354 000000009c6021e4 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D/TC:? 0 write_req:1354 000000009c6021f4 00 00 2e f6 00 02 00 00 00 00 03 00 E/TC:? 0 tee_rpmb_resp_unpack_verify:803 op_result IS 0X0000*********** E/TC:? 0 E/TC:? 0 TA panicked with code 0xffff0000
or
D/TC:? 0 write_req:1311 Dumping data frame 0 from tee_rpmb_req_pack: D/TC:? 0 write_req:1312 000000009c6010ca 2d d0 b2 ef b2 ca 17 29 32 61 a1 ac c5 34 11 65 D/TC:? 0 write_req:1312 000000009c6010da 29 60 a6 5c 54 cc 60 c7 86 59 3f c3 7f dc cd 1d D/TC:? 0 write_req:1312 000000009c6010ea 75 60 48 8f 6e d1 34 76 c0 fb 55 f8 96 bc c3 13 D/TC:? 0 write_req:1312 000000009c6010fa c1 03 04 b1 4b 77 6c 5f c4 2c 5b 4f 6e 58 ba 93 D/TC:? 0 write_req:1312 000000009c60110a 8a 70 06 27 ca 27 97 e9 62 1f f1 83 62 92 3f 64 D/TC:? 0 write_req:1312 000000009c60111a ee 9e 94 a5 34 34 09 52 fd 37 16 5d 50 07 c0 a9 D/TC:? 0 write_req:1312 000000009c60112a 07 69 be 2a dc 8f 81 bc 5c 4f ba d1 e1 e2 ac 57 D/TC:? 0 write_req:1312 000000009c60113a 64 e4 76 39 34 91 21 bb 70 fe ed 56 aa 8a 09 e0 D/TC:? 0 write_req:1312 000000009c60114a 56 f2 17 d8 b5 dc 16 1b c8 41 d7 d2 6f 63 7a 57 D/TC:? 0 write_req:1312 000000009c60115a cb a7 59 b8 91 54 51 8c 87 12 3e d6 ed d0 e6 21 D/TC:? 0 write_req:1312 000000009c60116a 16 6d 99 41 93 22 b0 ed 92 c3 34 0b 88 ea 6c 87 D/TC:? 0 write_req:1312 000000009c60117a 1b 77 85 5e 27 78 3a ec 57 50 21 80 0d f0 5f 1b D/TC:? 0 write_req:1312 000000009c60118a d7 7d d9 11 d9 ca 9f e9 17 17 67 0a 3b 95 fd 1a D/TC:? 0 write_req:1312 000000009c60119a 0a 57 76 2c 98 ab 49 64 86 5f 2b f2 16 63 01 86 D/TC:? 0 write_req:1312 000000009c6011aa fd 53 c2 b2 11 90 2c 53 7d 8a 5f 19 de f7 fb e2 D/TC:? 0 write_req:1312 000000009c6011ba 69 cf b7 ad c0 0b 2d b6 b2 05 00 a8 e0 ab b0 12 D/TC:? 0 write_req:1312 000000009c6011ca 23 9a 58 0a 53 01 3d fd a6 65 5d 85 19 77 87 82 D/TC:? 0 write_req:1312 000000009c6011da a4 ae 4f de c3 ec 1e 6a 81 f2 d9 bf 78 e9 3d 24 D/TC:? 0 write_req:1312 000000009c6011ea 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D/TC:? 0 write_req:1312 000000009c6011fa 00 00 2e ff 3f fe 00 01 00 00 00 03 D/TC:? 0 write_req:1353 Dumping data frame 0 to tee_rpmb_resp_unpack_verify: D/TC:? 0 write_req:1354 000000009c6020c4 c0 31 77 6e f2 7d f5 26 24 41 03 22 34 d8 00 0b D/TC:? 0 write_req:1354 000000009c6020d4 d3 8d 65 fe 50 70 15 b1 78 65 a3 26 2b 18 85 87 D/TC:? 0 write_req:1354 000000009c6020e4 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D/TC:? 0 write_req:1354 000000009c6020f4 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D/TC:? 0 write_req:1354 000000009c602104 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D/TC:? 0 write_req:1354 000000009c602114 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D/TC:? 0 write_req:1354 000000009c602124 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D/TC:? 0 write_req:1354 000000009c602134 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D/TC:? 0 write_req:1354 000000009c602144 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D/TC:? 0 write_req:1354 000000009c602154 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D/TC:? 0 write_req:1354 000000009c602164 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D/TC:? 0 write_req:1354 000000009c602174 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D/TC:? 0 write_req:1354 000000009c602184 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D/TC:? 0 write_req:1354 000000009c602194 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D/TC:? 0 write_req:1354 000000009c6021a4 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D/TC:? 0 write_req:1354 000000009c6021b4 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D/TC:? 0 write_req:1354 000000009c6021c4 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D/TC:? 0 write_req:1354 000000009c6021d4 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D/TC:? 0 write_req:1354 000000009c6021e4 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D/TC:? 0 write_req:1354 000000009c6021f4 00 00 2f 00 3f fe 00 00 00 03 03 00 E/TC:? 0 tee_rpmb_resp_unpack_verify:803 op_result IS 0X0003*********** D/TC:? 0 read_fat:2147 fat_address 512 E/TC:? 0 E/TC:? 0 TA panicked with code 0xffff000e
I wonder what is the reason for this phenomenon? And how to fix it?