ARM-software / bsa-acs

Arm SystemReady : BSA Architecture Compliance Suite
Apache License 2.0
14 stars 40 forks source link

PCI DT parsing crash in pal_iovirt.c #311

Closed psingh3086 closed 3 weeks ago

psingh3086 commented 3 weeks ago

https://github.com/ARM-software/bsa-acs/blob/main/pal/uefi_dt/bsa/src/pal_iovirt.c#L751 Here function should be fdt_node_offset_by_phandle() but it is using fdt_getprop_namelen().. Line 750(iommu_node ) has contained phandle but BSA expecting offset. so it is crashing. As per DT schema dt-schema/dtschema/schemas/pci/pci-iommu.yaml at main · devicetree-org/dt-schema · GitHub