Description of problem: The commit 326b87a888ab ("anolis: crypto: ccp: Get api version again when update Hygon CSV firmware at runtime") will get API version of the newer firmware if DOWNLOAD_FIRMWARE success. Calls to sev_get_api_version() will try to grab mutex lock which was not released in CSV DOWNLOAD_FIRMWARE ioctl handler. To address this issue, we provide csv_get_api_version_locked() and calls it instead of sev_get_api_version() in the CSV DOWNLOAD_FIRMWARE ioctl handler. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/4518