From: Shiju Jose <[email protected]> Add few fixes in CXL maintenance, PPR and event records generation.
1. In cxl_create_mem_sparing_event_records(), replace strncpy with memcpy to solve coverity warning because full size of the array to use as length in strncpy to copy the entire component id data, which is 16 bytes. 2. In cxl_maintenance_insert(), - replace strncpy with memcpy in to copy full data because component id is 16 bytes data. - remove memset which is not required. 3. In cxl_perform_ppr(), remove and free the maintenance entry from QLIST if match is found and PPR operation is performed. 4. Component id in CXL events is 16 bytes data, but event record generation copy 15 bytes only from the qmp "component-id" field using strncpy. Replace strncpy with memcpy and change length of data to copy to the size of the component_id array (16 bytes). Shiju Jose (3): hw/cxl: Add fixes in maintenance and memory sparing hw/cxl: Add fixes in Post Package Repair (PPR) hw/cxl/events: Fixes for component id in event records generation hw/cxl/cxl-mailbox-utils.c | 6 ++++-- hw/mem/cxl_type3.c | 13 ++++--------- 2 files changed, 8 insertions(+), 11 deletions(-) -- 2.43.0
