ANDROID: module: Add vendor hooks
Add vendor hook for module init, so we can get memory type and addr
info, then we can use this info to set corresponding memory access
atrribute in EL2 stage2 page table. We can get enhanced security
protection by this way, as long as the stage2 page table is not
corrupted.
For releasing modules, corresponding page table attributes should be
destroyed and restored.
Bug: 373794466
Bug: 399785745
Change-Id: Ieccb3bdd1041dfe41a9c808a91cc19f04389e826
Signed-off-by:
xuefei7 <xuefei7@xiaomi.com>
Loading
Please sign in to comment