Bug 13586 - [a8][!!!Important]Fix mutex lock nesting in CSV DOWNLOAD_FIRMWARE ioctl handler
Summary: [a8][!!!Important]Fix mutex lock nesting in CSV DOWNLOAD_FIRMWARE ioctl handler
Status: NEW
Alias: None
Product: ANCK 5.10 Dev
Classification: ANCK
Component: X86 (show other bugs) X86
Version: unspecified
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: Guanjun
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-18 15:48 UTC by wojiaohanliyang
Modified: 2025-01-18 16:01 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description wojiaohanliyang hygon_group 2025-01-18 15:48:23 UTC
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:
Comment 1 小龙 admin 2025-01-18 16:01:03 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/4518