Commit Graph

3 Commits

Author SHA1 Message Date
tuan zhang dec59e254e efuse: fixed a stack-out-of-bounds issue [1/1]
PD#SWPL-79503

Problem:
With kasan enable,the stack is out of bounds when read efuse key.

Solution:
Modify the type of variable 'retcnt' from int to long.

Verify:
T982-x9

Change-Id: I8b5ffa00afc9a2ffa51f1dd14eee36c5616a27cb
Signed-off-by: tuan zhang <tuan.zhang@amlogic.com>
2022-08-12 13:59:06 +08:00
wanwei.jiang dd14076118 efuse: porting efuse driver [1/1]
PD#SWPL-78980

Problem:
a1 efuse test fail

Solution:
1. modify share memory map from noncache to cache
2. use share memory interface which exported by secmonitor driver
3. porting the code of efuse_obj_read/write

Verify:
c2

Change-Id: Iba250028899eb69df3584c334bfbd7dbd56eb8c0
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-05-07 00:14:29 -07:00
wanwei.jiang 17f72adc13 efuse_unifykey: porting efuse_unifykey driver [1/1]
PD#SWPL-69066

Problem:
porting efuse_unifykey driver

Solution:
1. porting efuse_unifykey driver
2. pfn_valid -> pfn_is_map_memory
3. use secmon driver interface in efuse_api.c
4. add <linux/compat.h> for compat_ptr
5. add <crypto/sha256_base.h> for SHA256_DIGEST_SIZE
6. reduce the print level in the probe function

Verify:
s4d

Change-Id: Ia9833a2ad0d0bc0f751624c65ccefd92bdc3276b
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-01-04 14:07:33 +08:00