AVB using OP-TEE
Get series with b4
b4 am CAHUa44HrL8_ARgBE-gYs8LitEqd_C-5GrvsW_rNyhPAbEbhrug@mail.gmail.comVersions newest first · linked by author and title
- v4 Latest posting 2/20 of 19 patches 0 repliesNew
- v4 posting 1/219 patches 0 repliesSuperseded
- v320 patches 0 repliesSuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 | 15 patches | 0 replies | Superseded | |
| v1 | 10 patches | 0 replies | Superseded |
Patches in v4 posting 2/2 No applies recorded yet
None of the 19 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.
Cover letter [U-Boot] [PATCH v4 00/19] AVB using OP-TEE
Hi Simon,
Quoted 54 lines · Simon Glass
Hi Jen,
Quoted 46 lines · Jens Wiklander
Hi,
This adds support for storing AVB rollback indexes in the RPMB partition. The RPMB partition (content and key) is managed by OP-TEE
(https://www.op-tee.org/) which is a secure OS leveraging ARM TrustZone.The Linux kernel can already support OP-TEE with reading and updating rollback indexes in the RPMB partition, the catch is that this is needed before the kernel has booted.
The design here is the same as what is in the Linux kernel, with the exception that the user space daemon tee-supplicant is integrated in the OP-TEE driver here (
drivers/tee/optee/supplicant.c) instead. A new uclass (UCLASS_TEE) is introduced to provide an abstraction for interfacing with a Trusted Execution Environment (TEE). There's also the OP-TEE driver usingUCLASS_TEEfor registration.A Trusted Application (TA) interface is added to be used by the AVB verify functions which are updated accordingly. The TA is managed by OP-TEE and is executed in a secure TrustZone protected environment.
The header files
drivers/tee/optee/optee_{msg,msg_supplicant,smc}.handinclude/tee/optee_ta_avb.hare copied from
https://github.com/OP-TEE/optee_os/tree/master more or less unmodified. They may need to be updated from time to time in order to support new features.In MMC there's a new function,
mmc_rpmb_route_frames(), which as the name suggests is used to route RPMB frames to/from the MMC. This saves OP-TEE from implementing an MMC driver which would need to share resources with its counterpart here in U-Boot.This was tested on a Hikey (Kirin 620) board.
I've added myself as maintainer of the TEE stuff.
changes in v4:
* Addressed review comments from Simon Glass
* Rebased on v2018.09
* "avb_verify: bugfixavb_ops_free()skipping free" removed due to the rebase
* Commits "dt/bindings: add bindings for optee",
"sandbox: implyCONFIG_TEE(TEE uclass)",
"tee: add sandbox driver",
"avb_verify: support using OP-TEE TA AVB",
"test_avb: Update patiensepymark.buildconfigspec information for the AVB tests", "Kconfig: sandbox: enablecmd_avband dependencies",Quoted 4 lines
Reviewed-by Simon Glass <[email protected]>* Added descriptions of additional structs and functions
* In commit "avb_verify: support sandbox configuration" avoid the #ifdefCONFIG_SANDBOXinget_sector_buf()as suggested by Simon.
Quoted 6 lines
You might consider using patman, where you add the change log for each patch individually, and it produces the change log for the series automatically.
I find it harder to review patches which don't have their own individual change log.
I'll try patman next time. A big thank you for reviewing this patch series.
--
Jens