diff options
author | Huisong Li <lihuisong@huawei.com> | 2024-08-28 18:49:53 +0800 |
---|---|---|
committer | Wei Xu <xuwei5@hisilicon.com> | 2024-10-14 08:54:48 +0000 |
commit | 3400c85f6400dc907d686d319faad25956ac4db1 (patch) | |
tree | ebef5598f242fcf56343a6c248678c2bb684fc0b /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 0c811bd2721d219bd104e0dc1fa76deee5e04ae4 (diff) |
soc: hisilicon: kunpeng_hccs: Add the check for base address and size of shared memory
If the shmem_base_addr from PCCT is zero, hccs_register_pcc_channel will
return success. And then driver will access to illegal address when send
PCC command. In addition, the size of shared memory used for communication
between driver and platform is fixed, namely 64 Bytes which is
unchangeable. So add the verification for hardening code.
Signed-off-by: Huisong Li <lihuisong@huawei.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions