-
Notifications
You must be signed in to change notification settings - Fork 3k
Add warning about FEATURE_UVISOR being deprecated #7000
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
#define __UVISOR_DEPRECATION_H__ | ||
|
||
#if defined(UVISOR_PRESENT) && UVISOR_PRESENT == 1 | ||
#warning "---- WARNING: You are using FEATURE_UVISOR which is deprecated!! ----" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are using FEATURE_UVISOR which is deprecated since mbed-os-5.9
might be better - follow what we do for API - since what release it is deprecated.
Lets wait for @AnotherButler review
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree with @0xc0170 Uvisor is NOT yet deprecated. The warning should state that the feature is going to be deprecated in 5.10...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we hold off on warning messages? We're reviewing all of them. Also saying "it's deprecated' without saying what to use instead leaves the user with nothing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we hold off on warning messages? We're reviewing all of them. Also saying "it's deprecated' without saying what to use instead leaves the user with nothing.
@alzix is trying to resolve this to add this here to the message and to the commit message as well.
Can we hold off on warning messages?
What do you suggest?
@danny4478 I just spoke to Sam Taylor about this deprecation. He is of the opinion that we have to be very careful with this deprecation message and the text needs to be agreed by Nicholas and probably Aaron also before being submitted to the code base. |
@ndevillard please advise |
#define __UVISOR_DEPRECATION_H__ | ||
|
||
#if defined(UVISOR_PRESENT) && UVISOR_PRESENT == 1 | ||
#warning "---- WARNING: You are using FEATURE_UVISOR which is deprecated since mbed-os-5.9!! ----" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps something like:
"Warning: In 5.10, Arm Mbed uVisor is being deprecated in favor of our upcoming security features. We strongly encourage you to use these new security features instead."
I'd like to link to mention and link to PSA or PSA crypto, but I don't know if linking to a private repo makes sense.
@ndevillard @ChiefBureaucraticOfficer Please advise.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After talking with @ChiefBureaucraticOfficer we suggest "Warning: You are using FEATURE_UVISOR, which is unsupported as of Mbed OS 5.9."
@ndevillard @simonfordarm What are your thoughts on this phrasing?
Due to having not seen a deprecation warning be agreed upon in the last nine hours, I've taken @AnotherButler's most recent suggestion and updated this PR with the message. Going to put this through CI to make sure no surprises come up with the file addition, but will hold off on merging until key parties agree on the text. Also intend on taking advantage of the low CI utilization at the moment. Fyi, a change to the text (aka another commit) will require CI again. /morph build |
Build : SUCCESSBuild number : 2145 Triggering tests/morph test |
Test : FAILUREBuild number : 1939 |
/morph test |
Test : SUCCESSBuild number : 1941 |
Exporter Build : SUCCESSBuild number : 1774 |
CI completed, this is now almost green to get in. Reviewers - approvals? |
Looking at the email from @ndevillard this warning is insufficient. Also uvisor will still be in 5.9 so won't actually be fully deprecated until 5.10. "uvisor will be deprecated in the 5.10 release and will be replaced in due course by a PSA-compliant Secure Partition Manager" |
Agreed with @ChiefBureaucraticOfficer that this can go in as is for RC1 and we will improve it for RC2 |
@danny4478 @ndevillard |
Warning: uVisor is superseded by the Secure Partition Manager (SPM) defined in the ARM Platform Security Architecture (PSA). uVisor is deprecated as of Mbed OS 5.9, and being replaced by a native PSA-compliant implementation of SPM. I think you can use that one |
@orenc17 please handle asap |
Created #7072 |
Description
Add warning about FEATURE_UVISOR being deprecated.
If FEATURE_UVISOR is being used (compiled), then a compilation warning is issued.
Pull request type