- src/vault-core: no_std 密码学核心(HKDF 派生、AES-256-GCM、两条水位线防回滚) - src/ta-vault / src/ca-vault: TA 薄壳与 selftest 客户端 - build/p1_vault_qemu.sh: QEMU 全链,判据 VAULT_ALL_OK - build/p2_ta_keys_qemu.sh: TA 公钥编进 tee.bin,默认密钥签的被拒 - build/gen_ta_keys.sh: 自建签名密钥 - docs/07-VAULT-TA.md: 设计 + 已验证/未验证清单 - CLAUDE.md 雷区 11-16:user_ta_header、嵌套 workspace、ARCH=arm、SIGPIPE、TA_PUBLIC_KEY、heredoc 变量
177 lines
13 KiB
Plaintext
177 lines
13 KiB
Plaintext
D/TC:0 collect_mem_ranges:1143 tee_ram_initial_offs 0
|
|
D/TC:0 add_phys_mem:798 VCORE_UNPG_RX_PA type TEE_RAM_RX 0x0e100000 size 0x00069000
|
|
D/TC:0 add_phys_mem:798 VCORE_UNPG_RW_PA type TEE_RAM_RW 0x0e169000 size 0x00029000
|
|
D/TC:0 add_phys_mem:798 VCORE_UNPG_RW_PA type SEC_RAM_OVERALL 0x0e169000 size 0x00029000
|
|
D/TC:0 add_phys_mem:798 VCORE_FREE_PA type TEE_RAM_RW 0x0e192000 size 0x0016e000
|
|
D/TC:0 merge_mmaps:751 Merging 0xe169000..0xe191fff and 0xe192000..0xe2fffff
|
|
D/TC:0 add_phys_mem:798 VCORE_FREE_PA type SEC_RAM_OVERALL 0x0e192000 size 0x0016e000
|
|
D/TC:0 merge_mmaps:751 Merging 0xe169000..0xe191fff and 0xe192000..0xe2fffff
|
|
D/TC:0 add_phys_mem:798 next_pa type SEC_RAM_OVERALL 0x0e300000 size 0x00d00000
|
|
D/TC:0 merge_mmaps:751 Merging 0xe169000..0xe2fffff and 0xe300000..0xeffffff
|
|
D/TC:0 add_phys_mem:798 GICD_BASE type IO_SEC 0x08000000 size 0x00100000
|
|
D/TC:0 add_phys_mem:798 GICC_BASE type IO_SEC 0x08000000 size 0x00100000
|
|
D/TC:0 merge_mmaps:751 Merging 0x8000000..0x80fffff and 0x8000000..0x80fffff
|
|
D/TC:0 add_phys_mem:798 SECRAM_BASE type IO_SEC 0x0e000000 size 0x00100000
|
|
D/TC:0 add_phys_mem:798 CONSOLE_UART_BASE type IO_SEC 0x09000000 size 0x00100000
|
|
D/TC:0 add_phys_mem:798 TEE_SHMEM_START type NSEC_SHM 0x7fe00000 size 0x00200000
|
|
D/TC:0 add_va_space:842 type RES_VASPACE size 0x00a00000
|
|
D/TC:0 add_va_space:842 type SHM_VASPACE size 0x02000000
|
|
D/TC:0 add_va_space:842 type TEE_DYN_VASPACE size 0x00100000
|
|
D/TC:0 init_mem_map:1544 Mapping core at 0x2388d000 offs 0x1578d000
|
|
D/TC:0 dump_mmap_table:963 type IDENTITY_MAP_RX va 0x0e100000..0x0e100fff pa 0x0e100000..0x0e100fff size 0x00001000 (smallpg)
|
|
D/TC:0 dump_mmap_table:963 type TEE_RAM_RX va 0x2388d000..0x238f5fff pa 0x0e100000..0x0e168fff size 0x00069000 (smallpg)
|
|
D/TC:0 dump_mmap_table:963 type TEE_RAM_RW va 0x238f6000..0x23a8cfff pa 0x0e169000..0x0e2fffff size 0x00197000 (smallpg)
|
|
D/TC:0 dump_mmap_table:963 type RES_VASPACE va 0x23b00000..0x244fffff pa 0x00000000..0x009fffff size 0x00a00000 (pgdir)
|
|
D/TC:0 dump_mmap_table:963 type SHM_VASPACE va 0x24500000..0x264fffff pa 0x00000000..0x01ffffff size 0x02000000 (pgdir)
|
|
D/TC:0 dump_mmap_table:963 type TEE_DYN_VASPACE va 0x26500000..0x265fffff pa 0x00000000..0x000fffff size 0x00100000 (pgdir)
|
|
D/TC:0 dump_mmap_table:963 type IO_SEC va 0x26600000..0x266fffff pa 0x08000000..0x080fffff size 0x00100000 (pgdir)
|
|
D/TC:0 dump_mmap_table:963 type IO_SEC va 0x26700000..0x267fffff pa 0x09000000..0x090fffff size 0x00100000 (pgdir)
|
|
D/TC:0 dump_mmap_table:963 type IO_SEC va 0x26800000..0x268fffff pa 0x0e000000..0x0e0fffff size 0x00100000 (pgdir)
|
|
D/TC:0 dump_mmap_table:963 type SEC_RAM_OVERALL va 0x26969000..0x277fffff pa 0x0e169000..0x0effffff size 0x00e97000 (pgdir)
|
|
D/TC:0 dump_mmap_table:963 type NSEC_SHM va 0x27800000..0x279fffff pa 0x7fe00000..0x7fffffff size 0x00200000 (pgdir)
|
|
D/TC:0 add_padding:96 0xe192000 len 0x2000
|
|
D/TC:0 add_padding:96 0xe198100 len 0xf00
|
|
D/TC:0 alloc_l2_table:336 L2 tables used 1
|
|
D/TC:0 alloc_l2_table:336 L2 tables used 2
|
|
D/TC:0 alloc_l2_table:336 L2 tables used 3
|
|
D/TC:0 alloc_l2_table:336 L2 tables used 4
|
|
D/TC:0 alloc_l2_table:336 L2 tables used 5
|
|
I/TC:
|
|
D/TC:0 carve_out_core_mem:2859 0xe100000 .. 0xe300000
|
|
D/TC:0 boot_mem_foreach_padding:268 consumed 0x23925100 0x23925100 len 0xf00
|
|
D/TC:0 boot_mem_foreach_padding:268 consumed 0x2391f000 0x2391f000 len 0x2000
|
|
D/TC:0 boot_mem_release_unused:294 Allocated 37056 bytes at va 0x2391f000 pa 0xe192000
|
|
D/TC:0 boot_mem_release_unused:298 Tempalloc 33368 bytes at va 0x23a84da8
|
|
D/TC:0 boot_mem_release_unused:320 Carving out 0xe100000..0xe19b0bf
|
|
D/TC:0 boot_mem_release_unused:329 Releasing 1425216 bytes from va 0x23929000
|
|
I/TC: Non-secure external DT found
|
|
D/TC:0 discover_nsec_memory:158 Non-secure memory found in extern DT
|
|
D/TC:0 core_mmu_set_discovered_nsec_ddr:538 Non-secure RAM:
|
|
D/TC:0 core_mmu_set_discovered_nsec_ddr:540 0: pa 0x40000000..0x7fdfffff sz 0x3fe00000
|
|
D/TC:0 core_mmu_set_discovered_nsec_ddr:540 1: pa 0x80000000..0x820fffff sz 0x2100000
|
|
D/TC:0 add_optee_dt_node:640 OP-TEE Device Tree node already exists!
|
|
D/TC:0 dt_add_psci_node:726 PSCI Device Tree node already exists!
|
|
I/TC: Embedded DTB found
|
|
D/TC:0 get_console_node_from_dt:111 No console directive from DTB
|
|
D/TC:0 alloc_l2_table:336 L2 tables used 6
|
|
I/TC: OP-TEE version: 4.11.0 (gcc version 12.2.0 (Debian 12.2.0-14)) #1 Wed Oct 28 01:45:13 UTC 2026 arm
|
|
I/TC: WARNING: This OP-TEE configuration might be insecure!
|
|
I/TC: WARNING: Please check https://optee.readthedocs.io/en/latest/architecture/porting_guidelines.html
|
|
I/TC: Primary CPU initializing
|
|
D/TC:0 0 boot_init_primary_runtime:1054 Executing at offset 0x1578d000 with virtual load address 0x2388d000
|
|
D/TC:0 0 do_init_calls:19 preinitcall level 2 mobj_mapped_shm_init()
|
|
D/TC:0 0 mobj_mapped_shm_init:544 Shared memory address range: 24500000, 26500000
|
|
D/TC:0 0 do_init_calls:19 early_initcall level 1 teecore_init_pub_ram()
|
|
D/TC:0 0 do_init_calls:19 early_initcall level 1 nex_init_periodic_callback()
|
|
D/TC:0 0 nex_init_periodic_callback:155 Adding a periodic callout
|
|
D/TC:0 0 do_init_calls:19 early_initcall level 1 nex_init_test_wd()
|
|
D/TC:0 0 do_init_calls:19 early_initcall level 2 probe_dt_drivers_early()
|
|
D/TC:0 0 add_node_to_probe:706 element: dt-test-consumer on node dt-test-consumer
|
|
D/TC:0 0 add_node_to_probe:706 element: simple-bus on node dt-test-bus-b0
|
|
D/TC:0 0 add_node_to_probe:706 element: dt-test-crypt-consumer on node dt-test-crypt-consumer
|
|
D/TC:0 0 probe_driver_node:514 element: dt-test-crypt-consumer on node dt-test-crypt-consumer deferred 1 time(s)
|
|
D/TC:0 0 add_node_to_probe:706 element: simple-bus on node dt-test-bus-b1
|
|
D/TC:0 0 probe_driver_node:508 element: simple-bus on node dt-test-bus-b0 initialized
|
|
D/TC:0 0 probe_driver_node:514 element: dt-test-consumer on node dt-test-consumer deferred 1 time(s)
|
|
D/TC:0 0 probe_driver_node:514 element: dt-test-consumer on node dt-test-consumer deferred 2 time(s)
|
|
D/TC:0 0 add_node_to_probe:706 element: simple-bus on node dt-test-bus-b2
|
|
D/TC:0 0 probe_driver_node:508 element: simple-bus on node dt-test-bus-b1 initialized
|
|
D/TC:0 0 probe_driver_node:514 element: dt-test-crypt-consumer on node dt-test-crypt-consumer deferred 2 time(s)
|
|
D/TC:0 0 probe_driver_node:514 element: dt-test-crypt-consumer on node dt-test-crypt-consumer deferred 3 time(s)
|
|
D/TC:0 0 add_node_to_probe:706 element: simple-bus on node dt-test-bus-b3
|
|
D/TC:0 0 probe_driver_node:508 element: simple-bus on node dt-test-bus-b2 initialized
|
|
D/TC:0 0 probe_driver_node:514 element: dt-test-consumer on node dt-test-consumer deferred 3 time(s)
|
|
D/TC:0 0 probe_driver_node:514 element: dt-test-consumer on node dt-test-consumer deferred 4 time(s)
|
|
D/TC:0 0 add_node_to_probe:706 element: dt_test_gpio_provider on node dt-test-provider@0
|
|
D/TC:0 0 add_node_to_probe:706 element: dt_test_rstctrl_provider on node dt-test-provider@0
|
|
D/TC:0 0 add_node_to_probe:706 element: dt_test_clock_provider on node dt-test-provider@0
|
|
D/TC:0 0 probe_driver_node:508 element: simple-bus on node dt-test-bus-b3 initialized
|
|
D/TC:0 0 probe_driver_node:514 element: dt-test-crypt-consumer on node dt-test-crypt-consumer deferred 4 time(s)
|
|
D/TC:0 0 probe_driver_node:514 element: dt-test-crypt-consumer on node dt-test-crypt-consumer deferred 5 time(s)
|
|
D/TC:0 0 clk_register:127 Registered clock dt_test-clk3, freq 0
|
|
D/TC:0 0 clk_register:127 Registered clock dt_test-clk7, freq 0
|
|
D/TC:0 0 probe_driver_node:508 element: dt_test_clock_provider on node dt-test-provider@0 initialized
|
|
D/TC:0 0 probe_driver_node:508 element: dt_test_rstctrl_provider on node dt-test-provider@0 initialized
|
|
D/TC:0 0 probe_driver_node:508 element: dt_test_gpio_provider on node dt-test-provider@0 initialized
|
|
D/TC:0 0 probe_driver_node:508 element: dt-test-consumer on node dt-test-consumer initialized
|
|
D/TC:0 0 probe_driver_node:514 element: dt-test-crypt-consumer on node dt-test-crypt-consumer deferred 6 time(s)
|
|
D/TC:0 0 process_probe_list:655 Unresolved dependencies after 6 rounds, 6 deferred
|
|
D/TC:0 0 probe_dt_drivers_early:841 Deferred drivers probing
|
|
D/TC:0 0 print_probe_list:462 Probe list: 1 elements
|
|
D/TC:0 0 print_probe_list:464 |- Driver dt-test-crypt-consumer probes on node dt-test-crypt-consumer
|
|
D/TC:0 0 print_probe_list:468 `- Probe list end
|
|
D/TC:0 0 print_probe_list:474 Failed list: 0 elements
|
|
D/TC:0 0 print_probe_list:479 `- Failed list end
|
|
D/TC:0 0 do_init_calls:19 service_initcall level 1 tee_cryp_init()
|
|
D/TC:0 0 do_init_calls:19 service_initcall level 2 notif_init()
|
|
D/TC:0 0 do_init_calls:19 service_initcall level 2 check_ta_store()
|
|
D/TC:0 0 check_ta_store:461 TA store: "early TA"
|
|
D/TC:0 0 check_ta_store:461 TA store: "Secure Storage TA"
|
|
D/TC:0 0 check_ta_store:461 TA store: "REE"
|
|
D/TC:0 0 do_init_calls:19 service_initcall level 2 early_ta_init()
|
|
D/TC:0 0 early_ta_init:56 Early TA f04a0fe7-1f5d-4b9b-abf7-619b85b4ce8c size 42826 (compressed, uncompressed 75772)
|
|
D/TC:0 0 do_init_calls:19 service_initcall level 2 verify_pseudo_tas_conformance()
|
|
D/TC:0 0 do_init_calls:19 service_initcall level 3 tee_fs_init_key_manager()
|
|
D/TC:0 0 boot_mem_release_tmp_alloc:370 Releasing 36864 bytes from va 0x23a84000
|
|
D/TC:0 0 do_init_calls:19 driver_initcall level 1 init_console_itr()
|
|
D/TC:0 0 gic_it_set_cpu_mask:698 cpu_mask: writing 0xff to 0x26600828
|
|
D/TC:0 0 gic_it_set_cpu_mask:700 cpu_mask: 0xff
|
|
D/TC:0 0 gic_it_set_prio:714 prio: writing 0x1 to 0x26600428
|
|
D/TC:0 0 do_init_calls:19 driver_initcall level 1 probe_dt_drivers()
|
|
D/TC:0 0 probe_driver_node:508 element: dt-test-crypt-consumer on node dt-test-crypt-consumer initialized
|
|
D/TC:0 0 do_init_calls:19 driver_initcall level 2 init_multi_core_halt_handler()
|
|
D/TC:0 0 gic_it_set_cpu_mask:698 cpu_mask: writing 0xff010101 to 0x2660080c
|
|
D/TC:0 0 gic_it_set_cpu_mask:700 cpu_mask: 0x1010101
|
|
D/TC:0 0 gic_it_set_prio:714 prio: writing 0x1 to 0x2660040f
|
|
D/TC:0 0 do_init_calls:19 driver_initcall level 2 mobj_init()
|
|
D/TC:0 0 do_init_calls:19 driver_initcall level 2 default_mobj_init()
|
|
D/TC:0 0 do_init_calls:19 driver_initcall level 2 ftmn_boot_tests()
|
|
D/TC:0 0 ftmn_boot_tests:198 Calling simple_call()
|
|
D/TC:0 0 ftmn_boot_tests:198 Return from simple_call()
|
|
D/TC:0 0 ftmn_boot_tests:199 Calling two_level_call()
|
|
D/TC:0 0 ftmn_boot_tests:199 Return from two_level_call()
|
|
D/TC:0 0 ftmn_boot_tests:200 Calling chained_calls()
|
|
D/TC:0 0 ftmn_boot_tests:200 Return from chained_calls()
|
|
D/TC:0 0 ftmn_boot_tests:202 *************************************************
|
|
D/TC:0 0 ftmn_boot_tests:203 ************** Tests complete *****************
|
|
D/TC:0 0 ftmn_boot_tests:204 *************************************************
|
|
D/TC:0 0 do_init_calls:19 driver_initcall level 3 gic_set_primary_done()
|
|
D/TC:0 0 do_init_calls:19 driver_initcall level 3 release_node_cache_info()
|
|
D/TC:0 0 do_init_calls:19 driver_initcall level 3 release_probe_lists()
|
|
D/TC:0 0 do_init_calls:19 driver_initcall level 3 dt_test_release()
|
|
D/TC:0 0 do_init_calls:19 finalcall level 8 release_external_dt()
|
|
I/TC: Primary CPU switching to normal world boot
|
|
I/TC: Reserved shared memory is enabled
|
|
I/TC: Dynamic shared memory is enabled
|
|
I/TC: Normal World virtualization support is disabled
|
|
I/TC: Asynchronous notifications are enabled
|
|
D/TC:0 atomic_console_notif:158 Asynchronous notifications started, event 0 (vm 0)
|
|
D/TC:0 0 alloc_l2_table:336 L2 tables used 7
|
|
D/TC:? 0 tee_ta_init_pseudo_ta_session:303 Lookup pseudo TA 7011a688-ddde-4053-a5a9-7b3c4ddf13b8
|
|
D/TC:? 0 tee_ta_init_pseudo_ta_session:315 Open device.pta
|
|
D/TC:? 0 tee_ta_init_pseudo_ta_session:330 device.pta : 7011a688-ddde-4053-a5a9-7b3c4ddf13b8
|
|
D/TC:? 0 tee_ta_close_session:521 id 1
|
|
D/TC:? 0 tee_ta_close_session:535 Destroy session
|
|
D/TC:? 0 tee_ta_init_session_with_context:578 Re-open trusted service 7011a688-ddde-4053-a5a9-7b3c4ddf13b8
|
|
D/TC:? 0 tee_ta_close_session:521 id 1
|
|
D/TC:? 0 tee_ta_close_session:535 Destroy session
|
|
D/TC:? 0 tee_ta_init_pseudo_ta_session:303 Lookup pseudo TA 0f9c2b1a-7c1e-4d7e-9a4b-3f5c8d2e6a10
|
|
D/TC:? 0 ldelf_load_ldelf:110 ldelf load address 0x105000
|
|
D/LD: ldelf:159 Loading TS 0f9c2b1a-7c1e-4d7e-9a4b-3f5c8d2e6a10
|
|
D/TC:? 0 ldelf_syscall_open_bin:163 Lookup user TA ELF 0f9c2b1a-7c1e-4d7e-9a4b-3f5c8d2e6a10 (early TA)
|
|
D/TC:? 0 ldelf_syscall_open_bin:167 res=0xffff0008
|
|
D/TC:? 0 ldelf_syscall_open_bin:163 Lookup user TA ELF 0f9c2b1a-7c1e-4d7e-9a4b-3f5c8d2e6a10 (Secure Storage TA)
|
|
I/TC: WARNING (insecure configuration): Failed to get monotonic counter for REE FS, using 0
|
|
I/TC: WARNING (insecure configuration): Failed to commit dirh counter 2
|
|
D/TC:? 0 ldelf_syscall_open_bin:167 res=0xffff0008
|
|
D/TC:? 0 ldelf_syscall_open_bin:163 Lookup user TA ELF 0f9c2b1a-7c1e-4d7e-9a4b-3f5c8d2e6a10 (REE)
|
|
D/TC:? 0 ldelf_syscall_open_bin:167 res=0
|
|
D/LD: ldelf:207 ELF (0f9c2b1a-7c1e-4d7e-9a4b-3f5c8d2e6a10) at 0x167000
|
|
[hello_rust_ta] create
|
|
[hello_rust_ta] open_session
|
|
D/TC:? 0 tee_ta_close_session:521 id 1
|
|
D/TC:? 0 tee_ta_close_session:535 Destroy session
|
|
[hello_rust_ta] close_session
|
|
[hello_rust_ta] destroy
|
|
D/TC:? 0 destroy_context:326 Destroy TA ctx (0x239182b0)
|